/* zibetti.co — Zibetti Photo + Film */
:root {
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --sand: #e4d8c8;
  --ink: #1d1a17;
  --ink-2: #3a342e;
  --muted: #6f655b;
  --accent: #b4623a;
  --accent-2: #d08a5c;
  --sage: #74806a;
  --night: #15120f;
  --line: rgba(29, 26, 23, .12);
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(29, 26, 23, .45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
em, .italic { font-style: italic; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7em 1em; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.7em; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: none; }
.btn:hover { color: #fff; border-color: var(--accent); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--ink);
  transition: background .4s, transform .45s var(--ease), color .4s, box-shadow .4s;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.site-header.on-hero { color: #fff; }
.site-header.scrolled { background: rgba(246, 241, 234, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.hidden { transform: translateY(-100%); }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo b { font: 500 1.75rem/1 var(--serif); letter-spacing: .02em; }
.logo small { font: 600 .58rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; margin-top: 5px; opacity: .8; }
.main-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font: 600 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-cta { border: 1px solid currentColor; border-radius: 999px; padding: 11px 20px; }
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-toggle {
  display: none; position: relative; z-index: 120; width: 48px; height: 48px;
  border: 0; background: none; color: inherit; cursor: pointer; padding: 0;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s, top .45s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23.5px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 23.5px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; margin-right: -8px; }
  .main-nav {
    position: fixed; inset: 0; z-index: 110; background: var(--night); color: var(--paper);
    display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px;
    clip-path: circle(0 at calc(100% - 40px) 39px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
    overflow-y: auto;
  }
  .main-nav.open { clip-path: circle(150% at calc(100% - 40px) 39px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .main-nav li { overflow: hidden; }
  .main-nav a { display: inline-block; font: 400 clamp(2.1rem, 9vw, 3rem)/1.15 var(--serif); letter-spacing: 0; text-transform: none; transform: translateY(110%); transition: transform .6s var(--ease); }
  .main-nav.open a { transform: none; }
  .main-nav.open li:nth-child(2) a { transition-delay: .05s; }
  .main-nav.open li:nth-child(3) a { transition-delay: .1s; }
  .main-nav.open li:nth-child(4) a { transition-delay: .15s; }
  .main-nav.open li:nth-child(5) a { transition-delay: .2s; }
  .main-nav.open li:nth-child(6) a { transition-delay: .25s; }
  .main-nav.open li:nth-child(7) a { transition-delay: .3s; }
  .main-nav.open li:nth-child(8) a { transition-delay: .35s; }
  .main-nav .nav-cta { margin-top: 18px; font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 16px 26px; }
  .main-nav .nav-foot { margin-top: 40px; font-size: .9rem; opacity: .7; }
  .main-nav .nav-foot a { font: inherit; transform: none; text-decoration: underline; }
  body.nav-open .site-header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
}
@media (min-width: 1021px) { .main-nav .nav-foot { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--night); }
.hero-slides, .hero-slides figure { position: absolute; inset: 0; margin: 0; }
.hero-slides figure { opacity: 0; transition: opacity 1.6s ease; }
.hero-slides figure.active { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slides figure.active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1) translate(-1%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 65%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 35%, rgba(0,0,0,.6) 100%); }
.grain::before {
  content: ""; position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.hero-content { position: relative; z-index: 3; padding: 160px 0 90px; }
.hero h1 { font-weight: 400; max-width: 13ch; margin-bottom: .35em; }
.hero h1 em { color: #f2c9a8; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 46ch; }
.hero .eyebrow { color: #f2c9a8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font: 600 .68rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { width: 1px; height: 54px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.slide-dots { display: flex; gap: 8px; }
.slide-dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; position: relative; overflow: hidden; }
.slide-dots button.active::after { content: ""; position: absolute; inset: 0; background: #fff; animation: fill 6s linear forwards; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.split-line:nth-child(2) > span { animation-delay: .12s; }
.split-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) .45s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* page hero */
.page-hero { position: relative; color: #fff; background: var(--night); overflow: hidden; min-height: 62vh; display: grid; align-items: end; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; opacity: .62; will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6)); }
.page-hero .wrap { position: relative; z-index: 3; padding: 150px 0 64px; }
.page-hero h1 { max-width: 18ch; font-weight: 400; }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 56ch; margin: 0; }
.page-hero .eyebrow { color: #f2c9a8; }
.page-hero--short { min-height: 48vh; }
.crumbs { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.4rem; opacity: .85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .5em; opacity: .6; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--dark { background: var(--night); color: var(--paper); }
.section--dark .muted, .section--dark .lead { color: rgba(246,241,234,.72); }
.section--sand { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 16ch; margin: 0; }
.section-head p { max-width: 44ch; margin: 0; }

.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stack { position: relative; aspect-ratio: 4/5; }
.stack img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.stack img:nth-child(1) { inset: 0 22% 14% 0; width: 78%; height: 86%; }
.stack img:nth-child(2) { right: 0; bottom: 0; width: 52%; height: 50%; border: 8px solid var(--paper); }
.stamp {
  position: absolute; left: 62%; top: 4%; width: 120px; height: 120px; z-index: 2;
  animation: spin 18s linear infinite; color: var(--accent);
}
.stamp text { font: 600 10.5px var(--sans); letter-spacing: 3.4px; text-transform: uppercase; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.signature { font: italic 400 1.8rem/1.2 var(--serif); color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.section--dark .stats { border-color: rgba(255,255,255,.14); }
.stat b { display: block; font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); }
.stat span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section--dark .stat span { color: rgba(246,241,234,.6); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: italic 400 clamp(1.8rem, 3.6vw, 3rem)/1 var(--serif); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); color: #fff; min-height: 480px; display: flex; align-items: flex-end; text-decoration: none; isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78)); }
.card:hover img { transform: scale(1.07); }
.card .card-body { padding: 30px; }
.card .num { font: 600 .72rem/1 var(--sans); letter-spacing: .24em; color: #f2c9a8; }
.card h3 { margin: .45em 0 .35em; }
.card p { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.card:hover p, .card:focus-visible p { max-height: 160px; opacity: 1; }
@media (hover: none) { .card p { max-height: none; opacity: 1; } }

/* film strip (horizontal gallery) */
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 24px; scrollbar-width: thin; cursor: grab; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; height: clamp(320px, 52vh, 560px); border-radius: 12px; overflow: hidden; position: relative; }
.strip img { height: 100%; width: auto; object-fit: cover; pointer-events: none; user-select: none; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.strip figure:hover img { transform: scale(1.04); filter: saturate(1.05); }
.strip figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font: italic 1.1rem var(--serif); text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 34px 28px 10px 0; border-top: 1px solid rgba(255,255,255,.18); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: italic 400 3rem/1 var(--serif); color: var(--accent-2); display: block; margin-bottom: 18px; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent-2); transition: width 1.4s var(--ease); }
.step.in::after { width: 100%; }
.step h3 { font-size: 1.5rem; }

/* parallax quote */
.quote-band { position: relative; min-height: 80vh; display: grid; place-items: center; color: #fff; overflow: hidden; text-align: center; background: var(--night); }
.quote-band > img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .55; will-change: transform; }
.quote-band blockquote { position: relative; z-index: 2; margin: 0; padding: 0 16px; max-width: 900px; font: italic 400 clamp(2rem, 5vw, 3.9rem)/1.15 var(--serif); }
.quote-band cite { display: block; margin-top: 1.4rem; font: 600 .74rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; font-style: normal; color: #f2c9a8; }

/* journal cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.post-card { text-decoration: none; display: block; }
.post-card .thumb { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; margin-bottom: 18px; background: var(--sand); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover img { transform: scale(1.06); }
.post-card .meta { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.post-card h3 { margin: .45em 0 .4em; transition: color .3s; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.posts--feature .post-card:first-child { grid-column: span 2; }
.posts--feature .post-card:first-child .thumb { aspect-ratio: 16/9.6; }

/* tools teaser */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-tile { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); text-decoration: none; transition: background .4s, transform .5s var(--ease), border-color .4s; }
.tool-tile:hover { background: rgba(255,255,255,.05); transform: translateY(-6px); border-color: var(--accent-2); }
.tool-tile .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.tool-tile .ico svg { width: 24px; height: 24px; }
.tool-tile h3 { margin: 0; }
.tool-tile p { margin: 0; color: rgba(246,241,234,.7); font-size: .95rem; }
.section:not(.section--dark) .tool-tile { border-color: var(--line); }
.section:not(.section--dark) .tool-tile p { color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px); background: var(--night); isolation: isolate; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .5; transition: transform 2s var(--ease); }
.cta:hover > img { transform: scale(1.04); }
.cta h2 { max-width: 15ch; }
.cta p { max-width: 50ch; color: rgba(255,255,255,.88); }

/* ---------- prose / article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { font-size: 1.07rem; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: 14px; width: 100%; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .6em; }
.prose blockquote { margin: 2em 0; padding: .2em 0 .2em 1.3em; border-left: 2px solid var(--accent); font: italic 1.55rem/1.35 var(--serif); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0 1.8em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--paper-2); border-radius: 14px; padding: 22px 24px; margin: 1.8em 0; }
.callout strong:first-child { display: block; font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .7em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 1.4rem; color: rgba(255,255,255,.85); }
.toc { position: sticky; top: 100px; }
.toc-box { border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 22px; }
.toc-box h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.toc-box ol { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.toc-box li { margin-bottom: .5em; }
.toc-box a { text-decoration: none; }
.toc-box a:hover, .toc-box a.active { color: var(--accent); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 130; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; background: var(--paper); transition: transform .5s var(--ease), box-shadow .5s; }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price.featured { background: var(--night); color: var(--paper); border-color: var(--night); }
.price .tag { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.price.featured .tag { color: var(--accent-2); }
.price h3 { margin: .7em 0 .2em; }
.price .from { font: 400 2.9rem/1 var(--serif); margin: .3em 0 .5em; }
.price .from small { font: 500 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-right: 6px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: .95rem; }
.price li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; }
.price.featured li { border-color: rgba(255,255,255,.12); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.price .btn { margin-top: auto; align-self: flex-start; }
.price.featured .btn { --bg: var(--paper); --fg: var(--ink); }

/* ---------- tools ---------- */
.tool { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 60px -45px rgba(29,26,23,.5); }
.tool-cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.tool-cols--est { grid-template-columns: minmax(0, 1fr) 360px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label, .field .label { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field small { color: var(--muted); font-size: .82rem; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180,98,58,.14); }
textarea { min-height: 150px; resize: vertical; }
input[type="range"] { padding: 0; accent-color: var(--accent); background: none; border: 0; height: 28px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-bottom: 10px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; transition: all .25s; background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.sun-arc { width: 100%; height: auto; display: block; margin: 6px 0 22px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.result { border-radius: 16px; padding: 18px 20px; background: var(--paper); }
.result .k { font: 600 .7rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.result .v { font: 400 1.9rem/1.15 var(--serif); margin-top: 6px; }
.result.golden { background: linear-gradient(135deg, #f7d9b8, #f0b98a); }
.result.blue { background: linear-gradient(135deg, #c9d6ea, #9fb3d4); }
.estimate { position: sticky; top: 100px; background: var(--night); color: var(--paper); border-radius: 20px; padding: 30px; }
.estimate .total { font: 400 clamp(2.8rem, 6vw, 4rem)/1 var(--serif); margin: 10px 0 16px; }
.estimate ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: .92rem; }
.estimate li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.estimate small { color: rgba(246,241,234,.6); display: block; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 12px 0; position: relative; animation: fadeUp .6s var(--ease) both; }
.timeline li::before { content: ""; position: absolute; left: 88px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff; }
.timeline li.gold::before { background: #e3a258; box-shadow: 0 0 0 4px #fff, 0 0 18px #e3a258; }
.timeline time { font: 600 .9rem/1.6 var(--sans); text-align: right; font-variant-numeric: tabular-nums; }
.timeline b { display: block; font: 500 1.25rem/1.3 var(--serif); }
.timeline span { font-size: .9rem; color: var(--muted); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.loc-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.loc { border-radius: 16px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; animation: fadeUp .5s var(--ease) both; }
.loc-top { padding: 20px 22px 6px; display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.loc h3 { margin: 0; font-size: 1.5rem; }
.loc .score { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; background: var(--ink); color: var(--paper); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.loc p { padding: 0 22px; font-size: .93rem; color: var(--ink-2); margin: .4em 0 .8em; }
.loc .tags { padding: 0 22px 20px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.loc .tags span { font-size: .72rem; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; background: var(--sand); }
.empty { padding: 30px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink); transition: all .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry figure { break-inside: avoid; margin: 0 0 18px; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; transition: opacity .4s, transform .4s; }
.masonry figure.hide { display: none; }
.masonry img { width: 100%; transition: transform 1.1s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); font: italic 1.1rem var(--serif); opacity: 0; transform: translateY(10px); transition: all .4s var(--ease); }
.masonry figure:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .masonry figcaption { opacity: 1; transform: none; } }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(12,10,8,.94); display: none; place-items: center; padding: 60px 16px; }
.lightbox.open { display: grid; animation: fadeUp .35s var(--ease); }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; font: italic 1.2rem var(--serif); margin-top: 12px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; width: 54px; height: 54px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.3 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 300 1.8rem/1 var(--sans); color: var(--accent); transition: transform .4s var(--ease); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 26px; max-width: 70ch; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; background: #e6eddf; color: #34432a; }
.notice.err { background: #f6dfd6; color: #7a2f17; }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; }
.info-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.info-list b { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* video */
.video-feature { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16/8; background: var(--night); color: #fff; display: grid; place-items: center; text-align: center; }
.video-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.video-feature .play { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; }
.video-feature .play::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-feature .play svg { width: 28px; margin-left: 5px; }
.video-feature .label { position: absolute; bottom: 26px; left: 0; right: 0; font: italic 1.3rem var(--serif); }
.reel-bars { position: absolute; inset: 0 0 auto; height: 9%; background: #000; }
.reel-bars.b { inset: auto 0 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(246,241,234,.78); padding: 90px 0 36px; }
.footer-big { font: 400 clamp(2.6rem, 9vw, 7.5rem)/.95 var(--serif); color: var(--paper); margin: 0 0 60px; }
.footer-big a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.footer-big a:hover { background-size: 100% 1px; color: var(--accent-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--paper); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px; font-size: .84rem; }
.footer-bottom a { text-decoration: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; opacity: 0; transform: translateY(16px); transition: all .4s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 12% 12% 12% round 18px); transition: clip-path 1.4s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0 round 18px); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal-img { clip-path: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards, .posts, .price-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .posts--feature .post-card:first-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .tool-cols, .tool-cols--est { grid-template-columns: 1fr; }
  .estimate { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .bar { height: 68px; }
  .intro-grid, .contact-grid, .compare { grid-template-columns: 1fr; }
  .cards, .posts, .price-grid, .tool-grid, .loc-results { grid-template-columns: 1fr; }
  .posts--feature .post-card:first-child { grid-column: auto; }
  .posts--feature .post-card:first-child .thumb { aspect-ratio: 4/3; }
  .card { min-height: 400px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 130px 0 56px; }
  .hero-meta .scroll-cue { display: none; }
  .stamp { width: 92px; height: 92px; }
  .result-grid, .row2 { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 60px 1fr; gap: 24px; }
  .timeline li::before { left: 66px; }
  .video-feature { aspect-ratio: 4/3; }
  .page-hero { min-height: 56vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
}
@media print {
  .site-header, .site-footer, .to-top, .no-print, .page-hero, .progress { display: none !important; }
  body { background: #fff; }
  .tool { box-shadow: none; border: 0; padding: 0; }
  .tool-cols, .tool-cols--est { grid-template-columns: 1fr; }
}
