:root {
  --ink: #071116;
  --ink-2: #0b171d;
  --paper: #f3eadb;
  --muted: #9aa6a6;
  --line: rgba(243, 234, 219, .16);
  --gold: #d6a86b;
  --teal: #5f8c8b;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; }
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 14px max(24px, calc((100vw - 1180px) / 2)); transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 17, 22, .9); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 40px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(243,234,219,.5); color: var(--gold); font-family: Georgia, serif; font-size: .8rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; text-decoration: none; color: rgba(243,234,219,.72); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--gold); transition: right .25s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--paper); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; background: var(--paper); margin: 6px 0; transition: transform .25s ease, opacity .25s ease; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(7,17,22,.94) 0%, rgba(7,17,22,.74) 39%, rgba(7,17,22,.1) 72%), linear-gradient(0deg, rgba(7,17,22,.8), transparent 40%); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 170px; }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .96; letter-spacing: -.035em; }
h1 { max-width: 770px; margin-bottom: 30px; font-size: clamp(4.3rem, 10vw, 9.5rem); }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
.hero-copy { max-width: 630px; margin-bottom: 34px; color: rgba(243,234,219,.76); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: var(--paper); }
.button-ghost { border-color: rgba(243,234,219,.4); background: rgba(7,17,22,.22); }
.button-ghost:hover { border-color: var(--paper); }
.hero-credentials { position: absolute; z-index: 2; left: max(24px, calc((100vw - 1180px) / 2)); right: max(24px, calc((100vw - 1180px) / 2)); bottom: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; border-top: 1px solid var(--line); }
.hero-credentials div { padding: 18px 24px 0 0; }
.hero-credentials strong { display: block; color: var(--paper); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.hero-credentials span { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.scroll-cue { position: absolute; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 40px; z-index: 2; display: flex; align-items: center; gap: 12px; color: rgba(243,234,219,.66); text-decoration: none; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { width: 42px; height: 1px; background: var(--gold); }

.section { padding: 130px 0; }
.section-heading h2, .project-intro h2, .contact h2 { margin-bottom: 0; font-size: clamp(3rem, 6.5vw, 6.5rem); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.about { background: var(--paper); color: var(--ink); }
.about .eyebrow { color: #8d622d; }
.about-copy { padding-top: 74px; }
.lead { font-family: Georgia, serif; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.35; }
.about-copy > p:not(.lead) { color: #485156; }
.credentials-list { margin-top: 48px; border-top: 1px solid rgba(7,17,22,.16); }
.credentials-list div { display: grid; grid-template-columns: 45px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(7,17,22,.16); }
.credentials-list span { color: #8d622d; font-size: .75rem; font-weight: 700; }
.credentials-list p { margin: 0; line-height: 1.45; }

.expertise { background: var(--ink-2); }
.section-heading.horizontal { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 66px; }
.section-heading.horizontal > p { max-width: 380px; margin: 0; color: var(--muted); }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill-card { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); transition: background .25s ease, transform .25s ease; }
.skill-card:hover { background: rgba(214,168,107,.07); transform: translateY(-4px); }
.skill-card span { color: var(--gold); font-size: .72rem; }
.skill-card h3 { margin: 92px 0 10px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.skill-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.skill-card.feature { grid-column: span 2; background: linear-gradient(120deg, rgba(95,140,139,.14), rgba(214,168,107,.05)); }

.experience { padding-top: 0; background: var(--ink-2); }
.experience-panel { display: grid; grid-template-columns: .7fr 1fr 1.25fr; align-items: center; gap: 38px; padding: 72px; border: 1px solid var(--line); }
.experience-panel .eyebrow { align-self: start; }
.experience-number { color: var(--gold); font-family: Georgia, serif; font-size: clamp(6rem, 12vw, 12rem); line-height: .72; }
.experience-number span { font-size: .42em; vertical-align: top; }
.experience-panel h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; }
.experience-panel div:last-child p { margin: 0; color: var(--muted); }

.project { background: #0d2027; }
.project-intro { display: grid; grid-template-columns: .7fr 1.4fr 1fr; align-items: end; gap: 30px; margin-bottom: 50px; }
.project-intro .eyebrow, .project-intro h2, .project-intro p { margin-bottom: 0; }
.project-intro .lead { color: rgba(243,234,219,.72); font-size: 1.3rem; }
.project-visual { position: relative; height: min(62vw, 650px); min-height: 390px; overflow: hidden; }
.project-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,17,22,.75), transparent 60%); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.project-visual:hover img { transform: scale(1.025); }
.project-caption { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 30px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.project-caption span { color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.project-caption strong { font-family: Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 400; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.category { padding: 42px 34px 10px; border-right: 1px solid var(--line); }
.category span { color: var(--gold); font-size: .72rem; }
.category h3 { margin: 44px 0 12px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.category p { color: var(--muted); font-size: .9rem; }

.contact { background: var(--paper); color: var(--ink); }
.contact .eyebrow { color: #8d622d; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.contact-details { padding-top: 50px; }
.contact-details > p { max-width: 520px; color: #515b60; }
.email-link { display: inline-block; margin: 26px 0 56px; color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 2rem); text-decoration-thickness: 1px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.social-list { border-top: 1px solid rgba(7,17,22,.18); }
.social-list div { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid rgba(7,17,22,.18); }
.social-list span { color: #667176; }
.social-list strong { font-weight: 650; text-align: right; }
.site-footer { border-top: 1px solid var(--line); padding: 25px 0; color: var(--muted); font-size: .78rem; }
.site-footer .shell { display: flex; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 700px); }
  .site-header { padding-inline: 18px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 80px 10vw; gap: 22px; background: rgba(7,17,22,.98); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: Georgia, serif; font-size: 2.3rem; letter-spacing: -.02em; text-transform: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-overlay { background: linear-gradient(90deg, rgba(7,17,22,.92), rgba(7,17,22,.35)), linear-gradient(0deg, rgba(7,17,22,.85), transparent 50%); }
  .hero-credentials { grid-template-columns: repeat(3, 1fr); left: 18px; right: 18px; }
  .scroll-cue { display: none; }
  .split-layout, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-copy, .contact-details { padding-top: 10px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-panel { grid-template-columns: 1fr 1fr; padding: 48px 34px; }
  .experience-panel > div:last-child { grid-column: 1 / -1; }
  .project-intro { grid-template-columns: 1fr 1fr; }
  .project-intro .lead { grid-column: 2; }
  .category-grid { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .category { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .brand > span:last-child { display: none; }
  .section { padding: 90px 0; }
  .hero-content { padding: 105px 0 245px; }
  h1 { font-size: clamp(3.7rem, 19vw, 6rem); }
  .hero-image { object-position: 61% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7,17,22,.88), rgba(7,17,22,.3)), linear-gradient(0deg, rgba(7,17,22,.94) 5%, transparent 65%); }
  .hero-credentials { bottom: 24px; grid-template-columns: 1fr; max-width: 360px; }
  .hero-credentials div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; padding-top: 8px; }
  .hero-credentials strong { font-size: 1.25rem; }
  .section-heading.horizontal { display: block; }
  .section-heading.horizontal > p { margin-top: 24px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card.feature { grid-column: auto; }
  .skill-card { min-height: 220px; }
  .skill-card h3 { margin-top: 62px; }
  .experience-panel { display: block; padding: 36px 24px; }
  .experience-number { margin: 45px 0; }
  .project-intro { display: block; }
  .project-intro h2, .project-intro .lead { margin-top: 18px; }
  .project-visual { min-height: 430px; }
  .project-visual img { object-position: 63% center; }
  .project-caption { left: 20px; right: 20px; flex-direction: column; align-items: flex-start; }
  .category { padding-inline: 20px; }
  .site-footer .shell { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
