/* ============ TOKENS ============ */
:root {
  --bg: #f1efe9;          /* warm paper */
  --bg-soft: #e9e6de;
  --surface: #ffffff;
  --ink: #161410;         /* near-black */
  --muted: #6c685f;
  --faint: #a39e92;
  --line: rgba(22, 20, 16, 0.14);
  --line-strong: rgba(22, 20, 16, 0.26);
  --accent: #b8542e;      /* warm terracotta */
  --accent-soft: rgba(184, 84, 46, 0.12);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }

/* shared label style (small caps tracked) */
.label, .hero__eyebrow, .section__idx, .skill-group__title, .job__place,
.contact__eyebrow, .contact__base, .service__no, .project__meta, .badge {
  font-family: "Hanken Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ============ GRAIN + CURSOR ============ */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(22, 20, 16, 0.05) 0%, transparent 65%);
  transition: opacity 0.4s ease; opacity: 0;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 5vw, 56px);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(241, 239, 233, 0.82); backdrop-filter: blur(12px);
  border-color: var(--line); padding-top: 16px; padding-bottom: 16px;
}
.nav__brand {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 24px; letter-spacing: -0.01em;
}
.nav__brand span { font-style: italic; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); }
.nav__links a { font-size: 15px; color: var(--muted); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--ink); padding: 9px 20px; border-radius: 100px;
  color: var(--ink) !important; transition: all 0.25s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--bg) !important; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: none;
  cursor: pointer; padding: 4px; font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px; letter-spacing: 0.1em; color: var(--faint);
}
.lang-toggle span[data-lang] { transition: color 0.2s ease; }
.lang-toggle span[data-lang].is-active { color: var(--ink); font-weight: 600; }
.lang-toggle__sep { color: var(--faint); }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw); margin: 0 auto; position: relative;
  padding: clamp(120px, 16vh, 180px) clamp(20px, 5vw, 56px) 60px;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184,84,46,0.45); }
  70% { box-shadow: 0 0 0 11px rgba(184,84,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,84,46,0); }
}
.hero__name {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(52px, 9vw, 124px); line-height: 0.92; letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero__name span { display: block; }
.hero__name--em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__lede {
  max-width: 480px; font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: "Hanken Grotesk", sans-serif; font-weight: 500; font-size: 15px;
  padding: 14px 28px; border-radius: 100px; transition: all 0.28s var(--ease);
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(22,20,16,0.5); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* hero photo */
.hero__media { position: relative; }
.hero__frame {
  position: relative; border: 1px solid var(--ink); padding: 12px; background: var(--bg-soft);
}
.hero__frame::before {
  content: ""; position: absolute; left: 18px; top: 18px; right: -18px; bottom: -18px;
  border: 1px solid var(--accent); opacity: 0.5; z-index: -1;
}
.hero__photo {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 58%;
  filter: saturate(1.04) contrast(1.03);
}
/* rotating availability stamp */
.badge {
  position: absolute; left: -34px; bottom: -34px; width: 116px; height: 116px;
  border-radius: 50%; background: var(--accent); color: var(--bg);
  display: grid; place-items: center; z-index: 3;
}
.badge__svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge__svg text { font-size: 9.6px; letter-spacing: 0.22em; fill: var(--bg); font-family: "Hanken Grotesk", sans-serif; font-weight: 600; }
.badge__arrow { font-family: "Fraunces", serif; font-size: 30px; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge__svg { animation: none; } }

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(48px, 7vw, 88px); padding-top: 36px; border-top: 1px solid var(--ink);
}
.metric__num {
  display: block; font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em;
}
.metric__label { font-size: 13.5px; color: var(--muted); margin-top: 10px; display: block; }
@media (max-width: 720px) { .metrics { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

.hero__scroll {
  margin-top: 48px; font-family: "Hanken Grotesk", sans-serif; font-size: 12px; color: var(--faint);
  letter-spacing: 0.14em; text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__media { max-width: 360px; margin-top: 12px; }
  .badge { width: 96px; height: 96px; left: auto; right: -20px; bottom: -20px; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: hidden; padding: 16px 0; background: var(--bg-soft);
}
.marquee__track {
  display: flex; gap: 26px; width: max-content; animation: scroll 38s linear infinite;
  font-family: "Fraunces", serif; font-weight: 500; font-size: 22px; color: var(--ink);
}
.marquee__track span:nth-child(even) { color: var(--faint); font-style: italic; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============ SECTIONS ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 11vh, 130px) clamp(20px, 5vw, 56px); }
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 52px; }
.section__idx { font-size: 13px; color: var(--muted); }
.section__title {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(32px, 5vw, 58px); letter-spacing: -0.025em; line-height: 1;
}

/* ABOUT */
.about__lead {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(22px, 3vw, 34px); line-height: 1.32; max-width: 920px; margin-bottom: 56px;
  letter-spacing: -0.01em;
}
.about__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.about__col { padding: 32px 28px 32px 0; border-right: 1px solid var(--line); }
.about__col:last-child { border-right: none; padding-right: 0; }
.about__col:not(:first-child) { padding-left: 28px; }
.about__col h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: 22px; margin-bottom: 12px; }
.about__col p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) {
  .about__cols { grid-template-columns: 1fr; }
  .about__col { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 0 !important; }
  .about__col:last-child { border-bottom: none; }
}

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  position: relative; padding: 36px 30px; background: var(--bg); overflow: hidden;
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--surface); }
.service__no { font-size: 12px; color: var(--muted); }
.service__title { font-family: "Fraunces", serif; font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 16px 0 12px; }
.service__desc { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* PROJECTS */
.section__head--split { justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.section__headline { display: flex; align-items: baseline; gap: 18px; }
.section__count { font-family: "Hanken Grotesk", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; color: var(--muted); }
.projects__hint { color: var(--muted); font-size: 14.5px; margin: -30px 0 34px; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project {
  position: relative; background: var(--bg); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; text-align: left;
  transition: background 0.4s var(--ease);
}
.project::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 2;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(22,20,16,0.06), transparent 60%);
  transition: opacity 0.3s ease;
}
.project:hover { background: var(--surface); }
.project:hover::after { opacity: 1; }
.project:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.project__shot {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden; display: block;
}
.project__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform 0.6s var(--ease);
}
.project:hover .project__img { transform: scale(1.04); }

.project__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__tag { font-family: "Hanken Grotesk", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--muted); }
.project__title { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; line-height: 1.12; }
.project__teaser { color: var(--muted); font-size: 14.5px; flex: 1; }
.project__meta {
  font-family: "Fraunces", serif; font-style: italic; font-size: 16px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; margin-top: 4px;
}
.project__meta::before { content: ""; width: 22px; height: 1px; background: var(--ink); display: inline-block; flex-shrink: 0; }
@media (max-width: 900px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* PROJECT MODAL */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(22, 20, 16, 0.5); backdrop-filter: blur(3px); animation: fade 0.3s ease; }
.modal__panel {
  position: relative; z-index: 1; width: min(940px, 100%); max-height: 90vh; overflow: auto;
  background: var(--bg); border: 1px solid var(--ink);
  display: grid; grid-template-columns: 1.05fr 1fr; animation: pop 0.45s var(--ease);
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; font-size: 14px; color: var(--ink);
  transition: all 0.2s ease;
}
.modal__close:hover { background: var(--ink); color: var(--bg); }
.modal__visual { color: var(--ink); background: #fff; border-right: 1px solid var(--line); padding: 0; display: flex; align-items: stretch; overflow: hidden; }
.modal__img { width: 100%; height: 100%; min-height: 260px; object-fit: contain; object-position: center; display: block; }
.modal__content { padding: 44px 40px; }
.modal__meta { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.modal__tag { font-family: "Hanken Grotesk", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11.5px; color: var(--muted); }
.modal__year { font-family: "Hanken Grotesk", sans-serif; font-size: 11.5px; letter-spacing: 0.1em; color: var(--faint); padding-left: 14px; border-left: 1px solid var(--line); }
.modal__title { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.04; margin-bottom: 6px; }
.modal__role { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal__block { padding: 16px 0; border-top: 1px solid var(--line); }
.modal__label { display: block; font-family: "Hanken Grotesk", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.modal__block p { font-size: 15px; color: var(--ink); }
.modal__result { font-family: "Fraunces", serif !important; font-style: italic; font-size: 20px !important; }
.modal__stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.modal__stack li { font-size: 13px; padding: 5px 13px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--ink); }
.modal__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: "Hanken Grotesk", sans-serif; font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 100px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal__link:hover { background: transparent; color: var(--ink); }
body.no-scroll { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
@media (max-width: 760px) {
  .modal__panel { grid-template-columns: 1fr; }
  .modal__visual { border-right: none; border-bottom: 1px solid var(--line); padding: 30px; }
  .modal__content { padding: 30px; }
}

/* TRUST */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.trust__item { padding: 36px 28px 0 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.trust__item:last-child { border-right: none; }
.trust__item:not(:first-child) { padding-left: 28px; }
.trust__name { font-family: "Fraunces", serif; font-weight: 500; font-size: 30px; letter-spacing: -0.02em; }
.trust__role { font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr; }
  .trust__item { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0 24px 0 !important; }
  .trust__item:last-child { border-bottom: none; }
}

/* PROCESS */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { padding: 36px 28px; background: var(--bg); transition: background 0.4s var(--ease); }
.step:hover { background: var(--surface); }
.step__no { font-family: "Fraunces", serif; font-style: italic; font-weight: 400; font-size: 48px; line-height: 1; color: var(--faint); display: block; margin-bottom: 22px; }
.step__title { font-family: "Fraunces", serif; font-weight: 500; font-size: 22px; margin-bottom: 10px; }
.step__desc { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* CONTACT */
.contact { border-top: 1px solid var(--ink); background: var(--bg-soft); padding: clamp(80px, 13vh, 150px) clamp(20px, 5vw, 56px) 40px; }
.contact__inner { max-width: var(--maxw); margin: 0 auto; }
.contact__eyebrow { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.contact__title { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(40px, 8vw, 104px); line-height: 0.96; letter-spacing: -0.03em; margin-bottom: 18px; }
.contact__title em, .contact__title span { font-style: italic; font-weight: 400; }
.contact__sub { font-size: clamp(15px, 2vw, 19px); color: var(--muted); margin-bottom: 48px; }
.contact__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact__link { background: var(--bg); padding: 30px; display: flex; flex-direction: column; gap: 8px; transition: background 0.25s ease; }
.contact__link:not(.contact__link--static):hover { background: var(--surface); }
.contact__k { font-family: "Hanken Grotesk", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; color: var(--muted); }
.contact__v { font-family: "Fraunces", serif; font-size: clamp(18px, 2vw, 26px); color: var(--ink); transition: color 0.2s ease; }
.contact__link:not(.contact__link--static):hover .contact__v { font-style: italic; }
@media (max-width: 600px) { .contact__links { grid-template-columns: 1fr; } }
.contact__base { max-width: var(--maxw); margin: 52px auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--faint); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-load { opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--d) * 0.11s + 0.15s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-load { opacity: 1; transform: none; }
}
