:root {
  --paper: #f4ebe6;
  --paper-2: #eee7e2;
  --ink: #343230;
  --muted: #706a66;
  --taupe: #b5a296;
  --taupe-deep: #8f7d72;
  --lavender: #d9d1e7;
  --white: #fffdfb;
  --dark: #2e2d2c;
  --line: rgba(52, 50, 48, .16);
  --max: 1480px;
  --ease: cubic-bezier(.2,.75,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
p { line-height: 1.7; }
.skip-link { position: fixed; left: 20px; top: -60px; background: var(--dark); color: white; padding: 10px 14px; z-index: 1000; transition: top .2s; }
.skip-link:focus { top: 20px; }
.section-shell { width: min(var(--max), calc(100% - 9vw)); margin: 0 auto; }
.eyebrow { margin: 0 0 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--taupe-deep); }
.section-no { display: inline-block; margin-top: 22px; font-family: Georgia, serif; font-size: 42px; color: rgba(52,50,48,.18); }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 76px; padding: 12px 4.5vw; display: flex; align-items: center; justify-content: space-between; background: rgba(244,235,230,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 15px; letter-spacing: .08em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 14px; font-weight: 600; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.nav a:not(.nav-button) { position: relative; padding: 8px 0; }
.nav a:not(.nav-button)::after { content:""; position:absolute; left:0; right:100%; bottom:2px; height:1px; background:var(--ink); transition:right .3s var(--ease); }
.nav a:not(.nav-button):hover::after { right:0; }
.nav-button { border: 1px solid var(--ink); padding: 11px 14px; transition: .25s ease; }
.nav-button:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display:none; background:none; border:0; text-transform:uppercase; letter-spacing:.12em; font-size:11px; }

.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(38px, 7vw, 110px); align-items: center; padding-top: clamp(58px,7vw,105px); padding-bottom: clamp(70px,8vw,120px); }
.hero-copy { max-width: 720px; padding-left: 2vw; }
.hero h1 { margin: 0; max-width: 740px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 4.55vw, 68px); line-height: 1.00; font-weight: 400; letter-spacing: -.055em; }
.hero h1 span { color: var(--taupe-deep); font-style: italic; }
.hero-intro { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); }
.hero-actions { display:flex; gap:26px; align-items:center; margin-top:34px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 19px; font-size:11px; text-transform:uppercase; letter-spacing:.12em; }
.button.dark { background:var(--dark); color:var(--paper); border:1px solid var(--dark); }
.button.dark:hover { background:transparent; color:var(--ink); }
.text-link { font-size:11px; text-transform:uppercase; letter-spacing:.12em; border-bottom:1px solid var(--ink); padding:9px 0 5px; }
.hero-meta { display:grid; grid-template-columns:1fr 1fr; max-width:590px; margin-top:60px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hero-meta div { display:grid; grid-template-columns:auto 1fr; gap:16px; padding:16px 0; align-items:start; }
.hero-meta div + div { border-left:1px solid var(--line); padding-left:20px; }
.hero-meta span { font-family:Georgia,serif; font-size:23px; color:var(--taupe); }
.hero-meta p { margin:2px 0 0; font-size:10px; line-height:1.55; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
.hero-art { position:relative; min-height:690px; }
.hero-frame { position:absolute; inset:0; overflow:hidden; background:#ddd5cf; }
.hero-frame img { width:100%; height:100%; object-fit:cover; object-position:center; transition:transform 1.2s var(--ease); }
.hero-art:hover img { transform:scale(1.018); }
.hero-frame::after { content:""; position:absolute; inset:0; box-shadow:inset 0 0 0 1px rgba(52,50,48,.09); pointer-events:none; }
.hero-stamp { position:absolute; right:0; bottom:48px; width:185px; min-height:102px; padding:20px; display:flex; flex-direction:column; justify-content:space-between; background:var(--lavender); border:1px solid rgba(52,50,48,.12); }
.hero-stamp b { font-size:11px; text-transform:uppercase; letter-spacing:.12em; }
.hero-stamp span { font-family:Georgia,serif; font-size:18px; color:var(--muted); }
.hero-number { position:absolute; right:1%; top:-20px; font-family:Georgia,serif; font-size:clamp(72px,8vw,128px); color:rgba(52,50,48,.09); z-index:-1; }

.intro-strip { overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--paper-2); }
.strip-track { width:max-content; display:flex; align-items:center; gap:24px; padding:15px 0; animation:scroll 38s linear infinite; font-size:10px; text-transform:uppercase; letter-spacing:.18em; }
.strip-track i { color:var(--taupe-deep); font-style:normal; }
@keyframes scroll { to { transform:translateX(-50%); } }

.work { padding-top:130px; padding-bottom:90px; }
.section-title { display:grid; grid-template-columns:.42fr 1.58fr; gap:50px; align-items:start; padding-bottom:80px; }
.section-title h2 { margin:0; max-width:1000px; font-family:Georgia,serif; font-size:clamp(32px,3.5vw,50px); line-height:1.02; font-weight:400; letter-spacing:-.035em; }
.section-title > div:last-child > p { max-width:760px; color:var(--muted); font-size:16px; }
.project-card { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr); gap:clamp(45px,7vw,105px); align-items:center; padding:95px 0; border-top:1px solid var(--line); }
.project-card.reverse { grid-template-columns:minmax(330px,.92fr) minmax(0,1.08fr); }
.project-card.reverse .project-visual { order:2; }
.project-card.reverse .project-info { order:1; }
.project-visual { position:relative; border:0; padding:0; overflow:hidden; cursor:pointer; background:#e5ddd7; aspect-ratio:4/5; box-shadow:0 20px 55px rgba(64,53,47,.08); }
.project-visual img { width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease), filter .8s var(--ease); }
.project-visual:hover img { transform:scale(1.025); }
.project-visual::after { content:""; position:absolute; inset:0; box-shadow:inset 0 0 0 1px rgba(52,50,48,.12); pointer-events:none; }
.view-pill { position:absolute; left:20px; bottom:20px; padding:10px 12px; background:rgba(244,235,230,.93); backdrop-filter:blur(10px); font-size:10px; text-transform:uppercase; letter-spacing:.12em; }
.project-info { padding:3vw 0; }
.project-topline { display:flex; gap:18px; align-items:center; margin-bottom:44px; }
.project-topline span { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:50%; font-family:Georgia,serif; color:var(--taupe-deep); }
.project-topline p { margin:0; font-size:10px; text-transform:uppercase; letter-spacing:.13em; color:var(--muted); }
.project-info h3 { margin:0 0 24px; font-family:"Arial Narrow", "Helvetica Neue", Arial, sans-serif; text-transform:uppercase; font-style:italic; font-stretch:condensed; font-size:clamp(38px,4.15vw,58px); line-height:.92; letter-spacing:-.045em; font-weight:700; }
.project-info > p { max-width:600px; color:var(--muted); font-size:16px; }
.plain-link { margin-top:25px; padding:0 0 7px; border:0; border-bottom:1px solid var(--ink); background:none; cursor:pointer; text-transform:uppercase; letter-spacing:.12em; font-size:10px; }
.plain-link span { margin-left:8px; }

.about { display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(55px,8vw,120px); align-items:center; padding-top:120px; padding-bottom:140px; border-top:1px solid var(--line); }
.about-image { position:relative; min-height:680px; overflow:visible; }
.about-image img { width:100%; height:680px; object-fit:cover; object-position:center; filter:saturate(.75) contrast(.98); }
.about-image::before { content:""; position:absolute; inset:25px -25px -25px 25px; border:1px solid var(--taupe); z-index:-1; }
.image-note { position:absolute; right:-25px; bottom:36px; background:var(--dark); color:var(--paper); padding:16px 18px; font-family:Georgia,serif; font-size:17px; }
.about-heading { display:flex; justify-content:space-between; align-items:start; }
.about-copy h2 { margin:0 0 30px; font-family:Georgia,serif; font-size:clamp(34px,3.35vw,48px); line-height:1.03; font-weight:400; letter-spacing:-.035em; }
.about-copy > p { max-width:690px; color:var(--muted); font-size:16px; }
.about-copy .lead { color:var(--ink); font-size:19px; }
.about-facts { margin-top:42px; border-top:1px solid var(--line); }
.about-facts div { display:grid; grid-template-columns:150px 1fr; gap:24px; padding:18px 0; border-bottom:1px solid var(--line); }
.about-facts small { text-transform:uppercase; letter-spacing:.12em; color:var(--muted); }
.about-facts strong { font-weight:500; line-height:1.55; }


.education { padding-top:115px; padding-bottom:125px; border-top:1px solid var(--line); }
.education-heading { display:grid; grid-template-columns:.42fr 1.58fr; gap:50px; align-items:start; padding-bottom:54px; }
.education-heading h2 { margin:0; max-width:900px; font-family:Georgia,serif; font-size:clamp(31px,3.25vw,46px); line-height:1.05; font-weight:400; letter-spacing:-.032em; }
.education-card { display:grid; grid-template-columns:.9fr 1.1fr; border-top:1px solid var(--ink); border-bottom:1px solid var(--line); }
.education-degree { padding:34px 44px 38px 0; border-right:1px solid var(--line); }
.education-label { display:block; margin-bottom:18px; font-size:9px; text-transform:uppercase; letter-spacing:.14em; color:var(--taupe-deep); }
.education-degree h3 { margin:0; font-family:Georgia,serif; font-size:clamp(34px,3.5vw,50px); line-height:1; font-weight:400; letter-spacing:-.035em; }
.education-degree p { margin:18px 0 0; color:var(--muted); font-size:13px; }
.education-details { display:grid; grid-template-columns:.7fr 1.3fr; }
.education-details > div { padding:34px 30px; }
.education-details > div + div { border-left:1px solid var(--line); }
.education-details small { display:block; margin-bottom:15px; font-size:9px; text-transform:uppercase; letter-spacing:.13em; color:var(--muted); }
.education-details strong { display:block; font-size:14px; line-height:1.65; font-weight:500; }

.experience { padding-top:125px; padding-bottom:140px; border-top:1px solid var(--line); }
.timeline { border-top:1px solid var(--ink); }
.timeline article { display:grid; grid-template-columns:.45fr .65fr 1fr; gap:36px; padding:35px 0 42px; border-bottom:1px solid var(--line); }
.timeline-date { font-family:Georgia,serif; color:var(--taupe-deep); font-size:17px; }
.timeline-role h3 { margin:0 0 7px; font-size:19px; }
.timeline-role p { margin:0; font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
.timeline-body p { margin:0 0 12px; color:var(--muted); font-size:14px; }
.skills { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:70px; }
.skill-panel { padding:28px; border:1px solid var(--line); background:rgba(255,255,255,.16); }
.skill-tags { display:flex; flex-wrap:wrap; gap:8px; }
.skill-tags span { border:1px solid var(--line); padding:9px 11px; font-size:10px; text-transform:uppercase; letter-spacing:.08em; background:rgba(255,255,255,.24); }
.credential-row { display:grid; grid-template-columns:1fr 1fr 1fr; margin-top:28px; border:1px solid var(--line); }
.credential-row > * { padding:24px; min-height:140px; display:flex; flex-direction:column; }
.credential-row > * + * { border-left:1px solid var(--line); }
.credential-row span { font-size:9px; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); }
.credential-row strong { margin-top:17px; font-family:Georgia,serif; font-size:23px; font-weight:400; }
.credential-row p { margin:auto 0 0; font-size:11px; color:var(--muted); }
.credential-row a { transition:.25s ease; }
.credential-row a:hover { background:var(--lavender); }

.contact { background:var(--dark); color:var(--paper); }
.contact-shell { width:min(1180px,calc(100% - 9vw)); margin:0 auto; padding:120px 0 110px; }
.contact .eyebrow { color:var(--taupe); }
.contact h2 { margin:0; font-family:Georgia,serif; font-size:clamp(40px,4.7vw,68px); line-height:.95; font-weight:400; letter-spacing:-.05em; }
.contact-intro { max-width:650px; margin:28px 0 55px; color:rgba(255,255,255,.64); font-size:17px; }
.contact-links { border-top:1px solid rgba(255,255,255,.18); }
.contact-links a { display:grid; grid-template-columns:120px 1fr auto; align-items:center; gap:30px; padding:20px 0; border-bottom:1px solid rgba(255,255,255,.18); transition:color .25s; }
.contact-links a:hover { color:var(--taupe); }
.contact-links span { font-size:9px; text-transform:uppercase; letter-spacing:.13em; color:rgba(255,255,255,.55); }
.contact-links strong { font-size:16px; font-weight:400; }
.contact-links b { font-weight:400; }
.download-row { display:flex; gap:12px; margin-top:42px; }
.download-row a { border:1px solid rgba(255,255,255,.3); padding:14px 16px; text-transform:uppercase; letter-spacing:.1em; font-size:10px; transition:.25s; }
.download-row a:hover { background:var(--paper); color:var(--dark); }
.download-row span { margin-left:8px; }
footer { background:var(--dark); color:rgba(255,255,255,.5); border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; gap:20px; padding:22px 4.5vw; font-size:9px; text-transform:uppercase; letter-spacing:.12em; }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .85s ease, transform .85s var(--ease); }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.12s; }

.gallery { width:100vw; max-width:none; height:100vh; max-height:none; margin:0; padding:0; border:0; background:#232220; color:white; }
.gallery::backdrop { background:rgba(0,0,0,.92); }
.gallery[open] { display:grid; grid-template-rows:72px 1fr; }
.gallery-topbar { height:72px; display:flex; align-items:center; justify-content:space-between; padding:0 24px; border-bottom:1px solid rgba(255,255,255,.13); }
.gallery-topbar > div { display:flex; align-items:baseline; gap:16px; min-width:0; }
.gallery-topbar span { font-size:9px; text-transform:uppercase; letter-spacing:.13em; color:rgba(255,255,255,.5); }
.gallery-topbar strong { font-size:15px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gallery-close { background:none; border:0; color:white; text-transform:uppercase; letter-spacing:.12em; font-size:10px; cursor:pointer; }
.gallery-stage { position:relative; min-height:0; display:grid; place-items:center; overflow:hidden; }
.gallery-stage figure { margin:0; width:100%; height:100%; display:grid; grid-template-rows:1fr 40px; align-items:center; justify-items:center; padding:24px 80px 12px; min-height:0; }
.gallery-stage img { max-width:100%; max-height:calc(100vh - 150px); width:auto; height:auto; object-fit:contain; box-shadow:0 30px 80px rgba(0,0,0,.28); }
.gallery-stage figcaption { width:min(100%,1200px); display:flex; justify-content:space-between; align-items:center; gap:20px; color:rgba(255,255,255,.6); font-size:9px; text-transform:uppercase; letter-spacing:.11em; }
.gallery-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:48px; height:48px; border:1px solid rgba(255,255,255,.25); background:rgba(0,0,0,.18); color:white; cursor:pointer; font-size:18px; }
.gallery-nav.prev { left:18px; }
.gallery-nav.next { right:18px; }

/* Final portfolio refinements */
.hero-copy { max-width: 680px; }
.hero-intro { max-width: 610px; margin-top: 26px; }
.hero-actions { margin-top: 30px; }
.hero-meta { margin-top: 48px; }
.section-title { padding-bottom: 68px; }
.project-card { padding: 82px 0; }
.project-info h3 { margin-bottom: 20px; }
.about-copy h2 { max-width: 760px; }
.contact h2 { max-width: 940px; }
.project-visual img, .hero-frame img, .about-image img { image-rendering:auto; }
.project-visual { border-radius: 2px; }
.hero-frame, .about-image img { border-radius: 2px; }

@media (max-width: 1040px) {
  .nav { display:none; position:absolute; left:0; right:0; top:76px; padding:24px 4.5vw; flex-direction:column; align-items:stretch; gap:12px; background:var(--paper); border-bottom:1px solid var(--line); }
  .nav.open { display:flex; }
  .menu-toggle { display:block; cursor:pointer; }
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-copy { padding-left:0; }
  .hero-art { min-height:620px; }
  .hero-frame { inset:0 2%; }
  .hero-stamp { right:2%; }
  .section-title { grid-template-columns:1fr; gap:20px; }
  .project-card, .project-card.reverse { grid-template-columns:1fr; gap:45px; }
  .project-card.reverse .project-visual, .project-card.reverse .project-info { order:initial; }
  .project-visual { max-width:760px; width:100%; margin:auto; }
  .project-info { max-width:760px; }
  .about { grid-template-columns:1fr; }
  .about-image { max-width:670px; }
  .timeline article { grid-template-columns:.45fr 1fr; }
  .timeline-body { grid-column:2; }
}

@media (max-width: 680px) {
  .section-shell, .contact-shell { width:min(100% - 36px,var(--max)); }
  .brand-copy small { display:none; }
  .brand { min-width:auto; }
  .site-header { min-height:68px; padding:10px 18px; }
  .nav { top:68px; padding:22px 18px; }
  .hero { padding-top:64px; padding-bottom:76px; gap:52px; }
  .hero h1 { font-size:clamp(42px,12.5vw,58px); line-height:1.01; }
  .hero-actions { align-items:flex-start; flex-direction:column; gap:14px; }
  .hero-meta { grid-template-columns:1fr; }
  .hero-meta div + div { border-left:0; border-top:1px solid var(--line); padding-left:0; }
  .hero-art { min-height:520px; }
  .hero-frame { inset:0; }
  .hero-stamp { width:155px; right:-8px; bottom:20px; min-height:88px; }
  .work, .experience { padding-top:90px; }
  .section-title { padding-bottom:55px; }
  .project-card { padding:70px 0; }
  .project-info h3 { font-size:44px; }
  .project-topline { margin-bottom:30px; }
  .about { padding-top:90px; padding-bottom:100px; }
  .about-image { min-height:500px; }
  .about-image img { height:500px; }
  .about-image::before { inset:12px -12px -12px 12px; }
  .image-note { right:-10px; }
  .about-facts div { grid-template-columns:1fr; gap:7px; }
  .timeline article { grid-template-columns:1fr; gap:14px; padding:30px 0; }
  .timeline-body { grid-column:auto; }
  .skills { grid-template-columns:1fr; }
  .credential-row { grid-template-columns:1fr; }
  .credential-row > * + * { border-left:0; border-top:1px solid var(--line); }
  .contact-shell { padding:90px 0 80px; }
  .contact-links a { grid-template-columns:80px 1fr auto; gap:12px; }
  .contact-links strong { font-size:13px; overflow-wrap:anywhere; }
  .download-row { flex-direction:column; }
  footer { flex-direction:column; padding:22px 18px; }
  .gallery[open] { grid-template-rows:64px 1fr; }
  .gallery-topbar { height:64px; padding:0 14px; }
  .gallery-topbar span { display:none; }
  .gallery-stage figure { padding:18px 12px 68px; grid-template-rows:1fr 34px; }
  .gallery-stage img { max-height:calc(100vh - 150px); }
  .gallery-nav { top:auto; bottom:14px; transform:none; width:44px; height:44px; }
  .gallery-nav.prev { left:14px; }
  .gallery-nav.next { right:14px; }
  .gallery-stage figcaption { padding:0 60px; justify-content:center; text-align:center; }
  #gallery-caption { display:none; }
}

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

.credential-row.compact { grid-template-columns:1fr 1fr; max-width:900px; margin:28px auto 0; }

/* Final typography balance */
.hero h1 { max-width:700px; }
.about-copy .lead { font-size:18px; }
.contact-intro { font-size:16px; }

@media (max-width: 1040px) {
  .education-heading { grid-template-columns:1fr; gap:20px; }
  .education-card { grid-template-columns:1fr; }
  .education-degree { border-right:0; border-bottom:1px solid var(--line); padding-right:0; }
}

@media (max-width: 680px) {
  .hero h1 { font-size:clamp(38px,10.8vw,50px); line-height:1.02; }
  .section-title h2 { font-size:clamp(30px,8.6vw,40px); }
  .project-info h3 { font-size:40px; }
  .about-copy h2 { font-size:clamp(32px,9vw,42px); }
  .contact h2 { font-size:clamp(38px,10vw,50px); line-height:1; }
  .education { padding-top:88px; padding-bottom:95px; }
  .education-heading { padding-bottom:42px; }
  .education-heading h2 { font-size:clamp(30px,8.5vw,40px); }
  .education-degree { padding:28px 0; }
  .education-degree h3 { font-size:40px; }
  .education-details { grid-template-columns:1fr; }
  .education-details > div { padding:24px 0; }
  .education-details > div + div { border-left:0; border-top:1px solid var(--line); }
  .credential-row.compact { grid-template-columns:1fr; max-width:none; margin-left:0; }
}

/* Corrected final refinements */
.hero-meta div { grid-template-columns:1fr; }
.hero-meta div > span { display:none; }
@media (max-width:680px){ .hero-meta div { grid-template-columns:1fr; } }
