/* Self-hosted instead of loading from Google Fonts -- both files below are
   variable fonts, so one file each covers every weight we use (confirmed
   by checksum: Google serves an identical file per weight in the "latin"
   subset). Avoids two extra external DNS lookups + connections
   (fonts.googleapis.com, fonts.gstatic.com) on every page load. */
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url("/assets/fonts/playfair-display-var.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2");
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f5ee;
    --color-text: #211a35;
    --color-text-muted: #665f7a;
    --color-border: #e6e0ee;
    --color-accent: #5b2c8f;
    --color-accent-dark: #40206b;
    --color-navy: #1a1530;
    --color-navy-light: #262045;
    --color-gold: #c9a227;
    --color-gold-light: #e4c661;
    --color-gold-deep: #876917;
    --max-width: 1080px;
    --radius: 10px;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--color-gold-light);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}
.brand:hover { text-decoration: none; }

.brand-name {
    font-size: 1.2rem;
}

.brand-logo-full {
    height: 62px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-link.active,
.nav-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Hero -- dark, jewel-toned statement band used on every page */
.hero {
    padding: 96px 0 72px;
    background: radial-gradient(circle at 20% 20%, var(--color-navy-light), var(--color-navy) 65%);
    text-align: center;
    color: #f2eee0;
    position: relative;
    border-bottom: 3px solid var(--color-gold);
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #ffffff;
}

.hero .lede {
    color: #d6d0e6;
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 1.15rem;
}

.hero .lede strong { color: var(--color-gold-light); }

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Homepage hero: asymmetric split instead of the centered-portrait layout
   used previously -- text takes the lead, photo sits in a viewfinder-style
   bracket frame rather than a circular ring. */
.hero-split { text-align: left; }

.hero-split-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-split-text .lede { margin-left: 0; margin-right: 0; max-width: none; }
.hero-split .hero-actions { justify-content: flex-start; }

.hero-split-visual { display: flex; justify-content: center; position: relative; }

/* Portrait ratio -- matches the source photo closely so object-fit:cover
   only trims a sliver off the edges instead of cropping out the subject
   or the backdrop behind them. */
.hero-photo-frame {
    width: 320px;
    height: 499px;
    flex-shrink: 0;
    margin: 10px;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.hero-photo-frame .dot-grid {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -24px;
    right: -24px;
    z-index: -1;
}

@media (max-width: 900px) {
    .hero-split-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-split-text .eyebrow { justify-content: center; }
    .hero-split .hero-actions { justify-content: center; }
    .hero-split-visual { order: -1; }
    .hero-photo-frame { margin: 24px; }
}

/* Same 0.6413 ratio as the source photo, just scaled down so the frame +
   its margins fit inside narrow viewports without causing overflow. */
@media (max-width: 480px) {
    .hero-photo-frame { width: 220px; height: 343px; margin: 16px; }
}

.button {
    display: inline-block;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-navy);
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}
.button:hover { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-deep)); text-decoration: none; }

.button.secondary {
    background: transparent;
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold);
    box-shadow: none;
}
.button.secondary:hover { background: rgba(201, 162, 39, 0.12); color: var(--color-gold-light); }

/* Buttons rendered on light sections need dark-friendly secondary styling */
section.section .button.secondary,
.resume-form-wrap .button.secondary {
    color: var(--color-accent);
    border-color: var(--color-accent);
}
section.section .button.secondary:hover,
.resume-form-wrap .button.secondary:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent-dark);
}

/* Sub-hero (non-homepage page headers) */
.page-hero { padding: 64px 0; text-align: left; }
.page-hero h1 { font-size: 2.6rem; }
.page-hero .lede { margin: 0; text-align: left; }
.page-hero .lede a { color: var(--color-gold-light); }

/* Contact-detail tags -- used on the About hero instead of a plain
   middle-dot-separated line of links. */
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.meta-chip {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #d6d0e6;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 6px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
}

a.meta-chip:hover {
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    text-decoration: none;
    background: rgba(201, 162, 39, 0.12);
}

/* Sections */
section.section {
    padding: 64px 0;
    border-bottom: 1px solid var(--color-border);
}

section.section:last-child { border-bottom: none; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

.section h2 {
    font-size: 1.9rem;
    margin: 0 0 12px;
    color: var(--color-text);
}

/* Bracket-tag label -- used everywhere the site previously had an ornate
   "eyebrow" line. Monospace + brackets read as a dev/tooling signature
   rather than a decorative flourish, and don't repeat the same centered
   icon-card pattern the rest of the redesign is trying to break away from. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-gold-deep);
    margin: 0 0 8px;
}

.hero .eyebrow { color: var(--color-gold-light); }

.eyebrow::before { content: "["; margin-right: 4px; opacity: 0.6; }
.eyebrow::after { content: "]"; margin-left: 4px; opacity: 0.6; }

/* Small dot-grid texture, dropped behind hero visuals / section corners to
   give the layout some technical grain instead of flat color fields. */
.dot-grid {
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 16px 16px;
    color: rgba(201, 162, 39, 0.35);
}

/* Corner-bracket frame -- a viewfinder/crop-mark motif for photos and
   feature tiles, used instead of the circular gold-ring portrait treatment. */
.bracket-frame { position: relative; }

.bracket-frame::before,
.bracket-frame::after,
.bracket-frame > .corner-tl,
.bracket-frame > .corner-br {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-gold);
}

.bracket-frame::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.bracket-frame::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Cards / grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 6px 20px rgba(91, 44, 143, 0.08);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

/* Service cards -- bento grid: a wide featured tile plus two regular tiles
   fill row one, a full-width horizontal tile closes row two. Four fixed
   items tile with no gaps at this ratio (2+1+1 / 4), unlike a uniform
   auto-fit card grid. */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    text-align: left;
    padding: 28px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
    grid-column: span 1;
}

.service-card:nth-child(1) { grid-column: span 2; background: var(--color-bg-alt); }
.service-card:nth-child(4) {
    grid-column: span 4;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-card:nth-child(4) .service-icon { margin-bottom: 0; }
.service-card:nth-child(4) h3 { margin-bottom: 4px; }

.service-card:hover {
    box-shadow: 0 8px 24px rgba(91, 44, 143, 0.1);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.service-index {
    position: absolute;
    top: 18px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--color-gold-deep);
}

.service-icon {
    font-size: 1.8rem;
    margin: 0 0 16px;
    line-height: 1;
}

.service-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

@media (max-width: 720px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card:nth-child(1),
    .service-card:nth-child(4) { grid-column: span 1; }
    .service-card:nth-child(4) { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Stats ticker -- a full-bleed dark strip directly under the hero (no
   border-radius, no section padding of its own) so it reads as a terminal
   status line bleeding out of the hero rather than a separate padded
   section of centered stat cards. */
.stats-ticker {
    background: var(--color-navy);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.stats-ticker-inner {
    display: flex;
    flex-wrap: wrap;
}

.stat-tick {
    flex: 1 1 0;
    min-width: 140px;
    padding: 20px 24px;
    text-align: center;
    border-right: 1px solid rgba(201, 162, 39, 0.2);
}

.stat-tick:last-child { border-right: none; }

.stat-tick .num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-light);
}

.stat-tick .label {
    font-family: var(--font-mono);
    color: #a89fc2;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 640px) {
    .stat-tick { flex: 1 1 50%; border-bottom: 1px solid rgba(201, 162, 39, 0.2); }
    .stat-tick:nth-child(2n) { border-right: none; }
}

/* Timeline (experience / education) */
.timeline-item {
    position: relative;
    padding: 0 0 40px 28px;
    border-left: 2px solid var(--color-border);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.timeline-item .date-badge {
    display: inline-block;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-gold-light);
    color: var(--color-gold-deep);
    border-radius: 4px;
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-item h3 {
    margin: 0 0 2px;
    font-size: 1.1rem;
}

.timeline-item .meta {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin: 0 0 4px;
}

.timeline-item .role {
    font-style: italic;
    color: var(--color-text-muted);
    margin: 0 0 10px;
    font-size: 0.94rem;
}

.timeline-item ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-item li { margin-bottom: 4px; font-size: 0.94rem; }

/* Milestones preview (About page: Education | Experience side by side) */
.milestones {
    display: flex;
    gap: 56px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.milestones-photo {
    width: 240px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-gold);
}

.milestones-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    flex: 1;
}

.milestone-col-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
}

.milestone-col-heading h3 {
    margin: 0;
    font-size: 1.3rem;
    white-space: nowrap;
}

.milestone-col-heading .rule {
    flex: 1;
    height: 1px;
    background-image: linear-gradient(to right, var(--color-gold-light) 50%, transparent 0%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

.milestone-item {
    position: relative;
    padding: 0 0 26px 26px;
    border-left: 2px solid var(--color-border);
}

.milestone-item:last-child { padding-bottom: 0; border-left-color: transparent; }

.milestone-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold-light);
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 1px var(--color-gold);
}

.milestone-item .date {
    font-family: var(--font-mono);
    color: var(--color-gold-deep);
    font-size: 0.78rem;
    margin: 0 0 2px;
}

.milestone-item h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.milestone-item p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.milestones-cta { margin-top: 32px; }
.milestones-cta a {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold-deep);
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-gold-light);
    color: var(--color-accent-dark);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Homepage teaser: a fixed 3x3 on desktop, collapsing responsively rather
   than the auto-fill behavior used on the full /portfolio page. */
.portfolio-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .portfolio-grid-3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .portfolio-grid-3col { grid-template-columns: 1fr; }
}

.portfolio-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.portfolio-card:hover {
    box-shadow: 0 8px 24px rgba(91, 44, 143, 0.12);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

/* Dot-grid textured tile with the client initial tucked in a corner,
   monospace -- replaces the centered gradient-banner treatment, which read
   too close to a menu/spa card. */
.portfolio-card-banner {
    height: 84px;
    background-color: var(--color-bg-alt);
    background-image: radial-gradient(rgba(201, 162, 39, 0.4) 1px, transparent 1px);
    background-size: 14px 14px;
    display: flex;
    align-items: flex-end;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
}

.portfolio-card-banner span {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold-deep);
    background: var(--color-bg);
    padding: 2px 8px;
    border: 1px solid var(--color-gold-light);
    border-radius: 4px;
}

.portfolio-card-img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    display: block;
}

.portfolio-card-body {
    padding: 16px;
    font-size: 0.86rem;
    font-family: var(--font-mono);
    word-break: break-all;
}

.portfolio-card-body a { font-weight: 500; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 6px 20px rgba(91, 44, 143, 0.08);
}

.contact-card .icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

/* Photo slider (About page, under Hobbies) */
.slider {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--color-gold);
    background: var(--color-navy);
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-slide {
    flex: 0 0 100%;
    position: relative;
    height: 420px;
    overflow: hidden;
}

/* Portrait photos would either get cropped (object-fit:cover) or letterboxed
   with ugly bare bars (object-fit:contain alone). Instead we fill the frame
   with a blurred, darkened copy of the same photo as a backdrop, and show
   the full photo on top uncropped -- works for both orientations. */
.slider-slide-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.55);
    transform: scale(1.1);
}

.slider-slide img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slider-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(26,21,48,0.85), transparent);
    color: #f2eee0;
    font-size: 0.92rem;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 21, 48, 0.6);
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.slider-arrow:hover { background: rgba(26, 21, 48, 0.85); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: var(--color-navy);
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(228, 198, 97, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
}

.slider-dot.active { background: var(--color-gold); }

@media (max-width: 640px) {
    .slider-slide img { height: 280px; }
}

/* Full photo gallery page */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.photo-gallery-item {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 1 / 1;
    padding: 0;
    background: none;
    cursor: pointer;
    width: 100%;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.photo-gallery-item:hover img { transform: scale(1.05); }

.photo-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(26,21,48,0.85), transparent);
    color: #f2eee0;
    font-size: 0.82rem;
}

/* Gallery lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 20, 0.92);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Toggled via JS instead of the `hidden` attribute -- an unconditional
   display:flex here would win over the browser's [hidden] { display:none }
   at equal specificity, since author CSS beats the UA stylesheet, leaving
   the overlay stuck visible regardless of the hidden attribute's state. */
.lightbox.open {
    display: flex;
}

.lightbox-body {
    max-width: min(90vw, 1100px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox-body img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #f2eee0;
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover { background: rgba(201, 162, 39, 0.2); }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow:hover { background: rgba(201, 162, 39, 0.2); }
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

@media (max-width: 640px) {
    .lightbox-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
    .lightbox-arrow.prev { left: 8px; }
    .lightbox-arrow.next { right: 8px; }
    .lightbox-close { top: 10px; right: 12px; width: 38px; height: 38px; }
}

/* FAQ accordion (Services page) */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 22px;
}

.faq-item[open] { border-color: var(--color-gold); }

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    color: var(--color-gold-deep);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    margin: 14px 0 0;
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

/* Resume request form */
.resume-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

/* The services page's JotForm embed includes an appointment/calendar
   widget, which needs more breathing room than the plain text-field
   resume-request form this class was originally sized for. */
.resume-form-wrap.wide {
    max-width: 760px;
}

/* JotForm's embed script injects its iframe with no spacing of its own,
   so it otherwise sits flush against the section's bottom padding. */
.resume-form-wrap iframe {
    margin-bottom: 40px;
}

.resume-form {
    text-align: left;
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-submit {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.form-note {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.alert {
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    color: #15803d;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Footer -- mirrors the hero band for a bookended, regal frame */
.site-footer {
    background: var(--color-navy);
    border-top: 3px solid var(--color-gold);
    padding: 40px 0 24px;
    color: #d6d0e6;
}

/* Site-map style footer: a wider brand column plus two link columns,
   instead of one centered row bundling logo/nav/social together. */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

/* Footer has more vertical room than the sticky header bar, so its logo
   can run larger than the shared .brand-logo-full base size. */
.footer-brand .brand-logo-full {
    height: 68px;
}

.footer-tagline {
    color: #a89fc2;
    font-size: 0.9rem;
    max-width: 320px;
    margin: 16px 0 20px;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-nav a,
.footer-nav span { color: #d6d0e6; font-weight: 500; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--color-gold-light); }
.footer-nav span { color: #a89fc2; font-weight: 400; }

.footer-nav-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 10px;
}

/* Range query so this never overlaps the 640px breakpoint below -- two
   max-width queries both redeclaring grid-template-columns for the same
   element is fragile to get right across engines even when the cascade
   order is correct. */
@media (min-width: 641px) and (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-light);
    font-size: 1rem;
}

.footer-social a:hover {
    background: rgba(201, 162, 39, 0.15);
    color: var(--color-gold-light);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(201, 162, 39, 0.3);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #a89fc2;
    font-size: 0.88rem;
}

.footer-legal {
    display: flex;
    gap: 18px;
}

.footer-legal a { color: #a89fc2; font-size: 0.86rem; }
.footer-legal a:hover { color: var(--color-gold-light); }

@media (max-width: 640px) {
    .hero h1 { font-size: 2.2rem; }
    .page-hero { text-align: center; }
    .page-hero .lede { text-align: center; margin: 0 auto; }
    .meta-chips { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-nav { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-gold-light);
        box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    }

    .site-nav.open { display: flex; }

    .site-nav .nav-link {
        padding: 14px 24px;
        border-top: 1px solid var(--color-border);
    }

    .header-inner { position: relative; }

    .header-inner .brand-logo-full { height: 46px; }
    .footer-brand .brand-logo-full { height: 56px; }

    .milestones { justify-content: center; text-align: center; }
    .milestone-col-heading { justify-content: center; }
    .login-wrap { margin-top: 40px; }
}
