/* =====================================================================
   БАЛТДОМ — Балтийская архитектурная студия
   Дизайн-система: editorial / quiet-luxury / architectural
   Fraunces · Manrope · JetBrains Mono  ·  oat paper / ink / clay
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --paper:    #ECE5D8;   /* тёплый овсяный фон */
    --paper-2:  #F3EEE3;   /* светлая поверхность / карточки */
    --paper-3:  #E3DBCB;   /* чуть глубже */
    --ink:      #1A1813;   /* почти чёрные «чернила» */
    --ink-2:    #262219;   /* тёмная секция */
    --ink-soft: #3A352B;
    --clay:     #B4502B;   /* сигнальная терракота */
    --clay-2:   #9A4022;
    --stone:    #8A8073;   /* приглушённый вторичный текст */
    --stone-2:  #6E665A;
    --line:     #CDC3B1;   /* hairline на бумаге */
    --line-2:   #DAD2C2;
    --line-ink: rgba(236,229,216,0.16); /* hairline на тёмном */
    --paper-ink: rgba(236,229,216,0.62);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

    --shell: clamp(1.25rem, 5vw, 5.5rem);   /* боковые поля */
    --maxw: 1640px;

    --e-out: cubic-bezier(0.16, 1, 0.3, 1);
    --e-io:  cubic-bezier(0.65, 0, 0.35, 1);
    --t: 0.5s var(--e-out);

    --grain: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--sans);
    font-weight: 400;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1.0625rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* film grain over everything */
body::after {
    content: "";
    position: fixed; inset: 0;
    background-image: var(--grain);
    background-size: 160px;
    opacity: 0.05;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 9999;
}

::selection { background: var(--clay); color: var(--paper-2); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Type primitives ---------- */
.serif { font-family: var(--serif); font-optical-sizing: auto; }

.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}
.eyebrow::before {
    content: "";
    width: 1.8em; height: 1px;
    background: currentColor;
    opacity: 0.7;
}
.eyebrow.no-mark::before { display: none; }

.display {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.02em;
    font-optical-sizing: auto;
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.05; }

/* ---------- Shell / layout ---------- */
.shell {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--shell);
}

.section { position: relative; padding-block: clamp(5.5rem, 11vh, 10rem); }

/* section header: numbered index + title */
.s-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.s-index { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--stone); padding-top: 0.6em; white-space: nowrap; }
.s-title { font-family: var(--serif); font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 1.0; letter-spacing: -0.02em; max-width: 16ch; }
.s-title em { font-style: italic; color: var(--clay); }
.s-sub { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-top: 1.2rem; }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons / links ---------- */
.btn {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    padding: 1.05em 1.7em;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: color var(--t), background var(--t), border-color var(--t);
    white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--t); }
.btn-solid { background: var(--ink); color: var(--paper-2); }
.btn-solid:hover { background: var(--clay); }
.btn-solid:hover svg { transform: translateX(4px); }
.btn-clay { background: var(--clay); color: var(--paper-2); }
.btn-clay:hover { background: var(--ink); }
.btn-clay:hover svg { transform: translateX(4px); }
.btn-line { border: 1px solid currentColor; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn-ghost { border: 1px solid rgba(244,239,228,0.5); background: rgba(244,239,228,0.10); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); color: var(--paper-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--paper-2); }
.btn-lg { padding: 1.2em 2.1em; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* animated underline link */
.ulink { position: relative; font-weight: 600; display: inline-flex; align-items: center; gap: 0.55em; }
.ulink::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--e-out); }
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }
.ulink svg { width: 0.95em; height: 0.95em; transition: transform var(--t); }
.ulink:hover svg { transform: translateX(4px); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--e-out), transform 0.9s var(--e-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--e-out); transition-delay: var(--d, 0s); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }
.reveal-img img { transform: scale(1.12); transition: transform 1.4s var(--e-out); transition-delay: var(--d, 0s); }
.reveal-img.is-in img { transform: scale(1); }
.line-mask { display: block; overflow: hidden; }
.line-mask > * { display: block; transform: translateY(110%); transition: transform 1s var(--e-out); transition-delay: var(--d, 0s); }
.line-mask.is-in > * { transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal, .reveal-img, .line-mask > *, .reveal-img img { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* =====================================================================
   PRELOADER — curtain reveal
   ===================================================================== */
.preloader { position: fixed; inset: 0; z-index: 10000; background: var(--ink); display: flex; align-items: center; justify-content: center; transition: transform 1s var(--e-io); }
.preloader.done { transform: translateY(-100%); }
.pre-inner { text-align: center; color: var(--paper-2); }
.pre-word { font-family: var(--serif); font-size: clamp(2rem, 7vw, 4rem); letter-spacing: 0.01em; overflow: hidden; }
.pre-word span { display: inline-block; transform: translateY(110%); animation: preUp 0.9s var(--e-out) forwards; }
@keyframes preUp { to { transform: none; } }
.pre-bar { width: min(220px, 50vw); height: 1px; background: var(--line-ink); margin: 1.4rem auto 0; position: relative; overflow: hidden; }
.pre-bar::after { content: ""; position: absolute; inset: 0; background: var(--clay); transform: scaleX(0); transform-origin: left; animation: preBar 1.1s 0.2s var(--e-out) forwards; }
@keyframes preBar { to { transform: scaleX(1); } }
.pre-sub { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-ink); margin-top: 1rem; }
body.loading { overflow: hidden; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background 0.5s var(--e-out), border-color 0.5s; border-bottom: 1px solid transparent; }
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(1rem,2.2vw,1.6rem) var(--shell); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav.scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }

.brand { display: flex; align-items: baseline; gap: 0.6rem; color: var(--ink); }
.brand-mark { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.nav:not(.scrolled) .nav-over .brand { color: var(--paper-2); }
.nav:not(.scrolled) .nav-over .brand-sub { color: var(--paper-ink); }

.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav-link { font-size: 0.9rem; font-weight: 500; position: relative; color: var(--ink); transition: color var(--t); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--e-out); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover { color: var(--clay); }
.nav:not(.scrolled) .nav-over .nav-link { color: var(--paper-2); }
.nav-link-calc { color: var(--clay); font-weight: 600; }
.nav-link-calc::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); margin-right: 0.5em; vertical-align: middle; }
.nav:not(.scrolled) .nav-over .nav-link-calc { color: var(--clay); }
.nav-link-calc:hover { color: var(--clay-2); }

.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-phone { font-family: var(--mono); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.5em; color: var(--ink); transition: color var(--t); }
.nav-phone:hover { color: var(--clay); }
.nav:not(.scrolled) .nav-over .nav-phone { color: var(--paper-2); }
.nav-phone svg { width: 1em; height: 1em; }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 1100; }
.burger span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--e-out), opacity 0.3s; }
.nav:not(.scrolled) .nav-over .burger span { background: var(--paper-2); }
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.burger.active span { background: var(--paper-2) !important; }

/* mobile menu */
.m-menu { position: fixed; inset: 0; z-index: 1050; background: var(--ink); color: var(--paper-2); padding: 6rem var(--shell) 3rem; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; transform: translateY(-100%); transition: transform 0.7s var(--e-io); visibility: hidden; }
.m-menu.open { transform: none; visibility: visible; }
.m-link { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.4rem); padding: 0.25em 0; border-bottom: 1px solid var(--line-ink); display: flex; align-items: baseline; gap: 1rem; }
.m-link span { font-family: var(--mono); font-size: 0.8rem; color: var(--clay); }
.m-foot { margin-top: 2.5rem; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--paper-ink); display: flex; flex-direction: column; gap: 0.4rem; }
.m-foot a { color: var(--paper-2); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: var(--paper-2); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(95deg, rgba(20,18,13,0.78) 0%, rgba(20,18,13,0.5) 30%, rgba(20,18,13,0.16) 55%, rgba(20,18,13,0) 80%),
    linear-gradient(180deg, rgba(20,18,13,0.55) 0%, rgba(20,18,13,0.18) 26%, rgba(20,18,13,0.34) 60%, rgba(20,18,13,0.92) 100%); }
.hero-grain { position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 180px; opacity: 0.08; mix-blend-mode: overlay; pointer-events: none; }

.hero-top { position: absolute; top: clamp(5.5rem, 12vh, 8rem); left: 0; right: 0; }
.hero-coords { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--shell); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-ink); }
.hero-coords span { display: flex; align-items: center; gap: 0.6em; }

.hero-body { max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 0 var(--shell) clamp(2rem, 5vh, 4rem); }
.hero-eyebrow { color: var(--paper-2); margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.hero-eyebrow::before { background: var(--clay); opacity: 1; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 11.5vw, 11rem); line-height: 0.92; letter-spacing: -0.025em; max-width: 14ch; text-shadow: 0 2px 30px rgba(20,18,13,0.4), 0 1px 3px rgba(20,18,13,0.25); }
.hero h1 em { font-style: italic; }
.hero h1 .clay { color: var(--clay); }

.hero-foot { margin-top: clamp(2rem, 5vh, 3.5rem); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line-ink); padding-top: clamp(1.4rem, 3vh, 2.2rem); }
.hero-lede { max-width: 42ch; font-size: 1.06rem; color: var(--paper-2); line-height: 1.55; text-shadow: 0 1px 16px rgba(20,18,13,0.55); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-spec { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero-spec div { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-spec .n { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.hero-spec .l { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-ink); }

.hero-scroll { position: absolute; right: var(--shell); bottom: clamp(2rem,5vh,4rem); display: flex; align-items: center; gap: 0.7em; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-ink); writing-mode: vertical-rl; }
@media (max-width: 900px){ .hero-scroll { display: none; } }
.hero-scroll i { width: 1px; height: 46px; background: var(--paper-ink); position: relative; overflow: hidden; }
.hero-scroll i::after { content:""; position:absolute; inset:0; background: var(--clay); animation: scrollLine 2.2s var(--e-io) infinite; }
@keyframes scrollLine { 0%{ transform: translateY(-100%);} 50%{ transform: translateY(0);} 100%{ transform: translateY(100%);} }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { background: var(--ink); color: var(--paper-2); padding: clamp(1.1rem, 2.4vw, 1.6rem) 0; overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-style: italic; padding-inline: clamp(1.2rem, 3vw, 2.4rem); display: inline-flex; align-items: center; gap: clamp(1.2rem,3vw,2.4rem); white-space: nowrap; color: var(--paper-2); }
.marquee-track span::after { content: "✳"; font-style: normal; font-size: 0.6em; color: var(--clay); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   INTRO / ABOUT
   ===================================================================== */
.intro { padding-block: clamp(4rem, 8vh, 7rem); }
.intro-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro-statement { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.16; letter-spacing: -0.015em; }
.intro-statement .clay { color: var(--clay); font-style: italic; }
.intro-statement .small { font-family: var(--sans); font-size: 1.02rem; line-height: 1.6; color: var(--stone-2); display: block; margin-top: 1.4rem; max-width: 46ch; letter-spacing: 0; }
.intro-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.intro-figures > div { background: var(--paper); padding: 1.05rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.intro-figures .n { font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.05; color: var(--clay); white-space: nowrap; }
.intro-figures .l { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; color: var(--stone); }

.intro-visual { position: relative; }
.intro-visual .iv-main { aspect-ratio: 4/5; overflow: hidden; }
.intro-visual .iv-main img { width: 100%; height: 100%; object-fit: cover; }
.intro-visual .iv-sub { position: absolute; right: -8%; bottom: -10%; width: 52%; aspect-ratio: 1/1; overflow: hidden; border: 8px solid var(--paper); box-shadow: 0 30px 70px rgba(26,24,19,0.22); }
.intro-visual .iv-sub img { width: 100%; height: 100%; object-fit: cover; }
.intro-visual .iv-tag { position: absolute; left: 1rem; top: 1rem; z-index: 3; background: var(--clay); color: var(--paper-2); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.6em 1em; }

/* =====================================================================
   SERVICES — editorial index with hover image
   ===================================================================== */
.services { background: var(--ink-2); color: var(--paper-2); }
.services .s-index { color: var(--paper-ink); }
.services .s-title { color: var(--paper-2); }
.services .s-sub { color: var(--paper-ink); }
.svc-list { border-top: 1px solid var(--line-ink); position: relative; }
.svc-row { display: grid; grid-template-columns: 5rem 1fr auto; gap: clamp(1rem,3vw,3rem); align-items: center; padding: clamp(1.6rem, 3.2vw, 2.6rem) 0; border-bottom: 1px solid var(--line-ink); position: relative; transition: padding-left 0.5s var(--e-out); }
.svc-row > * { position: relative; z-index: 2; }
.svc-num { font-family: var(--mono); font-size: 0.8rem; color: var(--paper-ink); transition: color var(--t); }
.svc-main h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 400; line-height: 1.04; transition: transform 0.5s var(--e-out); }
.svc-main p { font-size: 0.96rem; color: var(--paper-ink); max-width: 52ch; margin-top: 0.5rem; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.5s, max-height 0.5s var(--e-out), margin-top 0.5s; }
.svc-price { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--paper-2); white-space: nowrap; }
.svc-price b { color: var(--clay); font-weight: 500; }
.svc-row:hover { padding-left: clamp(0.8rem, 2vw, 2rem); }
.svc-row:hover .svc-num { color: var(--clay); }
.svc-row:hover .svc-main h3 { transform: translateX(0.4rem); }
.svc-row:hover .svc-main p { opacity: 1; max-height: 4rem; margin-top: 0.7rem; }
/* floating hover image (desktop) */
.svc-foot { margin-top: clamp(2.2rem,5vw,3.6rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.svc-foot p { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-ink); }

/* =====================================================================
   PROJECTS — editorial showcase
   ===================================================================== */
.work-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.work-item:first-of-type { border-top: 1px solid var(--line); }
.work-item.flip .work-media { order: 2; }
.work-media { aspect-ratio: 16/12; overflow: hidden; position: relative; }
.work-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.work-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--paper-2); color: var(--ink); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.55em 0.9em; }
.work-tag.built { background: var(--clay); color: var(--paper-2); }
.work-no { font-family: var(--mono); font-size: 0.78rem; color: var(--clay); letter-spacing: 0.08em; }
.work-body h3 { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3.6rem); font-weight: 400; line-height: 1.02; margin: 0.8rem 0 1.1rem; letter-spacing: -0.015em; }
.work-body p { color: var(--stone-2); max-width: 46ch; margin-bottom: 1.8rem; }
.work-meta { display: flex; gap: 2rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.work-meta div { display: flex; flex-direction: column; gap: 0.15rem; }
.work-meta .v { font-family: var(--serif); font-size: 1.5rem; }
.work-meta .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.work-more { display: flex; justify-content: center; margin-top: clamp(3rem,6vw,5rem); }

/* =====================================================================
   PROCESS — sticky editorial
   ===================================================================== */
.process { background: var(--paper-3); }
.proc-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.proc-sticky { position: sticky; top: 18vh; }
.proc-sticky .eyebrow { margin-bottom: 1.4rem; }
.proc-sticky h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.proc-sticky p { color: var(--stone-2); margin-top: 1.4rem; max-width: 34ch; }
.proc-list { display: flex; flex-direction: column; }
.proc-step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem,3vw,2.4rem); padding: clamp(1.6rem,3vw,2.4rem) 0; border-top: 1px solid var(--line); }
.proc-step:last-child { border-bottom: 1px solid var(--line); }
.proc-step .pn { font-family: var(--mono); font-size: 0.82rem; color: var(--clay); padding-top: 0.5em; }
.proc-step h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; }
.proc-step p { color: var(--stone-2); margin-top: 0.5rem; font-size: 0.98rem; }

/* =====================================================================
   GALLERY — asymmetric
   ===================================================================== */
.gal-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.6rem, 1.4vw, 1.2rem); grid-auto-flow: dense; }
.gal-item { position: relative; overflow: hidden; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out); }
.gal-item:hover img { transform: scale(1.06); }
.gal-cap { position: absolute; left: 0; bottom: 0; padding: 0.8em 1em; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-2); background: linear-gradient(0deg, rgba(26,24,19,0.7), transparent); width: 100%; }
.g-a { grid-column: span 5; aspect-ratio: 4/5; }
.g-b { grid-column: span 7; aspect-ratio: 16/10; }
.g-c { grid-column: span 7; aspect-ratio: 16/10; }
.g-d { grid-column: span 5; aspect-ratio: 4/5; }

/* =====================================================================
   STATS / QUOTE band
   ===================================================================== */
.band { background: var(--ink); color: var(--paper-2); }
.quote-wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem,5vw,4rem); }
.quote-wrap .q-mark { font-family: var(--serif); font-size: clamp(4rem,10vw,9rem); line-height: 0.7; color: var(--clay); }
.quote-wrap blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.22; font-weight: 400; letter-spacing: -0.01em; }
.quote-wrap cite { display: block; margin-top: 2rem; font-style: normal; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-ink); }

/* =====================================================================
   REVIEWS
   ===================================================================== */
.reviews { background: var(--paper-3); }
.rev-track { display: flex; gap: clamp(1rem,2vw,1.6rem); transition: transform 0.7s var(--e-out); }
.rev-card { flex: 0 0 calc((100% - 1.6rem) / 2); background: var(--paper-2); padding: clamp(1.8rem,3vw,2.8rem); border: 1px solid var(--line); display: flex; flex-direction: column; }
.rev-stars { display: flex; gap: 3px; color: var(--clay); margin-bottom: 1.2rem; }
.rev-stars svg { width: 16px; height: 16px; }
.rev-card p { font-family: var(--serif); font-size: clamp(1.1rem,1.7vw,1.35rem); line-height: 1.45; flex: 1; }
.rev-by { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.rev-av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.8rem; }
.rev-by strong { font-weight: 600; font-size: 0.95rem; }
.rev-by span { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); margin-top: 0.2rem; }
.rev-ctrl { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; }
.rev-btn { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background var(--t), color var(--t), border-color var(--t); }
.rev-btn:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.rev-btn svg { width: 18px; height: 18px; }
.rev-dots { display: flex; gap: 7px; margin-left: auto; }
.rev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background var(--t), transform var(--t); }
.rev-dot.active { background: var(--clay); transform: scale(1.3); }

/* =====================================================================
   CTA
   ===================================================================== */
.cta { background: var(--clay); color: var(--paper-2); position: relative; overflow: hidden; }
.cta-grain { position:absolute; inset:0; background-image: var(--grain); background-size:180px; opacity:0.1; mix-blend-mode: overlay; pointer-events:none; }
.cta-inner { position: relative; text-align: center; }
.cta h2 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 400; line-height: 1.0; letter-spacing: -0.02em; max-width: 18ch; margin-inline: auto; }
.cta p { max-width: 48ch; margin: 1.6rem auto 2.6rem; color: var(--paper-2); font-size: 1.1rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-info .eyebrow { margin-bottom: 1.4rem; }
.contact-info h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.0; letter-spacing: -0.02em; }
.contact-info > p { color: var(--stone-2); margin-top: 1.4rem; max-width: 38ch; }
.contact-items { margin-top: 2.6rem; display: flex; flex-direction: column; }
.c-item { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: start; }
.c-item:last-child { border-bottom: 1px solid var(--line); }
.c-ic { width: 22px; height: 22px; color: var(--clay); margin-top: 0.2rem; }
.c-ic svg { width: 100%; height: 100%; }
.c-item .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.c-item .v, .c-item a { font-size: 1.05rem; font-weight: 500; display: block; margin-top: 0.25rem; }
.c-item a:hover { color: var(--clay); }

.form-card { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(1.8rem, 3.5vw, 3rem); }
.form-card h3 { font-family: var(--serif); font-size: clamp(1.5rem,2.4vw,2rem); font-weight: 400; margin-bottom: 1.8rem; }
.fg { position: relative; margin-bottom: 1rem; }
.fg input, .fg select, .fg textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 1.05em 1.1em; border-radius: 2px; transition: border-color var(--t), background var(--t); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg input::placeholder, .fg textarea::placeholder { color: var(--stone); }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--clay); background: var(--paper-2); }
.fg select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8073' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1em center; }
.form-priv { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--stone); margin-top: 1rem; text-align: center; }
.form-priv a { color: var(--clay); }
.form-feedback { margin-top: 1rem; padding: 0.9em 1.1em; font-size: 0.9rem; border-radius: 2px; opacity: 0; transition: opacity var(--t); }
.form-feedback[data-type="success"] { background: #e8efe6; color: #2f5c34; }
.form-feedback[data-type="error"] { background: #f6e4df; color: #9a3a26; }

/* map */
.map { position: relative; height: clamp(340px, 46vh, 520px); background: var(--paper-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.02); }
.map-card { position: absolute; left: var(--shell); bottom: 2rem; background: var(--ink); color: var(--paper-2); padding: 1.3rem 1.6rem; display: flex; flex-direction: column; gap: 0.3rem; max-width: 320px; }
.map-card .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.map-card strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.map-card span { font-size: 0.9rem; color: var(--paper-ink); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: var(--paper-2); padding-top: clamp(4rem,8vw,7rem); }
.footer-word { font-family: var(--serif); font-size: clamp(3rem, 13vw, 11rem); line-height: 0.85; letter-spacing: -0.02em; color: var(--paper-2); white-space: nowrap; }
.footer-word em { font-style: italic; color: var(--clay); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-block: clamp(3rem,5vw,4.5rem); border-top: 1px solid var(--line-ink); margin-top: clamp(3rem,6vw,5rem); }
.footer h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-ink); margin-bottom: 1.4rem; }
.footer-col p, .footer-col a { color: var(--paper-2); font-size: 0.96rem; }
.footer-col a { display: block; padding: 0.35rem 0; color: var(--paper-ink); transition: color var(--t); }
.footer-col a:hover { color: var(--clay); }
.footer-desc { color: var(--paper-ink) !important; max-width: 32ch; line-height: 1.6; }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.footer-socials a { width: 42px; height: 42px; border: 1px solid var(--line-ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; transition: background var(--t), color var(--t), border-color var(--t); }
.footer-socials a:hover { background: var(--clay); color: var(--paper-2); border-color: var(--clay); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.8rem; border-top: 1px solid var(--line-ink); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--paper-ink); }

/* =====================================================================
   FLOATING widgets
   ===================================================================== */
.to-top { position: fixed; right: clamp(1rem,2.5vw,2rem); bottom: clamp(1rem,2.5vw,2rem); width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--paper-2); display: flex; align-items: center; justify-content: center; z-index: 800; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity var(--t), transform var(--t), background var(--t); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--clay); }
.to-top svg { width: 20px; height: 20px; }

.side-popup { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 850; }
.side-toggle { background: var(--clay); color: var(--paper-2); writing-mode: vertical-rl; padding: 1.1em 0.7em; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 6px 0 0 6px; display: flex; align-items: center; gap: 0.7em; transition: background var(--t); }
.side-toggle:hover { background: var(--ink); }
.side-form { position: fixed; right: -420px; top: 50%; transform: translateY(-50%); width: min(380px, 92vw); background: var(--paper-2); border: 1px solid var(--line); padding: 2rem; box-shadow: -30px 0 80px rgba(26,24,19,0.2); transition: right 0.6s var(--e-out); z-index: 860; }
.side-popup.open .side-form { right: clamp(0.5rem, 2vw, 1.5rem); }
.side-popup.open .side-toggle { opacity: 0; pointer-events: none; }
.side-form h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.side-form > p { color: var(--stone-2); font-size: 0.9rem; margin: 0.4rem 0 1.4rem; }
.side-close { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.side-close:hover { background: var(--ink); color: var(--paper-2); }
.side-close svg { width: 14px; height: 14px; }

.promo { position: fixed; inset: 0; z-index: 1200; background: rgba(20,18,13,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.promo.open { opacity: 1; pointer-events: auto; }
.promo-box { background: var(--paper-2); max-width: 460px; width: 100%; overflow: hidden; transform: translateY(30px) scale(0.97); transition: transform 0.6s var(--e-out); }
.promo.open .promo-box { transform: none; }
.promo-head { background: var(--ink); color: var(--paper-2); padding: 2.4rem 2rem 2rem; position: relative; }
.promo-head .badge { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.promo-head h2 { font-family: var(--serif); font-size: clamp(1.8rem,4vw,2.4rem); font-weight: 400; margin: 0.6rem 0; }
.promo-head h2 em { font-style: italic; color: var(--clay); }
.promo-head p { color: var(--paper-ink); font-size: 0.95rem; }
.promo-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-ink); color: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.promo-close:hover { background: var(--clay); border-color: var(--clay); }
.promo-close svg { width: 16px; height: 16px; }
.promo-body { padding: 2rem; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   INNER PAGES — page header, services detail, calculator
   ===================================================================== */
.page-head { padding: clamp(8rem, 16vh, 12rem) 0 clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--line); }
.crumbs { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); display: flex; gap: 0.6em; margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--clay); }
.page-title { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 400; line-height: 0.96; letter-spacing: -0.025em; }
.page-desc { color: var(--stone-2); max-width: 56ch; margin-top: 1.6rem; font-size: 1.08rem; }
.page-desc a { color: var(--clay); }

.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,5vw,5rem); align-items: center; padding-block: clamp(3rem,6vw,5.5rem); border-bottom: 1px solid var(--line); }
.svc-detail.flip .svc-detail-media { order: -1; }
.svc-detail-media { aspect-ratio: 4/3; overflow: hidden; }
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail-tag { display: inline-block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--clay); border: 1px solid var(--clay); padding: 0.45em 0.9em; border-radius: 100px; margin-bottom: 1.2rem; }
.svc-detail h2 { font-family: var(--serif); font-size: clamp(1.9rem,4vw,3rem); font-weight: 400; letter-spacing: -0.015em; }
.svc-detail > div > p { color: var(--stone-2); margin: 1rem 0 1.4rem; max-width: 48ch; }
.svc-detail-list { display: flex; flex-direction: column; margin-bottom: 1.8rem; }
.svc-detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); font-size: 0.96rem; }
.svc-detail-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-detail-list b { font-weight: 600; }
.svc-detail-list .pr { font-family: var(--mono); font-size: 0.84rem; color: var(--clay); white-space: nowrap; }
.svc-cta-band { text-align: center; padding-block: clamp(3rem,6vw,5rem); }
.svc-cta-band h3 { font-family: var(--serif); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 400; max-width: 20ch; margin: 0 auto 0.8rem; }
.svc-cta-band p { color: var(--stone-2); max-width: 46ch; margin: 0 auto 1.8rem; }

/* calculator */
.calc { background: var(--ink-2); color: var(--paper-2); }
.calc .s-title { color: var(--paper-2); }
.calc .s-index, .calc .s-sub { color: var(--paper-ink); }
.calc-wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem,3vw,2.6rem); }
.calc-form { display: flex; flex-direction: column; gap: clamp(1.6rem,3vw,2.4rem); }
.calc-step { border-top: 1px solid var(--line-ink); padding-top: 1.4rem; }
.calc-step-top { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.2rem; }
.calc-step-n { font-family: var(--mono); font-size: 0.74rem; color: var(--clay); }
.calc-step-t { font-family: var(--serif); font-size: clamp(1.2rem,2vw,1.6rem); font-weight: 400; }
.calc-step-t b { color: var(--clay); }
.calc-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.calc-opts.two { grid-template-columns: repeat(2, 1fr); }
.calc-opt { cursor: pointer; }
.calc-opt input { position: absolute; opacity: 0; }
.calc-opt-c { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; padding: 1.1rem 0.6rem; border: 1px solid var(--line-ink); border-radius: 3px; transition: border-color var(--t), background var(--t); }
.calc-opt-c svg { width: 26px; height: 26px; opacity: 0.85; }
.calc-opt-c strong { font-weight: 600; font-size: 0.92rem; }
.calc-opt-c .sub { font-family: var(--mono); font-size: 0.66rem; color: var(--paper-ink); }
.calc-opt input:checked + .calc-opt-c { border-color: var(--clay); background: rgba(180,80,43,0.14); }
.calc-range { width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--line-ink); margin: 1.4rem 0 0.7rem; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--clay); cursor: pointer; border: 3px solid var(--ink-2); }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--clay); cursor: pointer; border: 3px solid var(--ink-2); }
.calc-range-l { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.66rem; color: var(--paper-ink); }
.calc-extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.calc-extra { cursor: pointer; display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; border: 1px solid var(--line-ink); border-radius: 3px; font-size: 0.9rem; transition: border-color var(--t), background var(--t); }
.calc-extra input { position: absolute; opacity: 0; }
.calc-extra .box { width: 18px; height: 18px; border: 1px solid var(--paper-ink); border-radius: 2px; flex-shrink: 0; position: relative; transition: background var(--t), border-color var(--t); }
.calc-extra input:checked + .box { background: var(--clay); border-color: var(--clay); }
.calc-extra input:checked + .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--paper-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.calc-extra:has(input:checked) { border-color: var(--clay); }
.calc-res { background: var(--ink); border: 1px solid var(--line-ink); padding: clamp(1.6rem,2.5vw,2.2rem); position: sticky; top: 16vh; align-self: start; }
.calc-res .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-ink); }
.calc-price { font-family: var(--serif); font-size: clamp(2rem,3.4vw,2.8rem); color: var(--clay); margin: 0.5rem 0 0.3rem; line-height: 1; }
.calc-details { font-family: var(--mono); font-size: 0.74rem; color: var(--paper-ink); }
.calc-term { display: flex; align-items: center; gap: 0.6em; margin: 1.4rem 0; padding: 0.9rem 0; border-block: 1px solid var(--line-ink); font-size: 0.9rem; }
.calc-term svg { width: 17px; height: 17px; color: var(--clay); }
.calc-bonus { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.2rem; font-size: 0.84rem; color: var(--paper-ink); }
.calc-bonus svg { width: 18px; height: 18px; color: var(--clay); flex-shrink: 0; margin-top: 0.1rem; }
.calc-bonus b { color: var(--paper-2); }
.calc-note { font-family: var(--mono); font-size: 0.64rem; line-height: 1.5; color: var(--paper-ink); margin-top: 1.2rem; }

/* projects filter */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2.5rem,5vw,4rem); }
.filter-btn { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.7em 1.2em; border: 1px solid var(--line); border-radius: 100px; color: var(--stone-2); transition: all var(--t); }
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2.2vw,1.8rem); }
.pf-card { display: block; transition: opacity 0.4s, transform 0.4s; }
.pf-media { aspect-ratio: 4/3; overflow: hidden; position: relative; margin-bottom: 1.1rem; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--e-out); }
.pf-card:hover .pf-media img { transform: scale(1.05); }
.pf-media.is-plan { background: #fff; }
.pf-media.is-plan img { object-fit: contain; padding: 5%; }
.pf-card:hover .pf-media.is-plan img { transform: none; }
.pf-tag { position: absolute; top: 0.9rem; left: 0.9rem; background: var(--paper-2); color: var(--ink); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.45em 0.8em; }
.pf-tag.built { background: var(--clay); color: var(--paper-2); }
.pf-card h3 { font-family: var(--serif); font-size: clamp(1.3rem,2vw,1.7rem); font-weight: 400; }
.pf-card p { color: var(--stone-2); font-size: 0.92rem; margin: 0.5rem 0 0.9rem; }
.pf-meta { display: flex; gap: 1.2rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.pf-dl { display: inline-flex; align-items: center; gap: 0.55em; margin-top: 1.1rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); border: 1px solid var(--clay); padding: 0.7em 1.15em; border-radius: 100px; transition: background var(--t), color var(--t); }
.pf-dl:hover { background: var(--clay); color: var(--paper-2); }
.pf-dl svg { width: 1.05em; height: 1.05em; }

/* error page */
.err { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8rem var(--shell) 4rem; }
.err-code { font-family: var(--serif); font-size: clamp(7rem, 26vw, 20rem); line-height: 0.8; letter-spacing: -0.04em; }
.err-code em { font-style: italic; color: var(--clay); }
.err h1 { font-family: var(--serif); font-size: clamp(1.6rem,4vw,2.6rem); font-weight: 400; margin: 1rem 0 0.8rem; }
.err p { color: var(--stone-2); max-width: 44ch; margin: 0 auto 2rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
    .footer-col-brand { grid-column: 1 / -1; }
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .nav-links { display: none; }
    .nav-cta .nav-phone { display: none; }
    .burger { display: flex; }
    .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
    .intro-visual { max-width: 520px; }
    .intro-visual .iv-sub { width: 44%; }
    .work-item, .work-item.flip { grid-template-columns: 1fr; gap: 1.6rem; }
    .work-item.flip .work-media { order: 0; }
    .proc-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .proc-sticky { position: static; }
    .calc-wrap { grid-template-columns: 1fr; }
    .calc-res { position: static; }
    .contact-grid, .svc-detail, .svc-detail.flip { grid-template-columns: 1fr; }
    .svc-detail.flip .svc-detail-media { order: 0; }
    .quote-wrap { grid-template-columns: 1fr; gap: 0.5rem; }
    .rev-card { flex: 0 0 100%; }
}
@media (max-width: 720px) {
    .s-head { grid-template-columns: 1fr; gap: 0.8rem; }
    .gal-grid { grid-template-columns: 1fr 1fr; }
    .g-a, .g-b, .g-c, .g-d { grid-column: span 1; aspect-ratio: 1/1; }
    .pf-grid { grid-template-columns: 1fr; }
    .svc-row { grid-template-columns: 2.5rem 1fr; }
    .svc-price { grid-column: 2; padding-top: 0.4rem; }
    .calc-opts { grid-template-columns: 1fr; }
    .calc-extras { grid-template-columns: 1fr; }
    .intro-figures { grid-template-columns: 1fr 1fr; }
    .hero-foot { flex-direction: column; align-items: flex-start; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-col-brand { grid-column: auto; }
}
@media (hover: none) {
    .svc-hoverimg { display: none; }
    .svc-main p { opacity: 1; max-height: none; margin-top: 0.6rem; }
}
