/* ==========================================================================
   NGE — New Generation Engineering
   Editorial architecture site · bone / navy / gold
   ========================================================================== */

@view-transition { navigation: auto; }

@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: #f6f3ec;
  --paper: #fffdf9;
  --ink: #0e2233;
  --ink-soft: #3a4d5e;
  --muted: #6f7d89;
  --gold: #b8933c;
  --gold-light: #d6b466;
  --gold-deep: #8f6f22;
  --gold-soft: #efe4c8;
  --navy: #0b1a27;
  --line: rgba(14, 34, 51, 0.14);
  --line-soft: rgba(14, 34, 51, 0.08);
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 4.4vw, 72px);
  --max: 1460px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bone);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  background: var(--bone);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__inner img { width: 62px; height: 62px; }
.preloader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: preload 1.1s var(--ease) forwards;
}
.preloader p {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
@keyframes preload { to { transform: scaleX(1); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 1050;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  transition: padding 0.4s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 243, 236, 0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-stuck { padding-block: 10px; }
.site-header.is-stuck::before {
  background: rgba(246, 243, 236, 0.9);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img { width: 46px; height: 46px; }
.brand__text { display: grid; gap: 1px; }
.brand__text strong {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}
.brand__text small {
  font-size: 9.5px;
  letter-spacing: 0.045em;
  color: var(--muted);
  white-space: nowrap;
}

.nav { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__profile {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.header__profile:hover { color: var(--gold-deep); border-color: var(--gold); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { bottom: 18px; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--bone);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 11.5px; }
.btn--light { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  background: var(--bone);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.menu__nav { display: grid; gap: 4px; }
.menu__nav a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  line-height: 1.05;
  text-decoration: none;
  color: var(--ink);
  width: fit-content;
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.25s ease;
}
.menu__nav a:hover { color: var(--gold-deep); }
.menu.is-open .menu__nav a { animation: menuIn 0.7s var(--ease) forwards; }
.menu.is-open .menu__nav a:nth-child(2) { animation-delay: 0.05s; }
.menu.is-open .menu__nav a:nth-child(3) { animation-delay: 0.1s; }
.menu.is-open .menu__nav a:nth-child(4) { animation-delay: 0.15s; }
.menu.is-open .menu__nav a:nth-child(5) { animation-delay: 0.2s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.menu__foot div { display: grid; gap: 4px; }
.menu__foot a { text-decoration: none; }
.menu__foot a:hover { color: var(--gold-deep); }
.menu__foot p { line-height: 1.7; }
.menu__profile { color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 82% 38%, rgba(214, 180, 102, 0.14), transparent 60%),
    var(--bone);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg canvas { width: 100%; height: 100%; display: block; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bone) 0%, rgba(246, 243, 236, 0.94) 30%, rgba(246, 243, 236, 0.32) 58%, transparent 82%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: calc(100svh - 104px);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero__copy { max-width: 700px; padding: 40px 0 56px; }

.hero__place {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

.hero h1 {
  margin-top: clamp(22px, 3vh, 34px);
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.4vw, 6.3rem);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 span { display: block; }

.hero__lead {
  margin-top: 30px;
  max-width: 44ch;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.68;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(38px, 6vh, 58px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero__disciplines li { position: relative; padding-left: 13px; }
.hero__disciplines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__visual {
  position: relative;
  height: clamp(470px, 68vh, 660px);
  display: block;
}
.hero__model-note {
  position: absolute;
  top: 4px;
  left: 0;
  display: flex;
  gap: 26px;
  padding-top: 10px;
  border-top: 1px solid rgba(184, 147, 60, 0.45);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  z-index: 2;
}
.hero__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 78%;
  height: 60%;
  margin: 0;
  overflow: hidden;
  background: #e5ddcd;
  box-shadow: 0 40px 80px -40px rgba(14, 34, 51, 0.4);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(214, 180, 102, 0.7);
  pointer-events: none;
}
.hero__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 22px 18px;
  background: linear-gradient(transparent, rgba(9, 24, 38, 0.86));
  color: var(--bone);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}
.hero__photo figcaption span:last-child { color: rgba(246, 243, 236, 0.65); text-align: right; }

.hero__scroll {
  position: absolute;
  left: var(--pad);
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Intro ---------- */
.intro { padding: clamp(88px, 12vw, 170px) var(--pad); }
.intro__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px 40px;
  align-items: start;
}
.intro__label {
  grid-column: 1 / 3;
  padding-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.intro__statement {
  grid-column: 3 / 10;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro__aside {
  grid-column: 10 / 13;
  display: grid;
  gap: 18px;
  padding-top: 10px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* ---------- Work ---------- */
.work { padding: 0 var(--pad) clamp(90px, 12vw, 150px); }
.work__head {
  max-width: var(--max);
  margin: 0 auto 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
}
.work__head h2,
.services__head h2 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.work__head p,
.services__head p {
  justify-self: end;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.projects {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.projects__col { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 92px); }
.projects__col--offset { margin-top: clamp(60px, 9vw, 140px); }

.project__link { display: block; text-decoration: none; color: inherit; }
.project__media {
  position: relative;
  overflow: hidden;
  background: #e5ddcd;
}
.project--wide .project__media { aspect-ratio: 4 / 3; }
.project--tall .project__media { aspect-ratio: 3 / 4; }
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: saturate(0.94);
}
.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(9, 24, 38, 0.2));
  opacity: 0;
  transition: opacity 0.6s ease;
}
.project__link:hover .project__media img { transform: scale(1.055); filter: saturate(1.02); }
.project__link:hover .project__media::after { opacity: 1; }

.project__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.project__info h3 {
  font-family: var(--sans);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.project__info p {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.project__tag {
  flex: none;
  padding-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  white-space: nowrap;
}

.work__note {
  max-width: var(--max);
  margin: 64px auto 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
.work__note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.work__note a:hover { color: var(--gold-deep); }

/* ---------- Services ---------- */
.services {
  padding: clamp(88px, 11vw, 150px) var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.services__head {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
}
.services__list { max-width: var(--max); margin: 0 auto; }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1.1fr 40px;
  gap: clamp(18px, 4vw, 60px);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
  transition: transform 0.5s var(--ease), color 0.3s ease;
}
.service__desc {
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.service__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.5s var(--ease);
}
.service__icon svg { width: 13px; height: 13px; }
.service:hover .service__name { color: var(--gold-deep); transform: translateX(8px); }
.service:hover .service__icon { background: var(--ink); border-color: var(--ink); color: var(--bone); transform: translate(2px, -2px); }

.service-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 250px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.45s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(9, 24, 38, 0.45);
}
.service-preview img { width: 100%; height: 100%; object-fit: cover; }
.service-preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Approach ---------- */
.approach {
  padding: clamp(90px, 12vw, 170px) var(--pad);
  background: var(--navy);
  color: var(--bone);
}
.approach__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.approach__head { position: sticky; top: 120px; }
.approach__head h2 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.approach__head p {
  max-width: 34ch;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(246, 243, 236, 0.58);
}

.steps { position: relative; padding-left: clamp(22px, 3.4vw, 46px); --p: 0; }
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
}
.steps::before { background: rgba(246, 243, 236, 0.14); }
.steps::after {
  background: var(--gold);
  transform: scaleY(var(--p));
  transform-origin: top;
}
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid rgba(246, 243, 236, 0.14);
}
.step:first-child { border-top: 0; }
.step__num {
  padding-top: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.step h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.step p {
  max-width: 48ch;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(246, 243, 236, 0.6);
}

/* ---------- Studio ---------- */
.studio { padding: clamp(90px, 12vw, 170px) var(--pad); }
.studio__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.studio__copy { grid-column: 1 / 6; }
.studio__copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.studio__copy > p {
  max-width: 48ch;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.facts { margin-top: 40px; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt { font-size: 11px; letter-spacing: 0.03em; color: var(--muted); padding-top: 2px; }
.facts dd { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-bottom: 4px;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.text-link span { color: var(--gold-deep); transition: transform 0.3s var(--ease); }
.text-link:hover span { transform: translate(2px, -2px); }

.studio__media { grid-column: 7 / 13; position: relative; min-height: 600px; }
.studio__img { margin: 0; overflow: hidden; background: #e5ddcd; }
.studio__img img { width: 100%; height: 100%; object-fit: cover; }
.studio__img--a { width: 74%; aspect-ratio: 4 / 5; }
.studio__img--b {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 52%;
  aspect-ratio: 1 / 1;
  border: 10px solid var(--bone);
  box-shadow: 0 30px 60px -30px rgba(14, 34, 51, 0.35);
}
.studio__caption {
  position: absolute;
  left: 0;
  bottom: -64px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Strip ---------- */
.strip { padding: 0 var(--pad) clamp(90px, 12vw, 150px); }
.strip__head {
  max-width: var(--max);
  margin: 0 auto 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.strip__head p:last-child { text-align: right; }
.strip__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.strip__grid figure { margin: 0; overflow: hidden; background: #e5ddcd; aspect-ratio: 3 / 4; }
.strip__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.strip__grid figure:hover img { transform: scale(1.04); }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(90px, 13vw, 180px) var(--pad) clamp(70px, 9vw, 110px);
  background: var(--navy);
  color: var(--bone);
}
.contact__inner { max-width: var(--max); margin: 0 auto; }
.contact__kicker {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.contact h2 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7.2vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  max-width: 1100px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 90px);
  padding-top: 36px;
  border-top: 1px solid rgba(246, 243, 236, 0.16);
}
.contact__phones { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact__phones > a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.25;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact__phones > a:hover { color: var(--gold-light); }
.contact__wa {
  margin-top: 14px;
  font-family: var(--sans) !important;
  font-size: 11.5px !important;
  letter-spacing: 0.03em;
  color: var(--gold-light) !important;
  border-bottom: 1px solid rgba(214, 180, 102, 0.5);
  padding-bottom: 2px;
}
.contact address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(246, 243, 236, 0.64);
}
.contact__profile { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact__site {
  font-size: 12px;
  color: rgba(246, 243, 236, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 243, 236, 0.25);
  padding-bottom: 2px;
}
.contact__site:hover { color: var(--gold-light); }
.contact__qr {
  width: 112px;
  height: 112px;
  margin-top: 8px;
  padding: 8px;
  background: #fff;
}
.contact__qr-note { font-size: 10.5px; letter-spacing: 0.04em; color: rgba(246, 243, 236, 0.5); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(246, 243, 236, 0.6);
  border-top: 1px solid rgba(246, 243, 236, 0.12);
  padding: 28px var(--pad);
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 36px;
}
.brand--footer img { width: 40px; height: 40px; }
.brand--footer .brand__text strong { color: var(--bone); font-size: 23px; }
.brand--footer .brand__text small { color: rgba(246, 243, 236, 0.5); }
.site-footer__note { font-size: 11.5px; line-height: 1.7; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__nav a { font-size: 11.5px; text-decoration: none; }
.site-footer__nav a:hover { color: var(--gold-light); }
.site-footer__copy { font-size: 10.5px; letter-spacing: 0.03em; }

/* ---------- Project dialog ---------- */
.pmodal {
  width: min(1120px, 92vw);
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.pmodal::backdrop {
  background: rgba(6, 16, 26, 0.74);
  backdrop-filter: blur(6px);
}
.pmodal__grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  max-height: 88vh;
}
.pmodal__media { min-height: 100%; background: #e5ddcd; }
.pmodal__media img { width: 100%; height: 100%; object-fit: cover; }
.pmodal__body {
  position: relative;
  padding: clamp(26px, 3.4vw, 48px);
  overflow-y: auto;
  max-height: 88vh;
}
.pmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.pmodal__close:hover { background: var(--ink); color: var(--bone); }
.pmodal__close svg { width: 14px; height: 14px; }
.pmodal__cat { font-size: 10.5px; letter-spacing: 0.05em; color: var(--gold-deep); }
.pmodal h2 {
  margin-top: 12px;
  padding-right: 40px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pmodal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pmodal__meta dt { font-size: 10px; letter-spacing: 0.04em; color: var(--muted); }
.pmodal__meta dd { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.pmodal__desc { margin-top: 22px; font-size: 14px; line-height: 1.72; color: var(--ink-soft); }
.pmodal__list { margin-top: 18px; display: grid; gap: 8px; }
.pmodal__list li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.pmodal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.pmodal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.pmodal__nav button {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink-soft);
}
.pmodal__nav button:hover { color: var(--gold-deep); border-color: var(--gold); }
.pmodal__nav span { color: var(--muted); font-size: 10.5px; letter-spacing: 0.04em; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: difference;
}
.cursor.is-visible { opacity: 1; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease;
}
.cursor.is-active .cursor__ring { width: 54px; height: 54px; opacity: 0.6; }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .header__profile { display: none; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero__photo { width: 84%; }
}

@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header__actions .btn { display: none; }

  .hero { padding-top: 92px; }
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 40px;
    gap: 34px;
  }
  .hero__copy { padding: 0; max-width: 680px; }
  .hero h1 { font-size: clamp(3rem, 8.6vw, 5.6rem); }
  .hero__visual { height: clamp(380px, 58vh, 560px); width: 100%; }
  .hero__photo { position: relative; right: auto; bottom: auto; width: 100%; height: 100%; }
  .hero__bg { opacity: 0.5; }
  .hero__bg::after {
    background: linear-gradient(180deg, var(--bone) 0%, rgba(246, 243, 236, 0.55) 45%, rgba(246, 243, 236, 0.2) 100%);
  }
  .hero__scroll { display: none; }

  .intro__inner { grid-template-columns: repeat(6, 1fr); }
  .intro__label { grid-column: 1 / 3; }
  .intro__statement { grid-column: 1 / 7; }
  .intro__aside { grid-column: 3 / 7; }

  .work__head,
  .services__head { grid-template-columns: 1fr; gap: 16px; }
  .work__head p,
  .services__head p { justify-self: start; }

  .approach__inner { grid-template-columns: 1fr; }
  .approach__head { position: static; }

  .studio__grid { grid-template-columns: 1fr; }
  .studio__copy,
  .studio__media { grid-column: 1 / -1; }
  .studio__media { min-height: 0; margin-top: 20px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: end; }
  .studio__img--a { width: 100%; }
  .studio__img--b { position: static; width: 100%; aspect-ratio: 1 / 1; border: 0; }
  .studio__caption { position: static; grid-column: 1 / -1; margin-top: 4px; }

  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__profile { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .brand__text small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand__text strong { font-size: 23px; }

  .hero h1 { font-size: clamp(2.55rem, 11.4vw, 4.2rem); }
  .hero__lead { margin-top: 24px; }
  .hero__actions { margin-top: 28px; }
  .hero__disciplines { gap: 8px 16px; margin-top: 34px; }
  .hero__visual { height: clamp(340px, 54vh, 480px); }
  .hero__model-note { display: none; }

  .intro__inner { grid-template-columns: 1fr; gap: 20px; }
  .intro__label,
  .intro__statement,
  .intro__aside { grid-column: 1 / -1; }
  .intro__aside { margin-top: 8px; }

  .projects { grid-template-columns: 1fr; }
  .projects__col { gap: 46px; }
  .projects__col--offset { margin-top: 0; }
  .project--wide .project__media { aspect-ratio: 4 / 3; }
  .project--tall .project__media { aspect-ratio: 3 / 4; }

  .service { grid-template-columns: 1fr 32px; gap: 8px 16px; align-items: start; }
  .service__desc { grid-column: 1 / -1; font-size: 12.5px; max-width: 52ch; }
  .service__icon { grid-row: 1; grid-column: 2; align-self: center; }
  .service__name { font-size: clamp(1.55rem, 6vw, 2.1rem); }

  .step { grid-template-columns: 38px 1fr; gap: 14px; }
  .steps { padding-left: 18px; }

  .strip__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .strip__grid figure:last-child { display: none; }
  .strip__head { flex-direction: column; gap: 4px; }
  .strip__head p:last-child { text-align: left; }

  .contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .contact__profile { grid-column: auto; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__nav { order: 4; }

  .pmodal__grid { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .pmodal__media { aspect-ratio: 4 / 3; min-height: 0; }
  .pmodal__body { max-height: none; overflow: visible; }
}

@media (max-width: 460px) {
  .hero__actions .btn { flex: 1 1 auto; }
  .contact h2 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .contact__phones > a { font-size: 1.45rem; }
  .facts div { grid-template-columns: 100px 1fr; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  .service-preview { display: none; }
}

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