:root {
  --bg: #0c0c0c;
  --bg-soft: #141414;
  --text: #f0efea;
  --muted: #a6a6a2;
  --accent: #c77a42;
  --line: #292929;
  --max: 1240px;
  --header-h: 72px;
  --title-font: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 14% 8%, rgba(199,122,66,.035), transparent 32rem),
    radial-gradient(circle at 88% 42%, rgba(255,255,255,.018), transparent 38rem),
    url("/assets/images/site/noise.png");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 128px 128px;
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.65;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #090909; }

.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-link { display:inline-flex; align-items:center; gap:.55rem; }
.mini-icon { width:1rem; height:1rem; color:var(--accent); }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: .7rem 1rem; background: var(--text); color: var(--bg); transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }

.site-header { height: var(--header-h); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(12,12,12,.88); backdrop-filter: blur(14px); }
.home .site-header { position: fixed; width: 100%; background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent); border: 0; }
.header-inner { width: min(calc(100% - 48px), var(--max)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display:inline-flex; align-items:center; gap:.8rem; font-family:var(--title-font); font-size:.88rem; letter-spacing:.2em; white-space:nowrap; }
.brand-mark { width:46px; height:auto; flex:0 0 auto; filter:brightness(0) invert(1); opacity:.96; }
.brand-name { display:inline-block; }
.nav-list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.nav-list a { position: relative; color: #ddd; padding: .5rem 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .25s ease; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.nav-list a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 22px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span { margin: 5px 0; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.page-main { min-height: 70vh; }
.page-hero { padding: 7rem 0 4rem; border-bottom: 1px solid var(--line); background:linear-gradient(115deg, rgba(255,255,255,.018), rgba(199,122,66,.018) 45%, transparent 75%); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
h1,h2,h3 { font-family: var(--title-font); font-weight: 400; margin-top: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); letter-spacing: .22em; line-height: 1.1; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: .12em; text-transform: uppercase; }
h3 { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: #d7d6d1; font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 760px; }
.muted { color: var(--muted); }
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.text-link { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.text-link:hover { color: var(--text); }
.section-action { margin-top: 2rem; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; overflow: hidden; background: #080808; }
.hero-picture, .hero-picture img, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-picture img { object-fit: cover; object-position: 72% 50%; filter: saturate(.45) contrast(1.08) brightness(.56); }
.hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.36) 45%, rgba(0,0,0,.32) 72%), linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.30) 55%, rgba(0,0,0,.78)); }
.hero-content { position: relative; z-index: 2; text-align: center; width: min(90%, 1050px); padding-top: var(--header-h); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 6.5rem); letter-spacing: .18em; margin-bottom: 1rem; }
.hero-signature { color: var(--accent); text-transform: uppercase; letter-spacing: .28em; font-size: clamp(.7rem, 1.3vw, 1rem); }
.hero-sub { max-width: 550px; margin: 1.25rem auto 0; font-size: clamp(.95rem, 1.5vw, 1.2rem); }
.hero-scroll { position: absolute; z-index: 3; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 28px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; }
.hero-scroll::after { content:""; position:absolute; width:3px; height:3px; border-radius:50%; background:#fff; left:50%; top:8px; transform:translateX(-50%); animation: scrollhint 1.8s infinite; }
@keyframes scrollhint { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,18px)} }

.intro { max-width: 850px; margin: auto; text-align: center; font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: #d2d1cc; }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { padding: 3rem 2.4rem; min-height: 270px; border-right: 1px solid var(--line); background:rgba(12,12,12,.42); }
.pillar:last-child { border-right: 0; }
.pillar-top { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.pillar-number { color: var(--accent); font-size: .75rem; letter-spacing: .18em; }
.pillar-icon { width:2rem; height:2rem; color:var(--accent); opacity:.9; }
.pillar h3 { font-size: 1.45rem; margin: 2.4rem 0 1.2rem; }
.pillar p { color: var(--muted); margin: 0; }

.home-gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-flow:dense;
  gap:8px;
}
.home-gallery figure { margin:0; overflow:hidden; background:var(--bg-soft); min-height:0; }
.home-gallery .home-photo--wide { grid-column:1 / -1; }
.home-gallery .home-photo--wide img { aspect-ratio:2.15 / 1; }
.home-gallery .home-photo:not(.home-photo--wide) img { aspect-ratio:1.22 / 1; }
.home-gallery img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.home-gallery figure:hover img { transform:scale(1.012); filter:brightness(1.05); }

.journey-preview { display:block; }
.journey-copy { max-width:820px; margin-bottom:3.4rem; }
.journey-line { list-style:none; margin:0; padding:2rem 0 0; border-top:1px solid var(--accent); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(1rem,2.4vw,2.2rem); }
.journey-line li { position:relative; padding:.6rem .3rem 0 0; color:#d2d1cd; font-size:.92rem; line-height:1.45; }
.journey-line li::before { content:""; position:absolute; left:0; top:-2.3rem; width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px var(--bg); }

.gallery-toolbar { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 2rem; color: var(--muted); font-size: .8rem; }
.portfolio-grid { columns: 3 300px; column-gap: 14px; }
.portfolio-item { break-inside: avoid; margin: 0 0 14px; }
.photo-button { display:block; width:100%; border:0; padding:0; margin:0; background:transparent; cursor:zoom-in; }
.photo-button img { width:100%; height:auto; background:var(--bg-soft); transition: filter .25s ease, opacity .25s ease; }
.photo-button:hover img, .photo-button:focus-visible img { filter: brightness(1.08); }
.photo-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lightbox {
  position:fixed;
  inset:0;
  z-index:200;
  width:100vw;
  height:100dvh;
  padding:0;
  background:rgba(3,3,3,.985);
  color:var(--text);
  backdrop-filter:blur(4px);
}
.lightbox[hidden] { display:none !important; }
.lightbox.is-open { display:block; }
.lightbox-inner {
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns:clamp(48px,7vw,96px) minmax(0,1fr) clamp(48px,7vw,96px);
  grid-template-rows:56px minmax(0,1fr) 16px;
}
.lightbox-count { position:absolute; z-index:3; top:1.1rem; left:1.3rem; color:var(--muted); font-size:.75rem; white-space:nowrap; }
.lightbox-close { position:absolute; z-index:4; top:.65rem; right:1rem; border:0; background:rgba(0,0,0,.3); width:44px; height:44px; cursor:pointer; font-size:1.7rem; border-radius:50%; }
.lightbox-media {
  grid-column:2/3;
  grid-row:1/4;
  min-width:0;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(14px,2vw,30px) 0;
  overflow:hidden;
}
.lightbox-media img {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:calc(100dvh - clamp(28px,4vw,60px));
  object-fit:contain;
  object-position:center;
  box-shadow:0 18px 70px rgba(0,0,0,.45);
}
.lightbox-prev,.lightbox-next { grid-row:1/4; align-self:center; justify-self:center; width:48px; height:72px; border:0; background:rgba(0,0,0,.22); cursor:pointer; font-size:2rem; color:#eee; border-radius:24px; z-index:3; }
.lightbox-prev { grid-column:1/2; }
.lightbox-next { grid-column:3/4; }
.lightbox-prev:hover,.lightbox-next:hover,.lightbox-close:hover { background:rgba(199,122,66,.16); color:var(--accent); }

.timeline { position: relative; margin: 4rem 0 0; padding-left: 2rem; border-left: 1px solid var(--accent); }
.timeline-item { position:relative; padding:0 0 3.4rem 2rem; display:grid; grid-template-columns:160px 1fr; gap:2rem; }
.timeline-item::before { content:""; position:absolute; left:-2.33rem; top:.35rem; width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px var(--bg); }
.timeline-date { color:var(--accent); font-size:.78rem; letter-spacing:.08em; }
.timeline-content { min-width:0; }
.timeline-heading { display:flex; align-items:center; gap:1rem; margin-bottom:.65rem; }
.timeline-heading h3 { margin:0; }
.timeline-icon {
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(199,122,66,.55);
  border-radius:50%;
  color:var(--accent);
  background:rgba(199,122,66,.055);
}
.timeline-icon .icon { width:20px; height:20px; color:var(--accent); stroke:currentColor; }
.timeline-item h3 { margin-bottom:.6rem; }
.timeline-item p { color:var(--muted); max-width:700px; margin:0; }
.domain-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.domain-card { background:rgba(12,12,12,.82); padding:2rem; text-align:center; }
.domain-icon { display:block; width:2.15rem; height:2.15rem; margin:0 auto 1.4rem; color:var(--accent); stroke:var(--accent); fill:none; }
.domain-card p { color:var(--muted); margin:0 auto; max-width:260px; }

.about-layout { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); gap:clamp(3rem,8vw,9rem); align-items:start; }
.about-portrait { position:sticky; top:calc(var(--header-h) + 2rem); }
.about-portrait img { width:100%; aspect-ratio:1; object-fit:cover; filter:grayscale(1); }
.about-copy { font-size:1.08rem; }
.about-copy h2 { margin-top:4rem; font-size:1.35rem; letter-spacing:.08em; }
.about-copy h2:first-child { margin-top:0; }
.pullquote { border-left:1px solid var(--accent); padding:1.1rem 0 1.1rem 1.6rem; margin:3rem 0; color:#ddd; font-size:1.25rem; }

.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); margin-top:3rem; }
.contact-card { background:rgba(12,12,12,.82); padding:clamp(2rem,5vw,4rem); min-height:300px; display:flex; flex-direction:column; justify-content:space-between; }
.contact-card-head { display:flex; align-items:center; gap:1rem; }
.contact-icon { width:2.2rem; height:2.2rem; color:var(--accent); }
.contact-card .label { color:var(--muted); text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; }
.contact-card .contact-value { font-family:var(--title-font); font-size:clamp(1.1rem,2vw,1.55rem); overflow-wrap:anywhere; }

.legal { max-width:800px; }
.legal h2 { font-size:1.3rem; margin-top:3rem; }
.legal a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }

.site-footer { border-top:1px solid var(--line); padding:3.5rem 0 1.5rem; color:var(--muted); }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:2rem; }
.footer-brand { display:flex; align-items:center; gap:1rem; }
.footer-logo { width:68px; height:auto; flex:0 0 auto; filter:brightness(0) invert(1); opacity:.92; }
.footer-title { color:var(--text); font-family:var(--title-font); letter-spacing:.18em; font-size:.9rem; }
.footer-signature { color:var(--accent); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; margin-top:.4rem; }
.footer-links { list-style:none; margin:0; padding:0; }
.footer-links li + li { margin-top:.35rem; }
.footer-links a:hover { color:var(--text); }
.footer-links .icon-link { width:max-content; max-width:100%; }
.footer-links .mini-icon { color:var(--accent); }
.footer-bottom { border-top:1px solid var(--line); margin-top:2.5rem; padding-top:1.4rem; display:flex; justify-content:space-between; gap:2rem; font-size:.75rem; }
.footer-legal { display:flex; gap:1.3rem; flex-wrap:wrap; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity:1; transform:none; }

@media (max-width: 850px) {
  :root { --header-h: 64px; }
  .header-inner, .container { width:min(calc(100% - 32px), var(--max)); }
  .brand-mark { width:40px; }
  .menu-toggle { display:block; }
  .site-nav { position:fixed; inset:var(--header-h) 0 0; background:rgba(8,8,8,.98); display:none; padding:3rem 1.5rem; }
  .site-nav.is-open { display:block; }
  .nav-list { flex-direction:column; align-items:center; gap:1.4rem; font-size:1.25rem; }
  .hero h1 { letter-spacing:.12em; }
  .hero-signature { letter-spacing:.16em; }
  .pillars { grid-template-columns:1fr; }
  .pillar { border-right:0; border-bottom:1px solid var(--line); min-height:0; }
  .pillar:last-child { border-bottom:0; }
  .home-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .home-gallery .home-photo--wide { grid-column:1 / -1; }
  .home-gallery .home-photo--wide img { aspect-ratio:1.65 / 1; }
  .home-gallery .home-photo:not(.home-photo--wide) img { aspect-ratio:1 / 1.12; }
  .portfolio-grid { columns:2 220px; column-gap:8px; }
  .portfolio-item { margin-bottom:8px; }
  .timeline-item { grid-template-columns:1fr; gap:.55rem; padding-left:1.2rem; }
  .timeline-heading { align-items:center; }
  .domain-grid { grid-template-columns:1fr 1fr; }
  .about-layout { grid-template-columns:1fr; }
  .about-portrait { position:static; max-width:520px; }
  .contact-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
}

@media (max-width: 560px) {
  .container { width:min(calc(100% - 24px), var(--max)); }
  .page-hero { padding:5rem 0 3rem; }
  h1 { letter-spacing:.14em; }
  .brand { gap:.6rem; font-size:.78rem; letter-spacing:.14em; }
  .brand-mark { width:34px; }
  .hero-content { width:calc(100% - 24px); }
  .hero h1 { font-size:clamp(2rem,12vw,3.3rem); }
  .hero-sub { font-size:.95rem; }
  .section { padding:4rem 0; }
  .section-head { align-items:start; flex-direction:column; gap:.6rem; }
  .home-gallery .home-photo--optional-mobile { display:none; }
  .journey-copy { margin-bottom:2.5rem; }
  .journey-line { display:block; border-top:0; border-left:1px solid var(--accent); padding:0 0 0 1.25rem; }
  .journey-line li { padding:0 0 1.4rem 1rem; }
  .journey-line li:last-child { padding-bottom:0; }
  .journey-line li::before { left:-1.55rem; top:.42rem; }
  .portfolio-grid { columns:2 140px; }
    .lightbox-inner { grid-template-columns:44px minmax(0,1fr) 44px; grid-template-rows:52px minmax(0,1fr); }
  .lightbox-media { padding:10px 0; }
  .lightbox-prev,.lightbox-next { width:38px; height:58px; font-size:1.55rem; }
  .domain-grid { grid-template-columns:1fr; }
  .footer-logo { width:58px; }
  .footer-bottom { flex-direction:column; }
}

@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; }
}
