/* =========================================================
   Imanaki Design — dizayn sistemi
   ========================================================= */
:root {
  --paper: #f4f2ee;
  --paper-2: #e9e5de;
  --surface: #fbfaf8;
  --ink: #232528;
  --ink-2: #3a3d41;
  --muted: #77726b;
  --line: #d9d4cb;
  --clay: #b07a55;      /* terrakota vurğu */
  --clay-dark: #8f5c3d;
  --stone: #a8998a;
  --sand: #d9cbb8;
  --danger: #b3412f;
  --ok: #4d7353;

  --header-h: 76px;
  --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--paper);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll, body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); margin-bottom: .6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; color: var(--clay-dark); }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--clay); color: #fff; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .22em; color: var(--clay-dark); font-weight: 600; margin: 0 0 1rem; }
.eyebrow--light { color: var(--sand); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--paper);
  display: grid; place-content: center; gap: 28px; transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__draw { width: min(300px, 70vw); stroke: var(--sand); stroke-width: 1.2; }
.loader__draw path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) forwards; }
.loader__draw path:nth-child(2) { animation-delay: .15s; }
.loader__draw path:nth-child(3) { animation-delay: .3s; }
.loader__draw path:nth-child(4) { animation-delay: .5s; stroke: var(--clay); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__meta { display: flex; justify-content: space-between; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.loader__meta b { font-weight: 300; font-variant-numeric: tabular-nums; }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--clay); display: grid; place-items: center; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background .3s;
}
.cursor span { font-size: .78rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; letter-spacing: .04em; }
.cursor.is-visible { opacity: 1; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(176,122,85,.92); }
.cursor.is-view span { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(176,122,85,.25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 999px; font: 600 .9rem var(--sans); letter-spacing: .02em; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--clay); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--clay); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { color: #fff; }
.btn--small { padding: 12px 22px; font-size: .84rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 300; color: #fff; transition: background .4s, color .4s, transform .4s var(--ease), box-shadow .4s; }
.header.is-solid { background: rgba(244,242,238,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; position: relative; z-index: 2; }
.logo svg { width: 28px; height: 28px; stroke-width: 1.6; color: var(--clay); }
.logo small { display: block; font-weight: 400; font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; opacity: .7; margin-top: -2px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: .9rem; font-weight: 500; position: relative; padding: 4px 0; display: flex; gap: 6px; align-items: baseline; }
.nav a i { font-style: normal; font-size: .64rem; opacity: .55; }
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:not(.nav__cta):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; border-radius: 999px; padding: 9px 18px !important; transition: background .3s, color .3s, border-color .3s; }
.nav__cta:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; background: none; cursor: pointer; position: relative; color: inherit; z-index: 2; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; color: #fff; overflow: hidden; background: var(--ink); }
.hero__bg {
  position: absolute; inset: -8% -4%; background: url("../images/villa-fasad.jpg") center 40% / cover no-repeat;
  filter: blur(22px) saturate(.85) brightness(.62); will-change: transform; transform: scale(1.18); transition: transform 2.2s var(--ease);
}
body.is-ready .hero__bg { transform: scale(1.08); }
.hero__frame {
  position: absolute; z-index: 2; right: clamp(24px, 9vw, 160px); top: 50%; translate: 0 -46%; margin: 0;
  width: clamp(220px, 25vw, 380px); aspect-ratio: 9 / 15;
  clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); transition: clip-path 1.6s var(--ease) .5s;
}
body.is-ready .hero__frame { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.15); transition: transform 2.4s var(--ease) .5s; }
body.is-ready .hero__frame img { transform: none; }
.hero__frame figcaption { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; white-space: nowrap; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; background: rgba(35,37,40,.55); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 999px; }
.hero__content, .hero__scroll { z-index: 3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(25,24,23,.55) 0%, rgba(25,24,23,.15) 40%, rgba(25,24,23,.75) 100%); }
.hero__grid {
  position: absolute; inset: 0; z-index: 1; opacity: .16; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(ellipse at 30% 60%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 60%, #000 10%, transparent 70%);
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 40px) 0 90px; min-height: inherit; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero__coords { font-size: .74rem; letter-spacing: .16em; text-align: right; opacity: .7; font-variant-numeric: tabular-nums; }
.hero__title { font-size: clamp(3.6rem, 15vw, 13rem); font-weight: 300; letter-spacing: -.055em; line-height: .88; margin: 4vh 0; }
.hero__title .line { display: block; overflow: hidden; padding: .16em 0 .06em; margin-top: -.16em; } /* İ nöqtəsi kəsilməsin */
.hero__title .line--indent { padding-left: 12vw; }
.hero__title .char { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + .15s); }
body.is-ready .hero__title .char { transform: none; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero__tag { max-width: 440px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 300; margin: 0; line-height: 1.5; }
.hero__tag em { color: var(--sand); font-size: 1.15em; }
.hero__scroll { position: absolute; z-index: 2; right: 24px; bottom: 120px; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; opacity: .8; }
.hero__scroll span { width: 1px; height: 60px; background: linear-gradient(#fff, transparent); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--clay); animation: drip 2s infinite var(--ease); }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 300; letter-spacing: -.03em; padding-right: 1.1em; color: transparent; -webkit-text-stroke: 1px var(--stone); display: flex; align-items: center; gap: 1.1em; }
.marquee span::after { content: ""; width: .28em; height: .28em; background: var(--clay); transform: rotate(45deg); }
.marquee span:nth-child(3n+2) { color: var(--ink); -webkit-text-stroke: 0; font-family: var(--serif); font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark em { color: var(--sand); }
.section__label { display: flex; align-items: center; gap: 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 600; margin-bottom: 2.6rem; }
.section__label i { font-style: normal; color: var(--clay); }
.section__label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .18; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__photo { margin: 0; position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 42% center; border-radius: 200px 200px 4px 4px; }
.about__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--clay); border-radius: 200px 200px 4px 4px; z-index: -1; }
.about__photo figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 36px; font-size: .86rem; flex-wrap: wrap; }
.about__photo figcaption span { color: var(--muted); }
.about__stamp { position: absolute; top: -30px; right: -20px; width: 120px; height: 120px; background: var(--paper); border-radius: 50%; animation: spin 18s linear infinite; }
.about__stamp text { fill: var(--ink); stroke: none; font: 600 10.5px var(--sans); letter-spacing: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.lead { font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.3; font-weight: 300; letter-spacing: -.02em; margin-bottom: 1.4em; }
.about__text > p:not(.lead) { color: var(--ink-2); max-width: 620px; }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 2.6rem 0; }
.timeline h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.timeline li { padding: 14px 0 14px 18px; border-left: 1px solid var(--line); position: relative; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 21px; width: 7px; height: 7px; background: var(--clay); border-radius: 50%; }
.timeline time { display: block; font-size: .75rem; color: var(--clay-dark); font-weight: 600; letter-spacing: .06em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: 2.4rem; }
.stats div { padding: 22px 0; }
.stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.stats b::after { content: attr(data-suffix); color: var(--clay); font-size: .5em; vertical-align: top; }
.stats span { font-size: .82rem; color: var(--muted); }
.quote { margin: clamp(70px, 9vw, 120px) auto 0; max-width: 980px; text-align: center; }
.quote p { font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.25; font-weight: 300; letter-spacing: -.025em; }
.quote cite { font-style: normal; font-size: .74rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }

/* ---------- Services ---------- */
.services { border-top: 1px solid rgba(244,242,238,.16); margin-top: 1rem; }
.service { border-bottom: 1px solid rgba(244,242,238,.16); transition: background .4s; }
.service.is-open { background: rgba(244,242,238,.03); }
.service__head {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto 44px; align-items: center; gap: 20px; padding: 30px 0;
  background: none; border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit;
}
.service__head i { font-style: normal; font-size: .8rem; color: var(--clay); letter-spacing: .1em; }
.service__head h3 { font-size: clamp(1.5rem, 3.4vw, 2.7rem); font-weight: 300; transition: transform .5s var(--ease), color .3s; }
.service__head:hover h3 { transform: translateX(14px); color: var(--sand); }
.service__icon { width: 38px; height: 38px; color: var(--sand); opacity: .5; transition: opacity .3s; }
.service.is-open .service__icon { opacity: 1; color: var(--clay); }
.service__plus { width: 44px; height: 44px; border: 1px solid rgba(244,242,238,.3); border-radius: 50%; position: relative; transition: background .3s, transform .5s var(--ease); }
.service__plus::before, .service__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.service__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.service.is-open .service__plus { background: var(--clay); border-color: var(--clay); transform: rotate(180deg); }
.service.is-open .service__plus::after { transform: translate(-50%, -50%) rotate(0); }
.service__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__body > div { overflow: hidden; padding-left: 90px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.service__body p { color: rgba(244,242,238,.72); margin: 0 0 32px; max-width: 560px; }
.service__for { border-left: 1px solid var(--clay); padding-left: 20px; }
.service__for b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--sand); margin-bottom: 6px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: clamp(60px, 8vw, 100px); counter-reset: s; }
.process li { padding: 28px 24px; background: rgba(244,242,238,.04); position: relative; transition: background .4s; }
.process li:hover { background: rgba(176,122,85,.16); }
.process i { font-family: var(--serif); font-size: 2.4rem; color: var(--clay); line-height: 1; display: block; margin-bottom: 18px; }
.process b { display: block; font-weight: 500; font-size: 1.05rem; margin-bottom: 6px; }
.process span { font-size: .86rem; color: rgba(244,242,238,.6); }

/* ---------- Projects ---------- */
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 2.6rem; }
.projects__head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 11px 20px; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font: 500 .88rem var(--sans); color: var(--ink); transition: all .35s var(--ease); }
.filter sup { font-size: .62rem; margin-left: 3px; color: var(--clay-dark); }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.is-active sup { color: var(--sand); }
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }
.project { grid-column: span 4; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.project.is-in { opacity: 1; transform: none; }
.projects { transition: opacity .25s; }
@media (min-width: 1025px) { .project:nth-child(3n+2) { margin-top: 90px; } .project:nth-child(3n+3) { margin-top: 30px; } }
.project__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; background: var(--paper-2); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.project__img::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: top; transition: transform 1s var(--ease); }
.project.is-in .project__img::after { transform: scaleY(0); }
.project:hover .project__img img, .project:focus-visible .project__img img { transform: scale(1.06); filter: saturate(1.1); }
.project__tag { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(244,242,238,.92); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.project__info { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding-top: 18px; }
.project__info i { font-style: normal; font-size: .76rem; color: var(--clay-dark); padding-top: 6px; grid-row: span 2; }
.project__info h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 500; transition: color .3s; }
.project:hover h3 { color: var(--clay-dark); }
.project__info p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); }
.contact__list { margin: 2.4rem 0; }
.contact__list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: .98rem; }
.contact__list span { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding-top: 4px; }
.contact__list a:hover { color: var(--clay-dark); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { font-size: .86rem; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; transition: all .3s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.form { background: var(--surface); padding: clamp(28px, 4.5vw, 56px); border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(35,37,40,.18); }
.field { position: relative; margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
.field input:not([type=radio]):not([type=range]), .field textarea {
  width: 100%; padding: 22px 0 10px; font: 400 1.02rem var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; transition: border-color .3s; resize: vertical;
}
.field > label:not(.static) { position: absolute; left: 0; top: 20px; font-size: 1rem; color: var(--muted); pointer-events: none; transition: all .3s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--clay); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-dark); font-weight: 600; }
.field legend, .field .static { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; display: block; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; transition: all .25s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.range { display: flex; align-items: center; gap: 18px; }
.range input { flex: 1; accent-color: var(--clay); height: 28px; }
.range output { min-width: 120px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--danger); }
.field.invalid .chips span { border-color: rgba(179,65,47,.5); }
.error { display: block; color: var(--danger); font-size: .78rem; margin-top: 6px; min-height: 0; }
.form__status { margin: 18px 0 0; font-size: .92rem; }
.form__status.ok { color: var(--ok); }
.form__status.bad { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 80px 0 30px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer__top p { font-size: 1.05rem; color: rgba(244,242,238,.7); margin: 0; }
.footer__top a:not(.footer__up) { color: var(--paper); font-size: clamp(1.4rem, 3vw, 2.2rem); border-bottom: 1px solid var(--clay); }
.footer__up { width: 60px; height: 60px; border: 1px solid rgba(244,242,238,.3); border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; transition: background .3s, transform .4s var(--ease); flex-shrink: 0; }
.footer__up:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-4px); }
.footer__giant { font-size: clamp(4.5rem, 21vw, 19rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; margin: 60px 0 30px; color: transparent; -webkit-text-stroke: 1px rgba(244,242,238,.22); white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: rgba(244,242,238,.5); }

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(25,24,23,.86); backdrop-filter: blur(6px); animation: fadeIn .35s; }
.modal__box { position: relative; width: min(1240px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); border-radius: 4px; display: grid; grid-template-columns: 1.5fr 1fr; animation: rise .55s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--clay); transform: rotate(90deg); }
.modal__gallery { background: #1d1e20; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.modal__stage { position: relative; overflow: hidden; border-radius: 2px; touch-action: pan-y; }
.modal__stage img { width: 100%; aspect-ratio: 4/3; object-fit: cover; animation: imgIn .5s var(--ease); }
@keyframes imgIn { from { opacity: .2; transform: scale(1.03); } }
.modal__count { position: absolute; left: 14px; bottom: 14px; color: #fff; font-size: .8rem; letter-spacing: .14em; background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(244,242,238,.9); cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:hover { background: var(--clay); color: #fff; }
.nav-btn.prev { left: 14px; } .nav-btn.next { right: 14px; }
.modal__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.modal__thumbs button { padding: 0; border: 0; background: none; cursor: pointer; opacity: .45; border-radius: 2px; overflow: hidden; transition: opacity .3s; position: relative; }
.modal__thumbs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--clay); transform: scaleX(0); transition: transform .4s var(--ease); }
.modal__thumbs button.is-active { opacity: 1; }
.modal__thumbs button.is-active::after { transform: none; }
.modal__thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.modal__info { padding: clamp(28px, 3.5vw, 48px); }
.modal__info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; margin-bottom: .7em; padding-right: 50px; }
.modal__info > p:not(.eyebrow) { color: var(--ink-2); }
.specs { display: grid; grid-template-columns: auto 1fr; margin: 1.6rem 0 0; font-size: .9rem; }
.specs dt { color: var(--muted); padding: 11px 24px 11px 0; border-bottom: 1px solid var(--line); }
.specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; text-align: right; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .project { grid-column: span 6; }
  .hero__frame { width: clamp(180px, 30vw, 280px); opacity: .9; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .modal__box { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 100px 28px 40px; background: var(--ink); color: var(--paper);
    clip-path: circle(0 at calc(100% - 43px) 38px); transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 43px) 38px); visibility: visible; }
  .nav a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 300; letter-spacing: -.03em; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); }
  .nav a i { font-size: .8rem; color: var(--clay); }
  .nav.is-open a { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(2) { transition-delay: .06s; } .nav.is-open a:nth-child(3) { transition-delay: .12s; }
  .nav.is-open a:nth-child(4) { transition-delay: .18s; } .nav.is-open a:nth-child(5) { transition-delay: .24s; }
  .nav__cta { font-size: 1rem !important; margin-top: 24px; padding: 14px 26px !important; }
  .header.menu-open { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 440px; margin-right: 24px; }
  .service__body > div { padding-left: 0; grid-template-columns: 1fr; gap: 0; }
  .service__head { grid-template-columns: 44px 1fr 44px; }
  .service__icon { display: none; }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  .project { grid-column: span 12; }
  .hero__frame, .hero__coords { display: none; }
  .hero__bg { filter: saturate(.9) brightness(.55); }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .stats div + div { padding-left: 14px; }
  .process { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .hero__title .line--indent { padding-left: 8vw; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .range { flex-direction: column; align-items: stretch; gap: 4px; }
  .range output { text-align: left; }
  .about__stamp { width: 96px; height: 96px; right: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .project { opacity: 1; transform: none; }
  .hero__title .char { transform: none; }
  .project__img::after { display: none; }
}
