/* =========================================================
   SAHYOG CONSULTANCY — main stylesheet
   ========================================================= */

:root {
    --ink: #15130f;
    --ink-2: #1d1a15;
    --ink-3: #2a261f;
    --paper: #f4efe7;
    --paper-2: #ebe4d8;
    --sand: #e3d6c2;
    --clay: #b9622d;
    --clay-hi: #d47a42;
    --wood: #9a6a43;

    --on-ink: #f4efe7;
    --on-ink-muted: #a59d90;
    --on-paper: #15130f;
    --on-paper-muted: #6a6359;
    --line-ink: rgba(244, 239, 231, 0.12);
    --line-paper: rgba(21, 19, 15, 0.14);

    --f-display: "Instrument Serif", "Times New Roman", serif;
    --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, monospace;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1320px;
    --header-h: 76px;
    --radius: 4px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--on-ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

img,
svg,
picture,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
    margin: 0;
}

ol,
ul {
    list-style: none;
    padding: 0;
}

em {
    font-style: italic;
}

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

:focus-visible {
    outline: 2px solid var(--clay-hi);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    transform: translateY(-200%);
    transition: transform 0.2s;
}

.skip-link:focus {
    transform: none;
}

svg path,
svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: clamp(88px, 12vw, 168px);
}

.section--ink {
    background: var(--ink);
    color: var(--on-ink);
}

.section--paper {
    background: var(--paper);
    color: var(--on-paper);
}

.section--sand {
    background: var(--sand);
    color: var(--on-paper);
}

.muted {
    color: var(--on-paper-muted);
}

.section--ink .muted {
    color: var(--on-ink-muted);
}

.link {
    color: var(--clay);
    border-bottom: 1px solid currentColor;
    transition: color 0.2s;
}

.link:hover {
    color: var(--clay-hi);
}

/* ---------- Typography ---------- */
.eyebrow,
.label {
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--on-paper-muted);
}

.label span {
    color: var(--clay);
}

.label::after {
    content: "";
    width: 48px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.section--ink .label {
    color: var(--on-ink-muted);
}

.section--ink .label span {
    color: var(--clay-hi);
}

.h2 {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 5.4vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.h2 em,
.statement em,
.hero__title em,
.contact__title em,
.footer__word em {
    color: var(--clay);
}

.section--ink .h2 em,
.contact__title em {
    color: var(--clay-hi);
}

.section-head {
    margin-bottom: clamp(40px, 6vw, 80px);
}

.section-head--split {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .section-head--split {
        grid-template-columns: 1fr 2fr;
        align-items: start;
    }

    .section-head--split .label {
        padding-top: 1.1em;
    }
}

/* ---------- Buttons ---------- */
.btn {
    --h: 54px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: var(--h);
    padding-inline: 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.btn:hover::before {
    transform: none;
}

.btn__icon {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--ease);
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

.btn--sm {
    --h: 44px;
    padding-inline: 20px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

.btn--accent {
    background: var(--clay);
    color: var(--paper);
}

.btn--accent::before {
    background: var(--paper);
}

.btn--accent:hover {
    color: var(--ink);
}

.btn--ghost {
    border: 1px solid rgba(244, 239, 231, 0.35);
    color: var(--paper);
}

.btn--ghost::before {
    background: var(--paper);
}

.btn--ghost:hover {
    color: var(--ink);
    border-color: var(--paper);
}

.round-btn {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line-ink);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.round-btn svg {
    width: 20px;
    height: 20px;
}

.round-btn:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

/* ---------- Scroll progress ---------- */
.progress {
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    z-index: 120;
    pointer-events: none;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--clay-hi);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s, color 0.4s;
    border-bottom: 1px solid transparent;
    color: var(--paper);
}

.header.is-scrolled {
    background: rgba(21, 19, 15, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-color: var(--line-ink);
}

.header.is-light {
    background: rgba(244, 239, 231, 0.82);
    color: var(--ink);
    border-color: var(--line-paper);
}

.header.is-hidden {
    transform: translateY(-100%);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__logo {
    position: relative;
    flex: none;
}

.header__logo img {
    height: 34px;
    width: auto;
    transition: opacity 0.3s;
}

.header__logo .logo-dark {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.header.is-light .logo-light {
    opacity: 0;
}

.header.is-light .logo-dark {
    opacity: 1;
}

.nav {
    display: none;
    gap: 36px;
    font-size: 14px;
    font-weight: 500;
}

.nav a {
    position: relative;
    padding-block: 6px;
    opacity: 0.78;
    transition: opacity 0.2s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a.is-active {
    opacity: 1;
}

.nav a:hover::after,
.nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    display: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
}

.header__phone:hover {
    opacity: 1;
}

.header .btn--accent {
    display: none;
}

.header.is-light .btn--accent::before {
    background: var(--ink);
}

.header.is-light .btn--accent:hover {
    color: var(--paper);
}

.burger {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 7px;
}

.burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.4s var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
    transform: translateY(4.25px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
}

@media (min-width: 640px) {
    .header .btn--accent {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }

    .burger {
        display: none;
    }
}

@media (min-width: 1200px) {
    .header__phone {
        display: inline;
    }
}

/* ---------- Mobile menu ---------- */
.menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease-in-out);
    visibility: hidden;
}

.menu.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
}

.menu__nav {
    display: flex;
    flex-direction: column;
}

.menu__nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-block: 10px;
    border-bottom: 1px solid var(--line-ink);
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s, transform 0.6s var(--ease);
}

.menu__nav a small {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--clay-hi);
}

.menu.is-open .menu__nav a {
    opacity: 1;
    transform: none;
}

.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.2s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.25s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.3s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 0.35s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: 0.4s; }

.menu__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 14px;
    color: var(--on-ink-muted);
}

.menu__foot a {
    color: var(--paper);
    font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 48px);
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero__media picture {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 60%;
    transform: scale(1.12);
    animation: heroZoom 2.6s var(--ease) forwards;
}

@keyframes heroZoom {
    to {
        transform: scale(1.02);
    }
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(21, 19, 15, 0.55) 0%, rgba(21, 19, 15, 0.1) 30%, rgba(21, 19, 15, 0.55) 62%, rgba(21, 19, 15, 0.96) 100%),
        linear-gradient(90deg, rgba(21, 19, 15, 0.75) 0%, rgba(21, 19, 15, 0) 65%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(244, 239, 231, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 239, 231, 0.05) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: rgba(244, 239, 231, 0.85);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clay-hi);
    box-shadow: 0 0 0 0 rgba(212, 122, 66, 0.6);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(212, 122, 66, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 122, 66, 0);
    }
}

.hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(3.1rem, 9.6vw, 9.25rem);
    line-height: 0.94;
    letter-spacing: -0.025em;
}

.hero__title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

.hero__title .line > span {
    display: inline-block;
}

.hero__title em {
    color: var(--clay-hi);
}

.hero__bottom {
    display: grid;
    gap: 28px;
    margin-top: clamp(28px, 4vw, 48px);
}

.hero__lede {
    max-width: 46ch;
    font-size: clamp(16px, 1.3vw, 18px);
    color: rgba(244, 239, 231, 0.8);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (min-width: 900px) {
    .hero__bottom {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

.hero__stats {
    margin-top: clamp(48px, 7vw, 88px);
    padding-bottom: 28px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line-ink);
}

.stats > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding: 22px 0 6px;
}

.stats > div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line-ink);
}

.stats dt {
    font-size: 13px;
    color: var(--on-ink-muted);
}

.stats dd {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1;
}

@media (min-width: 900px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats > div + div {
        padding-left: 28px;
        border-left: 1px solid var(--line-ink);
    }
}

.hero__caption {
    margin-top: 18px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-ink-muted);
}

.hero__caption span {
    padding: 3px 7px;
    margin-right: 8px;
    border: 1px solid var(--line-ink);
    border-radius: 2px;
}

/* Hero entrance */
.js [data-hero] {
    opacity: 0;
    transform: translateY(28px);
}

.js .hero__title [data-hero] {
    opacity: 1;
    transform: translateY(105%);
}

.is-loaded [data-hero] {
    opacity: 1;
    transform: none;
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
    transition-delay: var(--d, 0s);
}

.is-loaded .hero__title [data-hero] {
    transform: none;
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    overflow: hidden;
    background: var(--clay);
    color: var(--paper);
    padding-block: 18px;
    border-block: 1px solid rgba(0, 0, 0, 0.1);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee span {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    line-height: 1;
    white-space: nowrap;
}

.marquee i {
    font-style: normal;
    font-size: 14px;
    opacity: 0.7;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Studio ---------- */
.statement {
    font-family: var(--f-display);
    font-size: clamp(1.9rem, 3.9vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    max-width: 22ch;
    max-width: 24em;
    text-wrap: pretty;
}

.studio__grid {
    display: grid;
    gap: clamp(48px, 6vw, 96px);
    margin-top: clamp(56px, 8vw, 112px);
}

@media (min-width: 960px) {
    .studio__grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: start;
    }

    .studio__figure {
        position: sticky;
        top: calc(var(--header-h) + 32px);
    }
}

.frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1 / 1.02;
    background: var(--paper-2);
}

.frame picture {
    position: absolute;
    inset: 0;
}

.frame img {
    width: 100%;
    height: 112%;
    object-fit: cover;
    object-position: 56% 50%;
    will-change: transform;
}

.studio__figure figcaption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--on-paper-muted);
    max-width: 44ch;
}

.studio__intro {
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--on-paper-muted);
    max-width: 44ch;
    margin-bottom: 40px;
}

.pillars li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding-block: 26px;
    border-top: 1px solid var(--line-paper);
}

.pillars li:last-child {
    border-bottom: 1px solid var(--line-paper);
}

.pillars__n {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--clay);
    padding-top: 6px;
}

.pillars h3 {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    line-height: 1.15;
    margin-bottom: 6px;
}

.pillars p {
    color: var(--on-paper-muted);
    font-size: 15px;
}

/* ---------- Services ---------- */
.svc {
    border-top: 1px solid var(--line-ink);
    counter-reset: svc;
}

.svc__row {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 6px 16px;
    padding-block: 28px;
    border-bottom: 1px solid var(--line-ink);
    cursor: default;
}

.svc__row::before {
    content: "";
    position: absolute;
    inset: 0 calc(var(--gutter) * -1);
    background: var(--ink-2);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.svc__row > * {
    position: relative;
    z-index: 1;
}

.svc__n {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--clay-hi);
    padding-top: 0.9em;
}

.svc__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    transition: transform 0.5s var(--ease), color 0.3s;
}

.svc__desc {
    grid-column: 2 / 3;
    color: var(--on-ink-muted);
    max-width: 52ch;
    font-size: 15px;
}

.svc__arrow {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    width: 40px;
    height: 40px;
    margin-top: 0.4em;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-ink);
    transition: background 0.4s, color 0.4s, transform 0.5s var(--ease), border-color 0.4s;
}

.svc__arrow svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 900px) {
    .svc__row {
        grid-template-columns: 80px minmax(0, 1.25fr) minmax(0, 1fr) 56px;
        align-items: center;
        gap: 32px;
        padding-block: 36px;
    }

    .svc__n {
        padding-top: 0;
    }

    .svc__desc {
        grid-column: 3;
    }

    .svc__arrow {
        grid-column: 4;
        grid-row: auto;
        align-self: center;
        width: 52px;
        height: 52px;
        margin: 0;
    }
}

@media (hover: hover) and (min-width: 900px) {
    .svc__row:hover::before {
        opacity: 1;
    }

    .svc__row:hover .svc__title {
        transform: translateX(14px);
        color: var(--clay-hi);
    }

    .svc__row:hover .svc__arrow {
        background: var(--clay);
        border-color: var(--clay);
        color: var(--paper);
        transform: rotate(45deg);
    }
}

.svc-preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 300px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.85);
    transition: opacity 0.35s, transform 0.5s var(--ease);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.svc-preview.is-visible {
    opacity: 1;
}

.svc-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (hover: none), (max-width: 899px) {
    .svc-preview {
        display: none;
    }
}

/* ---------- Work ---------- */
.bento {
    display: grid;
    gap: clamp(14px, 1.6vw, 22px);
}

@media (min-width: 760px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .tile--feature,
    .tile--wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1080px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .tile--feature {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tile--wide {
        grid-column: span 2;
    }

    .tile--feature + .tile,
    .tile--feature + .tile + .tile {
        grid-column: 3;
    }
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tile__open {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-2);
    aspect-ratio: 16 / 10;
    cursor: zoom-in;
}

.tile--feature .tile__open {
    aspect-ratio: 16 / 9.6;
}

.tile--wide .tile__open {
    aspect-ratio: 16 / 8;
}

.tile__open picture,
.tile__open img {
    width: 100%;
    height: 100%;
}

.tile__open img {
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.tile__open:hover img {
    transform: scale(1.045);
}

.tile__open::after {
    content: "View";
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(21, 19, 15, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--paper);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s, transform 0.4s var(--ease);
}

.tile__open:hover::after,
.tile__open:focus-visible::after {
    opacity: 1;
    transform: none;
}

.tile--feature .tile__open::after {
    top: auto;
    bottom: 14px;
}

.tile__meta {
    display: grid;
    gap: 10px;
}

@media (min-width: 760px) {
    .tile--feature .tile__meta {
        grid-template-columns: 1fr 1.2fr;
        gap: 32px;
        align-items: start;
    }
}

.tile__tag {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 6px;
}

.tile h3 {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.1;
}

.tile--feature h3 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.tile__meta p {
    color: var(--on-paper-muted);
    font-size: 15px;
}

.tile__meta--compact h3 {
    font-size: 1.5rem;
}

/* Day / Night */
.daynight {
    position: relative;
}

.daynight__img {
    position: absolute;
    inset: 0;
    transition: opacity 0.9s var(--ease-in-out);
}

.daynight__img--day {
    position: relative;
}

.daynight[data-mode="day"] .daynight__img--night {
    opacity: 0;
}

.daynight__toggle {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(21, 19, 15, 0.62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--paper);
}

.daynight__toggle button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding-inline: 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.75;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
}

.daynight__toggle svg {
    width: 15px;
    height: 15px;
}

.daynight__toggle button[aria-pressed="true"] {
    background: var(--paper);
    color: var(--ink);
    opacity: 1;
}

/* CTA tile */
.tile--cta {
    justify-content: space-between;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    min-height: 240px;
    overflow: hidden;
    isolation: isolate;
    transition: background 0.5s;
}

.tile--cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(244, 239, 231, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 239, 231, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.tile--cta .tile__tag {
    color: var(--clay-hi);
}

.tile--cta p {
    font-family: var(--f-display);
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    line-height: 1.08;
}

.tile__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.tile__cta-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease);
}

.tile--cta:hover {
    background: var(--clay);
}

.tile--cta:hover .tile__tag {
    color: var(--paper);
}

.tile--cta:hover svg {
    transform: rotate(45deg);
}

@media (min-width: 1080px) {
    .tile--wide .tile__open {
        aspect-ratio: auto;
        height: 100%;
        min-height: 340px;
    }

    .tile--wide {
        flex-direction: row;
        align-items: stretch;
    }

    .tile--wide .tile__open {
        flex: 1;
    }

    .tile--wide .tile__meta {
        position: absolute;
        left: 18px;
        bottom: 18px;
        padding: 14px 18px;
        border-radius: var(--radius);
        background: rgba(244, 239, 231, 0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        pointer-events: none;
    }
}

/* ---------- Process ---------- */
.steps {
    display: grid;
    gap: 0;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 0 32px 0;
    border-top: 1px solid var(--line-paper);
}

.step__n {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 50%;
    border: 1px solid var(--on-paper);
    font-family: var(--f-mono);
    font-size: 13px;
    background: var(--sand);
    transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.step:hover .step__n {
    background: var(--clay);
    border-color: var(--clay);
    color: var(--paper);
}

.step h3 {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    line-height: 1.1;
    margin-bottom: 10px;
}

.step p {
    color: var(--on-paper-muted);
    font-size: 15px;
    max-width: 34ch;
}

@media (min-width: 900px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .step {
        border-top: 0;
        padding-top: 0;
    }

    .step::before {
        content: "";
        position: absolute;
        top: 23px;
        left: 46px;
        right: -32px;
        height: 1px;
        background: var(--line-paper);
        z-index: 0;
    }

    .step:last-child::before {
        display: none;
    }

    .step::after {
        content: "";
        position: absolute;
        top: 23px;
        left: 46px;
        right: -32px;
        height: 1px;
        background: var(--clay);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1.4s var(--ease);
        transition-delay: calc(var(--d, 0s) + 0.4s);
    }

    .step:last-child::after {
        display: none;
    }

    .step.is-in::after {
        transform: scaleX(1);
    }
}

/* ---------- Testimonials ---------- */
.quotes {
    position: relative;
    max-width: 1080px;
}

.quotes__mark {
    width: 56px;
    height: auto;
    margin-bottom: 32px;
}

.quotes__mark path {
    fill: var(--clay-hi);
    stroke: none;
}

.quotes__viewport {
    display: grid;
}

.quote {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0.7s;
}

.quote.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.quote blockquote {
    font-family: var(--f-display);
    font-size: clamp(1.9rem, 4.2vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.quote figcaption {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    font-size: 14px;
    color: var(--on-ink-muted);
}

.quote figcaption strong {
    display: block;
    color: var(--paper);
    font-size: 16px;
    font-weight: 600;
}

.avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    background: var(--ink-3);
    border: 1px solid var(--line-ink);
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--clay-hi);
}

.quotes__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 48px;
}

.quotes__count {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--on-ink-muted);
    min-width: 64px;
    text-align: center;
}

.quotes__count b {
    color: var(--paper);
    font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq__grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 960px) {
    .faq__grid {
        grid-template-columns: 1fr 1.25fr;
        gap: 96px;
    }

    .faq__head {
        position: sticky;
        top: calc(var(--header-h) + 40px);
        align-self: start;
    }
}

.faq__head .h2 {
    margin: 24px 0 20px;
}

.faq__list {
    border-top: 1px solid var(--line-paper);
}

.faq details {
    border-bottom: 1px solid var(--line-paper);
}

.faq summary {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    list-style: none;
    cursor: pointer;
    font-family: var(--f-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.2;
    transition: color 0.3s;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--clay);
}

.faq summary i {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-paper);
    transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}

.faq summary i::before,
.faq summary i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.faq summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.4s var(--ease);
}

.faq details[open] summary i {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.faq details[open] summary i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq details p {
    padding: 0 56px 28px 0;
    color: var(--on-paper-muted);
    max-width: 60ch;
}

.faq details[open] p {
    animation: faqIn 0.5s var(--ease);
}

@keyframes faqIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ---------- Contact ---------- */
.contact__grid {
    display: grid;
    gap: 56px;
}

@media (min-width: 1000px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 96px;
        align-items: start;
    }
}

.contact__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 6.4vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 24px 0 24px;
}

.contact__lede {
    max-width: 42ch;
    font-size: 17px;
}

.contact__list {
    margin-top: 48px;
    border-top: 1px solid var(--line-ink);
}

.contact__list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line-ink);
    font-size: 16px;
}

.contact__list a {
    transition: color 0.2s;
}

.contact__list a:hover {
    color: var(--clay-hi);
}

.contact__k {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-ink-muted);
    padding-top: 4px;
}

.form {
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius);
    background: var(--ink-2);
    border: 1px solid var(--line-ink);
    display: grid;
    gap: 22px;
}

.form__head h3 {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 2.6vw, 2.25rem);
    line-height: 1.1;
}

.form__head p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--on-ink-muted);
}

.form__row {
    display: grid;
    gap: 22px;
}

@media (min-width: 560px) {
    .form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    position: relative;
}

.field input,
.field textarea {
    width: 100%;
    padding: 26px 0 10px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(244, 239, 231, 0.25);
    border-radius: 0;
    color: var(--paper);
    font: inherit;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

.field textarea {
    min-height: 96px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--clay-hi);
}

.field label {
    position: absolute;
    left: 0;
    top: 24px;
    color: var(--on-ink-muted);
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.35s var(--ease), color 0.3s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-22px) scale(0.78);
    color: var(--clay-hi);
}

.field.is-invalid input {
    border-color: #e26d5a;
}

.chips {
    border: 0;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips legend {
    width: 100%;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--on-ink-muted);
}

.chips label {
    position: relative;
    cursor: pointer;
}

.chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chips span {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(244, 239, 231, 0.22);
    font-size: 14px;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.chips label:hover span {
    border-color: rgba(244, 239, 231, 0.5);
}

.chips input:checked + span {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.chips input:focus-visible + span {
    outline: 2px solid var(--clay-hi);
    outline-offset: 2px;
}

.form .btn {
    margin-top: 8px;
}

.form__status {
    min-height: 1.4em;
    font-size: 14px;
    color: var(--on-ink-muted);
}

.form__status.is-error {
    color: #f08c78;
}

.form__status.is-ok {
    color: #9fd3a3;
}

.map {
    margin-top: clamp(56px, 8vw, 96px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-ink);
    height: clamp(280px, 36vw, 420px);
    background: var(--ink-2);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.9) sepia(0.25) contrast(0.9);
    transition: filter 0.6s;
}

.map:hover iframe {
    filter: none;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: var(--on-ink);
    padding-top: 40px;
    border-top: 1px solid var(--line-ink);
    overflow: hidden;
}

.footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer__top img {
    height: 30px;
    width: auto;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-size: 14px;
    color: var(--on-ink-muted);
}

.footer__nav a:hover,
.footer__top-link:hover {
    color: var(--paper);
}

.footer__top-link {
    font-size: 14px;
    color: var(--on-ink-muted);
}

.footer__word {
    font-family: var(--f-display);
    font-size: clamp(5rem, 24vw, 24rem);
    line-height: 0.8;
    letter-spacing: -0.04em;
    margin: clamp(40px, 6vw, 72px) 0 0 -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 239, 231, 0.22);
    white-space: nowrap;
    user-select: none;
}

.footer__word em {
    -webkit-text-stroke: 0;
    color: var(--clay);
    font-style: normal;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px 28px;
    padding-right: 80px;
    border-top: 1px solid var(--line-ink);
    font-size: 13px;
    color: var(--on-ink-muted);
}

/* ---------- WhatsApp FAB ---------- */
.wa {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
    transform: scale(0);
    transition: transform 0.5s var(--ease);
}

.wa.is-visible {
    transform: scale(1);
}

.wa:hover {
    transform: scale(1.08);
}

.wa svg {
    width: 30px;
    height: 30px;
}

.wa svg path {
    fill: currentColor;
    stroke: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 72px clamp(12px, 3vw, 40px) 32px;
    background: rgba(12, 11, 9, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--paper);
    opacity: 0;
    transition: opacity 0.4s;
}

.lightbox[hidden] {
    display: none;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox__fig {
    min-width: 0;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.lightbox__fig img {
    max-height: calc(100vh - 160px);
    max-height: calc(100svh - 160px);
    width: auto;
    border-radius: var(--radius);
    transform: scale(0.97);
    transition: transform 0.5s var(--ease), opacity 0.3s;
}

.lightbox.is-open .lightbox__fig img {
    transform: none;
}

.lightbox__fig figcaption {
    font-size: 14px;
    color: var(--on-ink-muted);
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
}

@media (max-width: 700px) {
    .lightbox {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
    }

    .lightbox__fig {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .lightbox__nav--prev {
        grid-row: 2;
        justify-self: end;
    }

    .lightbox__nav--next {
        grid-row: 2;
        justify-self: start;
    }
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Header color on light sections ---------- */
@media (max-width: 639px) {
    .header__actions {
        gap: 8px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal],
    .js [data-hero] {
        opacity: 1;
        transform: none;
    }

    .hero__media img {
        transform: none;
    }
}
