/* =============================================================================
   SAGAR STUDIO — redesign.css  ("Viewfinder" redesign: shared theme)
   Loaded on every page after main.css. The homepage adds home.css on top.
   To return to the previous look, remove this file's <link> in
   includes/header.php (and the 'styles' / 'scripts' lines in index.php).
     R1 Fonts & tokens          R4 Shared sections & footer   R7 Stories, guides, films
     R2 Base type & buttons     R5 Signature details          R8 Forms & contact
     R3 Header & menus          R6 Inner-page layouts         R9 Motion preferences
   ========================================================================== */

/* R1 FONTS & TOKENS ======================================================= */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-variable-latin.woff2") format("woff2");
  font-weight: 200 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-variable-latin.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face { font-family: "Sora Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 112%; ascent-override: 92%; }

:root {
  --c-ink: #07080a;
  --c-ink-2: #0c0e12;
  --c-ink-3: #161920;
  --c-ivory: #f4f2ed;
  --c-ivory-muted: #a8a6a1;
  --c-line-dark: rgba(244, 242, 237, 0.11);
  --c-paper: #ecebe6;
  --c-paper-2: #e3e1da;
  --c-text: #0c0d10;
  --c-text-muted: #54555a;
  --c-line-light: rgba(12, 13, 16, 0.14);
  --c-gold: #ffb23e;
  --c-gold-deep: #8a4c00;
  --c-hot: #ff5a36;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));

  --f-display: "Sora", "Sora Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-telugu: "Noto Sans Telugu", "Telugu Sangam MN", "Nirmala UI", "Gautami", var(--f-body);

  --fs-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-display-md: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --fs-display-lg: clamp(2rem, 1.35rem + 2.9vw, 3.9rem);
  --fs-display-xl: clamp(2.3rem, 1.4rem + 4vw, 5rem);
  --lh-tight: 1.05;
  --tracking-caps: 0.14em;

  --radius: 14px;
  --radius-lg: 22px;
  --r-card: clamp(20px, 2.2vw, 30px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

/* R2 BASE TYPE & BUTTONS ================================================== */
html { scrollbar-color: #2b2f38 var(--c-ink); }
.display { font-weight: 300; letter-spacing: -0.045em; }
.display em, .r-manifest__title em, .r-hero__title em, .r-shot__endtitle em {
  font-family: var(--f-accent); font-style: italic; font-weight: 400;
  letter-spacing: -0.015em; font-size: 1.12em; line-height: 0.9; color: var(--c-gold);
}
.section--paper .display em { color: var(--c-gold-deep); }
h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.eyebrow {
  font-family: var(--f-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: var(--tracking-caps);
  gap: 0.7rem; margin-bottom: var(--space-5);
}
.eyebrow::before,
.js [data-reveal] .eyebrow::before,
.js [data-reveal].is-visible .eyebrow::before {
  width: 7px; height: 7px; border-radius: 50%; opacity: 1; flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
}
.lead { letter-spacing: -0.01em; }

.btn { border-radius: 999px; letter-spacing: 0.01em; }
.btn--gold:hover { --btn-bg: #ffc76e; --btn-border: #ffc76e; box-shadow: 0 14px 44px -12px rgba(255, 178, 62, 0.6); }
.btn--line { --btn-border: rgba(244, 242, 237, 0.2); --btn-bg: rgba(255, 255, 255, 0.03); }
.btn--line:hover { --btn-border: rgba(244, 242, 237, 0.55); --btn-bg: rgba(255, 255, 255, 0.08); }
.link-arrow { border-bottom-color: color-mix(in srgb, currentColor 35%, transparent); transition: border-color var(--dur-fast), color var(--dur-fast); }
.link-arrow:hover { color: var(--c-gold); border-bottom-color: currentColor; }
.section--paper .link-arrow:hover { color: var(--c-gold-deep); }
.scroll-progress { background: linear-gradient(90deg, rgba(255, 178, 62, 0), var(--c-gold) 20%, var(--c-hot)); box-shadow: 0 0 16px rgba(255, 178, 62, 0.6); }

/* R3 HEADER & MENUS ======================================================= */
.site-header.is-scrolled, .site-header--overlay.is-scrolled { background: rgba(7, 8, 10, 0.82); }
.site-header::after { display: none; }
@media (min-width: 961px) {
  .site-header, .site-header--overlay,
  .site-header.is-scrolled, .site-header--overlay.is-scrolled {
    background: transparent; border-color: transparent; pointer-events: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .site-header { padding-top: 14px; }
  .site-header.is-hidden { transform: translateY(-110%); }
  .site-header__inner {
    pointer-events: auto; height: 60px; max-width: min(1240px, calc(100% - var(--gutter) * 2));
    padding-inline: 1.5rem 0.55rem; border-radius: 999px; gap: var(--space-4);
    border: 1px solid var(--c-line-dark); background: rgba(12, 14, 18, 0.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .site-header__inner { transition: background-color var(--dur) ease; }
  .site-header.is-scrolled .site-header__inner { background: rgba(10, 12, 16, 0.78); }
  /* A named view-transition element is a backdrop root: with the name on the
     header, the capsule inside it had nothing behind it to blur. */
  .site-header { view-transition-name: none; }
  .brand__logo { height: 36px; }
  .primary-nav { margin-inline: auto; }
  .primary-nav__list { gap: 0.15rem; }
  .primary-nav a {
    padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.84rem; color: var(--c-ivory-muted);
    background: none; transition: background-color var(--dur-fast), color var(--dur-fast);
  }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); color: var(--c-ivory); }
  .subnav {
    left: 0; top: calc(100% + 14px); padding: 0.5rem; border-radius: 22px; min-width: 270px;
    background: rgba(12, 14, 18, 0.94);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  }
  .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .subnav a { padding: 0.6rem 0.85rem; border-radius: 14px; display: block; }
  .site-header__actions { gap: var(--space-3); }
  .header-call { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em; color: var(--c-ivory-muted); }
}
.mobile-menu { background: rgba(7, 8, 10, 0.97); }
.mobile-menu__primary a { font-weight: 300; letter-spacing: -0.045em; }
.mobile-menu__primary a[aria-current="page"] { font-style: normal; }
.mobile-menu__label { font-family: var(--f-mono); }
@media (max-width: 760px) {
  .mobile-bar {
    left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom)); padding-bottom: 0;
    border-radius: 999px; overflow: hidden; border: 1px solid var(--c-line-dark); background: rgba(12, 14, 18, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8);
  }
  .js .mobile-bar:not(.is-visible) { transform: translateY(160%); }
  .mobile-bar a { min-height: 54px; }
}

/* R4 SHARED SECTIONS & FOOTER ============================================ */
.frame { background: var(--c-ink-3); }
.page-hero__frame { border-radius: var(--r-card); }
.page-hero__media::after { border-radius: var(--r-card); border-color: rgba(255, 178, 62, 0.4); }
.breadcrumbs { font-family: var(--f-mono); letter-spacing: 0.02em; }

.r-card {
  position: relative; overflow: hidden; border: 1px solid var(--c-line-dark); border-radius: var(--r-card);
  background: var(--glass); padding: clamp(1.35rem, 2.6vw, 2.4rem);
}
.r-card::before, .process__step::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 178, 62, 0.16), transparent 62%);
}
.r-card:hover::before, .process__step:hover::before { opacity: 1; }
.r-card > * { position: relative; }

/* Process */
.process__list { gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.process__step {
  position: relative; overflow: hidden; border: 1px solid var(--c-line-dark); border-radius: var(--r-card);
  background: var(--glass); padding: clamp(1.25rem, 2vw, 1.75rem);
}
.process__step::after { display: none; }
.process__step > * { position: relative; }
.process__num {
  font-family: var(--f-mono); font-style: normal; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--c-gold);
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem); display: flex; align-items: center; gap: 0.6rem;
}
.process__num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 178, 62, 0.6), transparent); }

/* FAQ */
.faq-list { border-top: 0; display: grid; gap: 0.6rem; }
.faq { border: 1px solid var(--c-line-dark); border-radius: 20px; background: var(--glass); padding-inline: clamp(1rem, 2vw, 1.5rem); transition: border-color var(--dur); }
.faq[open] { border-color: rgba(255, 178, 62, 0.4); }
.faq summary { font-family: var(--f-display); letter-spacing: -0.02em; }
.faq__icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-line-dark); }
.faq__icon::before, .faq__icon::after { left: 50%; width: 12px; margin-left: -6px; }
.faq[open] .faq__icon { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.section--paper .faq { border-color: var(--c-line-light); background: rgba(255, 255, 255, 0.5); }

/* Call-to-action band */
.cta-band { background: transparent; border-top: 0; padding: clamp(1rem, 2vw, 2rem) clamp(0.6rem, 1.6vw, 1.5rem); overflow: visible; }
.cta-band::before, .cta-band::after { display: none; }
.cta-band__inner {
  position: relative; overflow: hidden; max-width: none; border-radius: clamp(26px, 3.4vw, 48px);
  border: 1px solid var(--c-line-dark); padding-block: clamp(3.5rem, 2.5rem + 6vw, 8rem);
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(255, 178, 62, 0.3), transparent 70%),
    radial-gradient(40% 60% at 12% 0%, rgba(255, 90, 54, 0.14), transparent 70%),
    linear-gradient(rgba(244, 242, 237, 0.04) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(244, 242, 237, 0.04) 1px, transparent 1px) 0 0 / 64px 100%,
    var(--c-ink-2);
}
.date-check__label { font-family: var(--f-mono); font-weight: 500; }
.date-check__input { border-radius: 999px; }
.date-check__input:focus-visible { box-shadow: 0 0 0 3px rgba(255, 178, 62, 0.3); }

/* Footer */
.site-footer { border-top: 0; }
.site-footer__title { font-family: var(--f-mono); font-weight: 500; font-size: 0.7rem; }
.site-footer__mark {
  font-weight: 200; text-transform: uppercase; font-size: min(10.2vw, 11rem); letter-spacing: -0.05em; line-height: 1;
  color: var(--c-ink); -webkit-text-stroke: 2px rgba(255, 178, 62, 0.5); paint-order: stroke fill; background: none;
  animation-name: r-mark;
}
@keyframes r-mark { from { transform: translateY(28%); } }
.site-footer__bottom { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.01em; }
.float-actions__wa { height: 52px; }

/* R5 SIGNATURE DETAILS ==================================================== */

/* Film grain over the dark canvas. One static tile, drawn once. */
@media (min-width: 760px) {
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.32;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .5 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* Section numbers: every labelled section on a page counts up — 01, 02, 03… */
main { counter-reset: sec chap; }
main section .eyebrow { counter-increment: sec; }
main section .eyebrow::before,
.js main section [data-reveal] .eyebrow::before,
.js main section [data-reveal].is-visible .eyebrow::before {
  content: counter(sec, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; opacity: 1;
  padding-right: 0.7rem; border-right: 1px solid color-mix(in srgb, currentColor 45%, transparent); color: var(--c-ivory);
}
main .section--paper .eyebrow::before, main .on-paper .eyebrow::before, main .r-edit .eyebrow::before { color: var(--c-text); }

/* Viewfinder corners: four marks that close in on a photograph when it comes into view. */
.vf { position: relative; }
.vf::after {
  --c: rgba(244, 242, 237, 0.92); --l: 22px; --w: 1.5px;
  content: ""; position: absolute; inset: 14px; z-index: 3; pointer-events: none; border: 0;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 0 / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 0 / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 100% / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 100% / var(--w) var(--l);
  background-repeat: no-repeat;
}
.vf-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; pointer-events: none;
  font-family: var(--f-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ivory);
  padding: 0.38rem 0.65rem; border-radius: 999px; border: 1px solid rgba(244, 242, 237, 0.16); background: rgba(7, 8, 10, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vf-chip--tl { top: 26px; left: 26px; } .vf-chip--tr { top: 26px; right: 26px; }
.vf-chip--bl { bottom: 26px; left: 26px; } .vf-chip--br { bottom: 26px; right: 26px; }
.vf-chip b { font-weight: 500; color: var(--c-gold); }
.vf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-hot); animation: r-blink 2.4s ease-in-out infinite; }
.js .vf-chip [data-ist] { display: inline-block; min-width: 9ch; }
@keyframes r-blink { 50% { opacity: 0.25; } }

:is(.section--paper, .section--paper-2, .r-edit) .eyebrow::before, .js :is(.section--paper, .section--paper-2, .r-edit) [data-reveal] .eyebrow::before, .js :is(.section--paper, .section--paper-2, .r-edit) [data-reveal].is-visible .eyebrow::before { color: var(--c-text); }

/* Gold buttons catch the light on hover. */
.btn--gold { position: relative; overflow: hidden; isolation: isolate; }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; translate: -130% 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.6) 50%, transparent 68%);
}
.btn--gold:hover::after { translate: 130% 0; transition: translate 0.9s var(--ease-out); }

/* Light sections become rounded panels set into the dark page. */
.section--paper, .section--paper-2 { margin-inline: clamp(0.6rem, 1.6vw, 1.5rem); border-radius: clamp(26px, 3.4vw, 48px); }
:is(.section--paper, .section--paper-2) + :is(.section--paper, .section--paper-2) { margin-top: clamp(0.6rem, 1.6vw, 1.5rem); }
.section--ink-2 { border-block: 1px solid var(--c-line-dark); }

/* R6 INNER-PAGE LAYOUTS =================================================== */
.page-hero { position: relative; isolation: isolate; padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.page-hero::before {
  content: ""; position: absolute; inset: calc(var(--header-h) * -1.4) 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 55% at 82% 40%, rgba(255, 178, 62, 0.15), transparent 70%),
    radial-gradient(36% 40% at 0% 100%, rgba(255, 90, 54, 0.1), transparent 70%),
    linear-gradient(rgba(244, 242, 237, 0.04) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(244, 242, 237, 0.04) 1px, transparent 1px) 0 0 / 72px 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
.page-hero .display--xl { letter-spacing: -0.052em; }
.page-hero__media { position: relative; isolation: isolate; }
.page-hero__media::after { inset: 14px; z-index: 3; border: 0; border-radius: 0; }
.page-hero__frame {
  border-radius: clamp(22px, 2.6vw, 36px);
  box-shadow: 0 0 0 1px var(--c-line-dark), 0 50px 120px -50px #000, 0 0 120px -40px rgba(255, 178, 62, 0.3);
}
.page-hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: clamp(22px, 2.6vw, 36px);
  background: linear-gradient(to top, rgba(7, 8, 10, 0.5), transparent 24%), linear-gradient(to bottom, rgba(7, 8, 10, 0.4), transparent 20%);
}
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
  .page-hero__frame, .page-hero__frame img { min-height: min(70vh, 720px); }
}
/* Pages without a photograph get a focusing screen on the right instead. */
@media (min-width: 1000px) {
  .page-hero--plain .page-hero__grid { position: relative; max-width: calc(var(--container) + var(--gutter) * 2); }
  .page-hero--plain .page-hero__text { max-width: 60rem; padding-right: clamp(0rem, 26vw - 14rem, 16rem); }
  .page-hero--plain .page-hero__grid::after {
    content: ""; position: absolute; right: 0; top: 50%; width: clamp(200px, 22vw, 330px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; pointer-events: none;
    border: 1px dashed rgba(244, 242, 237, 0.2);
    background:
      radial-gradient(circle, transparent 0 21%, rgba(255, 178, 62, 0.75) 21% calc(21% + 1px), transparent calc(21% + 1px)),
      radial-gradient(circle, transparent 0 46%, rgba(244, 242, 237, 0.16) 46% calc(46% + 1px), transparent calc(46% + 1px)),
      linear-gradient(rgba(244, 242, 237, 0.2), rgba(244, 242, 237, 0.2)) 50% 50% / 1px 100% no-repeat,
      linear-gradient(rgba(244, 242, 237, 0.2), rgba(244, 242, 237, 0.2)) 50% 50% / 100% 1px no-repeat,
      radial-gradient(circle, rgba(255, 178, 62, 0.14), transparent 62%);
  }
}

.feature-list { counter-reset: feat; }
.feature-list li { counter-increment: feat; position: relative; padding: clamp(1.1rem, 2vw, 1.6rem) 0 clamp(1.1rem, 2vw, 1.6rem) 3.1rem; transition: padding-left 0.45s var(--ease-out); }
.feature-list li::before { content: counter(feat, decimal-leading-zero); position: absolute; left: 0; top: calc(clamp(1.1rem, 2vw, 1.6rem) + 0.45rem); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--c-gold); }
.section--paper .feature-list li::before { color: var(--c-gold-deep); }
.feature-list strong { font-weight: 400; letter-spacing: -0.03em; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }
@media (min-width: 700px) { .feature-list li { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3.5rem); align-items: baseline; } }
@media (hover: hover) { .feature-list li:hover { padding-left: 3.7rem; } }

.prose-columns { counter-reset: note; gap: clamp(0.75rem, 1.4vw, 1.25rem); }
@media (min-width: 900px) { .prose-columns { gap: clamp(0.75rem, 1.4vw, 1.25rem); } }
.prose-columns > div {
  counter-increment: note; position: relative; overflow: hidden; padding: clamp(1.35rem, 2.6vw, 2.4rem);
  border: 1px solid var(--c-line-dark); border-radius: var(--r-card); background: var(--glass);
}
.prose-columns > div::before { content: counter(note, decimal-leading-zero); display: block; margin-bottom: clamp(1.25rem, 1rem + 2vw, 2.75rem); font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--c-gold); }
.section--paper .prose-columns > div { border-color: var(--c-line-light); background: rgba(255, 255, 255, 0.5); }
.section--paper .prose-columns > div::before { color: var(--c-gold-deep); }

.related__list { border-top: 0; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; margin-top: var(--space-5); padding: 0; list-style: none; }
.related__link {
  height: 100%; padding: 0.8rem 0.8rem 0.8rem 1.3rem; border: 1px solid var(--c-line-dark); border-radius: 22px; background: var(--glass); line-height: 1.25;
  font-family: var(--f-display); letter-spacing: -0.02em; transition: border-color var(--dur), background-color var(--dur), color var(--dur-fast);
}
.related__link .icon { flex: none; box-sizing: content-box; padding: 0.65rem; border-radius: 50%; border: 1px solid var(--c-line-dark); transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur) var(--ease-out); }
.related__link:hover { border-color: rgba(255, 178, 62, 0.5); color: var(--c-ivory); }
.related__link:hover .icon { transform: rotate(-45deg); background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }

.service-grid { counter-reset: svc; gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.service-card { counter-increment: svc; }
.service-card__link {
  padding: 0.6rem 0.6rem 1.35rem; border: 1px solid var(--c-line-dark); border-radius: var(--r-card); background: var(--glass);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.service-card__link:hover { border-color: rgba(255, 178, 62, 0.45); transform: translateY(-4px); }
.service-card__media { border-radius: calc(var(--r-card) - 8px); }
.service-card__media img { filter: none; }
.service-card__body { position: relative; padding-inline: clamp(0.5rem, 1vw, 0.9rem); }
.service-card__body::before { content: counter(svc, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--c-gold); }
.service-card__title { font-weight: 400; letter-spacing: -0.035em; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.service-card__more { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.1em; font-size: 0.66rem; color: var(--c-ivory); }
.service-card__more .icon { box-sizing: content-box; padding: 0.5rem; margin-left: 0.3rem; border-radius: 50%; border: 1px solid var(--c-line-dark); transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur) var(--ease-out); }
.service-card__link:hover .service-card__more .icon { transform: rotate(-45deg); background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.section--paper .service-card__link { border-color: var(--c-line-light); background: rgba(255, 255, 255, 0.5); }
.section--paper .service-card__more { color: var(--c-text); }
.section--paper .service-card__more .icon { border-color: var(--c-line-light); }

.stats { gap: clamp(0.75rem, 1.4vw, 1.25rem); border: 0; padding-block: 0; }
.stats__item { padding: clamp(1.25rem, 2.4vw, 2rem); border: 1px solid var(--c-line-dark); border-radius: var(--r-card); background: var(--glass); gap: clamp(1rem, 2vw, 1.75rem); }
.stats__num { font-weight: 200; letter-spacing: -0.06em; color: var(--c-ivory); font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem); font-variant-numeric: tabular-nums; }
.stats__label { font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.section--paper .stats__item { border-color: var(--c-line-light); background: rgba(255, 255, 255, 0.5); }
.section--paper .stats__num { color: var(--c-text); }

.info-card, .contact-method { border-radius: var(--r-card); background: var(--glass); }
.info-card h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); }
.info-card__meta, .article-card__meta, .story__meta, .article-meta, .film-card__badge { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.1em; }
.chip-list a, .filters a, .filters button, .chip { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.quote-block { font-weight: 300; letter-spacing: -0.04em; }
.quote-block em { font-family: var(--f-accent); font-style: italic; letter-spacing: -0.01em; font-size: 1.1em; }

.gallery__link { border-radius: var(--radius-lg); }
.gallery__link:hover img { transform: scale(1.05); }
.gallery__item figcaption { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.04em; }

/* R7 STORIES, GUIDES, FILMS =============================================== */
.portfolio-grid { counter-reset: story; gap: clamp(0.75rem, 1.4vw, 1.25rem); }
@media (min-width: 700px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portfolio-grid .story__media { aspect-ratio: 5 / 4; } }
.story__link { border-radius: var(--r-card); }
.portfolio-grid .story { counter-increment: story; }
.portfolio-grid .story__link::before {
  content: counter(story, decimal-leading-zero); position: absolute; top: 1.1rem; left: 1.1rem; z-index: 3; padding: 0.35rem 0.65rem; border-radius: 999px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; background: rgba(7, 8, 10, 0.5); border: 1px solid rgba(244, 242, 237, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.story__caption { background: linear-gradient(0deg, rgba(7, 8, 10, 0.9), rgba(7, 8, 10, 0)); }
.story__title { font-weight: 300; letter-spacing: -0.04em; }
.story-cover .frame, .article-cover .frame { border-radius: clamp(22px, 2.6vw, 36px); }
/* Story chapters: the chapter name stays beside its photographs. */
.story-chapter { counter-increment: chap; }
.story-chapter__title { font-weight: 300; letter-spacing: -0.045em; }
.story-chapter__title::before { content: counter(chap, decimal-leading-zero); display: block; margin-bottom: 0.7rem; font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; color: var(--c-gold); }
.gallery--story .gallery__item:only-child { grid-column: span 12; }
.gallery--story .gallery__item--portrait:only-child { grid-column: span 8; }
@media (min-width: 1000px) {
  .story-chapter[aria-labelledby] > .container { display: grid; grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: start; }
  .story-chapter[aria-labelledby] .story-chapter__title { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 2.5rem); margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--c-line-dark); }
  .story-chapter[aria-labelledby] .story-chapter__intro, .story-chapter[aria-labelledby] .gallery { grid-column: 2; }
}

.article-hero { position: relative; isolation: isolate; }
.article-hero::before {
  content: ""; position: absolute; inset: calc(var(--header-h) * -1.4) 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 60% at 50% 0%, rgba(255, 178, 62, 0.13), transparent 70%),
    linear-gradient(rgba(244, 242, 237, 0.04) 1px, transparent 1px) 0 0 / 100% 72px, linear-gradient(90deg, rgba(244, 242, 237, 0.04) 1px, transparent 1px) 0 0 / 72px 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.article-hero .display--xl { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.05em; text-wrap: balance; }
.article-meta { font-size: 0.68rem; text-transform: uppercase; }
.article-meta span + span::before { content: "·"; margin-right: 1.25rem; margin-left: -0.75rem; opacity: 0.5; }
.toc { border-radius: var(--r-card); background: var(--glass); padding: clamp(1.25rem, 2.4vw, 2rem); }
.toc h2 { font-family: var(--f-mono) !important; font-weight: 500 !important; }
.toc ol { list-style: none; padding: 0; counter-reset: toc; display: grid; gap: 0.1rem 2rem; }
@media (min-width: 640px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 2rem 1fr; padding: 0.45rem 0; border-bottom: 1px solid var(--c-line-dark); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--c-gold); padding-top: 0.2em; }
.toc a:hover { text-decoration: none; color: var(--c-ivory); }
.prose { color: #d6d4cf; }
.prose h2 { font-weight: 300; letter-spacing: -0.045em; }
.prose h3 { font-weight: 500; letter-spacing: -0.025em; font-size: 1.3rem; }
.prose blockquote { border-left: 0; padding: clamp(1.25rem, 2.4vw, 2rem); border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--c-line-dark); font-family: var(--f-accent); font-style: italic; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -0.01em; }
.prose .callout { border-radius: var(--r-card); background: var(--glass); border-color: rgba(255, 178, 62, 0.3); }
.prose figure .frame { border-radius: var(--radius-lg); }
.prose th { font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gold); }
.article-end { border-radius: var(--r-card); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }

.article-grid { gap: clamp(0.9rem, 1.8vw, 1.5rem); }
.article-card__link {
  gap: 0.75rem; padding: 0.6rem 0.6rem 1.5rem; border: 1px solid var(--c-line-dark); border-radius: var(--r-card); background: var(--glass);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.article-card__link:hover { border-color: rgba(255, 178, 62, 0.45); transform: translateY(-4px); }
.article-card .frame { aspect-ratio: 16 / 11; border-radius: calc(var(--r-card) - 8px); }
.article-card__meta, .article-card__title, .article-card__excerpt { padding-inline: clamp(0.5rem, 1vw, 0.9rem); }
.article-card__meta { margin-top: 0.4rem; font-size: 0.64rem; }
.article-card__title { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); letter-spacing: -0.03em; line-height: 1.2; }
.article-card__link:hover .article-card__title { text-decoration: none; }
.section--paper .article-card__link { border-color: var(--c-line-light); background: rgba(255, 255, 255, 0.5); }

.film-card__thumb, .film-card__link { border-radius: var(--radius-lg); }
.film-card__title { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; }

/* R8 FORMS & CONTACT ====================================================== */
.contact-panel { border-radius: clamp(22px, 2.6vw, 36px); }
.field input:not([type="checkbox"]), .field select, .field textarea { border-radius: 14px; }
.field label, .field legend { font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.field--checks .check, .field--consent .check { font-family: var(--f-body); font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; }
.check input { color-scheme: light; }

/* R9 MOTION PREFERENCES =================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Focus pull: photographs arrive soft and snap sharp; the corner marks close in. */
  .vf-on [data-focus] img { transition: filter 1.1s ease, scale 1.6s var(--ease-out), transform 1.2s var(--ease-out); }
  .vf-on [data-focus]:not(.is-sharp) img { filter: blur(16px) saturate(0.6); scale: 1.07; }
  /* Scale, not inset: moving the box itself would count as layout shift. */
  .vf-on .vf::after { transition: scale 1.1s var(--ease-out) 0.15s, opacity 0.5s ease 0.15s; }
  .vf-on .vf[data-focus]:not(.is-sharp)::after { scale: 0.74; opacity: 0; }
  .page-hero__media.vf::after { animation: vf-lock 1.3s var(--ease-out) 0.25s backwards; }
}
@keyframes vf-lock { from { scale: 0.74; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vf-dot { animation: none; } .btn--gold::after { display: none; } }
@media print { body::after { display: none; } }
