:root {
  --paper: #f2f1ea;
  --ink: #101b2b;
  --muted: #637080;
  --blue: #377eac;
  --blue-soft: #9fc5df;
  --forest: #405c43;
  --line: rgba(16, 27, 43, 0.18);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection { background: var(--blue-soft); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 3vw;
  right: 3vw;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.44);
  background: rgba(242, 241, 234, .72);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 35px rgba(16, 27, 43, .07);
}

.monogram { font-weight: 600; font-size: 1.05rem; letter-spacing: -.04em; }
.monogram span { color: var(--blue); }

.nav-links { display: flex; gap: 30px; font-family: var(--mono); font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.nav-links a { position: relative; padding: 10px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; background: none; border: 0; font: 500 .72rem var(--mono); text-transform: uppercase; }

.section { width: min(94vw, 1500px); margin: 0 auto; }

.hero {
  min-height: 100svh;
  padding: 140px 3vw 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .62fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(42px, 7vw, 120px);
  position: relative;
}

.eyebrow { font: 400 .7rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.status-dot { width: 7px; height: 7px; background: #4e8a58; border-radius: 50%; box-shadow: 0 0 0 4px rgba(78,138,88,.12); }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.5rem, 7.5vw, 8.5rem); line-height: .89; letter-spacing: -.07em; font-weight: 500; margin: clamp(45px, 8vh, 105px) 0 36px; }
h1 em, .contact h2 em { font-style: normal; color: var(--blue); font-weight: 400; }
.hero-intro { max-width: 660px; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.75; color: var(--muted); }
.hero-intro strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 34px; margin-top: 38px; }

.text-link, .all-work-link, .email-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
  font: 500 .76rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.text-link span, .all-work-link span, .email-link span { transition: transform .25s ease; }
.text-link:hover span, .all-work-link:hover span, .email-link:hover span { transform: translate(3px, -3px); }
.text-link--primary { color: var(--blue); }

.portrait { margin: 0; align-self: stretch; max-height: calc(100svh - 190px); position: relative; overflow: hidden; background: var(--blue-soft); }
.portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(16,27,43,.1); pointer-events: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; filter: saturate(.85) contrast(.96); transition: transform 1.1s cubic-bezier(.2,.75,.25,1); }
.portrait:hover img { transform: scale(1.02); }
.portrait figcaption { position: absolute; z-index: 1; inset: auto 0 0; display: flex; justify-content: space-between; padding: 48px 18px 16px; color: white; font: 400 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; background: linear-gradient(transparent, rgba(9,18,29,.65)); }

.about, .projects, .experience { padding: clamp(100px, 14vw, 210px) 3vw; display: grid; grid-template-columns: minmax(140px, .32fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); border-top: 1px solid var(--line); }
.section-label { display: flex; gap: 20px; align-items: flex-start; }
.section-label span { font-size: .63rem; color: var(--blue); padding-top: 3px; }
.section-label p { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.statement { max-width: 1040px; font-size: clamp(2rem, 4.1vw, 4.8rem); letter-spacing: -.055em; line-height: 1.08; margin-bottom: clamp(60px, 9vw, 130px); }
.statement span { color: var(--blue); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; max-width: 1020px; }
.about-grid p { color: var(--muted); line-height: 1.8; font-size: .98rem; }
.capabilities { margin-top: 90px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.capability { padding: 24px 35px 5px 0; border-right: 1px solid var(--line); }
.capability + .capability { padding-left: 35px; }
.capability:last-child { border-right: 0; }
.capability span { color: var(--blue); font-size: .62rem; }
.capability h3 { margin: 34px 0 14px; font-size: 1.1rem; font-weight: 600; }
.capability p { color: var(--muted); line-height: 1.65; font-size: .85rem; }

.projects { background: var(--ink); color: #eff2ee; width: 100%; padding-left: max(6vw, calc((100vw - 1500px)/2 + 3vw)); padding-right: max(6vw, calc((100vw - 1500px)/2 + 3vw)); border: 0; }
.projects .section-label p { color: #eff2ee; }
.projects .section-label span { color: var(--blue-soft); }
.project-list { border-top: 1px solid rgba(255,255,255,.19); }
.project { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) 58px; gap: 18px; padding: 52px 0; border-bottom: 1px solid rgba(255,255,255,.19); transition: background .25s ease, padding .25s ease; }
.project::before { content: ""; position: absolute; inset: 0 -22px; background: rgba(255,255,255,.03); opacity: 0; transition: opacity .25s ease; }
.project:hover::before { opacity: 1; }
.project-number, .project-meta { color: var(--blue-soft); font-size: .62rem; }
.project h2 { font-size: clamp(2rem, 4vw, 4.1rem); letter-spacing: -.055em; font-weight: 500; margin: 13px 0 20px; }
.project-body > p { max-width: 720px; color: #aeb7bd; line-height: 1.72; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: #d3d8d8; font: 400 .65rem var(--mono); text-transform: uppercase; }
.tag-list li::before { content: "+ "; color: var(--blue-soft); }
.project-link { position: relative; z-index: 1; justify-self: end; font-size: 1.8rem; transition: transform .25s ease, color .25s ease; }
.project-link:hover { color: var(--blue-soft); transform: translate(5px, -5px); }
.all-work-link { margin-top: 48px; color: var(--blue-soft); }

.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: minmax(120px, .3fr) 1fr; gap: 30px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.timeline-row--branded { grid-template-columns: minmax(120px, .3fr) 58px 1fr; }
.timeline-date { font-size: .62rem; color: var(--blue); padding-top: 5px; }
.timeline-logo { width: 58px; height: 58px; display: grid; place-items: center; }
.timeline-logo img { width: 100%; height: 100%; object-fit: contain; }
.timeline-company { margin-bottom: 9px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.timeline h2 { font-size: clamp(1.15rem, 1.7vw, 1.65rem); font-weight: 500; letter-spacing: -.03em; margin-bottom: 16px; }
.timeline h2 span { color: var(--blue); }
.timeline-row > div:last-child > p:last-child { max-width: 760px; color: var(--muted); line-height: 1.75; }
.timeline-row--compact { align-items: center; }
.timeline-row--compact h2 { margin: 0; }

.contact { width: 100%; background: #86b2d0; display: grid; grid-template-columns: 1.4fr .6fr; gap: 8vw; padding: clamp(90px, 12vw, 180px) max(6vw, calc((100vw - 1500px)/2 + 3vw)); }
.contact-kicker { font-size: .65rem; margin-bottom: 60px; }
.contact h2 { font-size: clamp(3.5rem, 7vw, 8rem); line-height: .92; letter-spacing: -.065em; font-weight: 500; margin-bottom: 60px; }
.contact h2 em { color: rgba(242,241,234,.9); }
.email-link { font-size: clamp(.75rem, 1.2vw, .95rem); }
.contact-aside { align-self: end; }
.contact-aside > p { line-height: 1.8; font-size: .95rem; margin-bottom: 48px; }
.social-links { border-top: 1px solid rgba(16,27,43,.3); }
.social-links a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(16,27,43,.3); font: 500 .68rem var(--mono); text-transform: uppercase; }
.social-links span { transition: transform .25s ease; }
.social-links a:hover span { transform: translate(3px, -3px); }

footer { min-height: 130px; padding: 40px max(6vw, calc((100vw - 1500px)/2 + 3vw)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; background: var(--ink); color: #eff2ee; }
footer p { margin: 0; font-size: .58rem; color: #9ba6ae; }
footer p:last-child { text-align: right; }
.footer-meta { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.cookie-settings { padding: 0; border: 0; border-bottom: 1px solid #65717a; background: none; color: #9ba6ae; font-size: .58rem; cursor: pointer; }
.cookie-settings:hover, .cookie-settings:focus-visible { color: #eff2ee; }

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 32px));
  padding: 26px;
  background: var(--ink);
  color: #eff2ee;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 60px rgba(16,27,43,.24);
}
.cookie-banner[hidden] { display: none; }
.analytics-consent-required body { height: 100svh; overflow: hidden; }
.analytics-consent-required body::after {
  content: "";
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(11, 24, 38, .18);
  backdrop-filter: blur(12px) saturate(.8);
  -webkit-backdrop-filter: blur(12px) saturate(.8);
}
.analytics-consent-required .site-header,
.analytics-consent-required main,
.analytics-consent-required footer {
  pointer-events: none;
  user-select: none;
}
.analytics-consent-required .cookie-banner {
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  width: min(560px, calc(100vw - 32px));
  padding: clamp(24px, 4vw, 36px);
  background: rgba(16, 27, 43, .82);
  border-color: rgba(191, 220, 237, .38);
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);
  box-shadow: 0 30px 90px rgba(7, 17, 29, .32);
}
.analytics-consent-required .cookie-banner::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 92px;
  height: 2px;
  background: var(--blue-soft);
}
.cookie-label { color: var(--blue-soft); font-size: .6rem; margin-bottom: 15px; }
.cookie-banner h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 500; letter-spacing: -.04em; margin-bottom: 12px; }
.cookie-banner p:not(.cookie-label) { color: #b9c0c4; font-size: .82rem; line-height: 1.65; margin-bottom: 22px; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 10px; }
.cookie-button { padding: 12px 16px; border: 1px solid var(--blue-soft); background: var(--blue-soft); color: var(--ink); font: 500 .65rem var(--mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.cookie-button--secondary { background: transparent; color: #eff2ee; border-color: rgba(255,255,255,.35); }
.cookie-button:hover, .cookie-button:focus-visible { filter: brightness(1.1); }

.reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .72fr; column-gap: 35px; }
  h1 { font-size: clamp(3.4rem, 9vw, 6rem); }
  .about, .projects, .experience { grid-template-columns: 1fr; }
  .section-label { margin-bottom: 22px; }
  .contact { grid-template-columns: 1fr; }
  .contact-aside { max-width: 520px; }
}

@media (max-width: 680px) {
  .site-header { top: 10px; left: 12px; right: 12px; min-height: 52px; padding: 0 16px; }
  .menu-button { display: flex; align-items: center; gap: 10px; }
  .menu-icon, .menu-icon::after { width: 15px; height: 1px; background: currentColor; display: block; transition: transform .2s ease; }
  .menu-icon { position: relative; }
  .menu-icon::after { content: ""; position: absolute; transform: translateY(5px); }
  .menu-button[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon::after { transform: rotate(-90deg); }
  .nav-links { position: absolute; top: calc(100% + 7px); left: 0; right: 0; padding: 18px; background: rgba(242,241,234,.95); border: 1px solid var(--line); backdrop-filter: blur(15px); flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .hero { min-height: auto; padding: 120px 0 55px; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { display: contents; }
  .eyebrow { grid-row: 1; }
  h1 { grid-row: 2; min-width: 0; margin: 45px 0 35px; font-size: clamp(2.7rem, 10.8vw, 3.6rem); }
  .hero-intro { grid-row: 4; margin-top: 32px; }
  .hero-actions { grid-row: 5; gap: 20px; flex-wrap: wrap; }
  .portrait { grid-row: 3; height: 62vh; min-height: 480px; max-height: 650px; }
  .section { width: calc(100% - 32px); }
  .about, .projects, .experience { padding: 95px 0; }
  .projects { width: 100%; padding-left: 16px; padding-right: 16px; }
  .about-grid, .capabilities { grid-template-columns: 1fr; }
  .about-grid { gap: 12px; }
  .statement { font-size: 2.2rem; }
  .capabilities { margin-top: 60px; }
  .capability, .capability + .capability { padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability h3 { margin-top: 22px; }
  .project { grid-template-columns: 32px 1fr 25px; gap: 8px; padding: 38px 0; }
  .project h2 { font-size: 2.25rem; }
  .project-body > p { font-size: .88rem; }
  .timeline-row { grid-template-columns: 1fr; gap: 18px; }
  .timeline-row--branded { grid-template-columns: 50px 1fr; }
  .timeline-row--branded .timeline-date { grid-column: 1 / -1; }
  .timeline-logo { width: 50px; height: 50px; }
  .contact { padding: 90px 16px; }
  .contact h2 { font-size: clamp(3.3rem, 15vw, 5rem); }
  footer { grid-template-columns: 1fr auto; min-height: 120px; padding: 35px 16px; }
  footer p:nth-child(2) { display: none; }
  .footer-meta { gap: 14px; }
  .cookie-banner { right: 16px; bottom: 16px; padding: 22px; }
  .analytics-consent-required .cookie-banner { right: 50%; bottom: 50%; }
  .cookie-actions { align-items: stretch; flex-direction: column-reverse; }
  .cookie-button { width: 100%; }
}

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