/* ==========================================================================
   Vishal Hirani — site stylesheet
   Editorial direction: warm paper, serif display type, one accent colour.
   Generated pages live at the repo root; this file is shared by all of them.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --paper: #f5f1ea;
    --paper-2: #ede7dc;
    --card: #fbf9f5;
    --ink: #1a1714;
    --ink-2: #4a443c;
    --muted: #776f63;
    --line: #d9d0c1;
    --line-soft: #e6dfd3;
    --accent: #c2410c;
    --accent-hover: #a63709;
    --accent-ink: #ffffff;
    --accent-soft: #f4dccb;
    --ok: #2f7d4f;
    --shadow: 0 1px 2px rgba(26, 23, 20, .06), 0 12px 32px -12px rgba(26, 23, 20, .18);

    --f-display: "Fraunces", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
    --f-body: "Geist", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 11vw, 144px);
    --radius: 14px;
    --radius-sm: 8px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --hdr-h: 72px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #141210;
        --paper-2: #1c1916;
        --card: #1f1c18;
        --ink: #f3eee6;
        --ink-2: #cfc7ba;
        --muted: #9a9183;
        --line: #36312a;
        --line-soft: #2a2621;
        --accent: #f0844a;
        --accent-hover: #f59a66;
        --accent-ink: #1a1714;
        --accent-soft: #3a2418;
        --ok: #6cc28f;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --paper: #141210;
    --paper-2: #1c1916;
    --card: #1f1c18;
    --ink: #f3eee6;
    --ink-2: #cfc7ba;
    --muted: #9a9183;
    --line: #36312a;
    --line-soft: #2a2621;
    --accent: #f0844a;
    --accent-hover: #f59a66;
    --accent-ink: #1a1714;
    --accent-soft: #3a2418;
    --ok: #6cc28f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--hdr-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

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

/* Subtle paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .05;
    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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
    font-family: var(--f-display);
    font-weight: 380;
    font-optical-sizing: auto;
    letter-spacing: -.02em;
    line-height: 1.02;
    text-wrap: balance;
}

.display { font-size: clamp(2.75rem, 7.4vw, 6.75rem); line-height: .98; letter-spacing: -.035em; }
.h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -.03em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.015em; }

.display em, .h1 em, .h2 em, .h3 em {
    font-style: italic;
    font-weight: 330;
    color: var(--accent);
}

:lang(hi) .display, :lang(hi) .h1, :lang(hi) .h2, :lang(hi) .h3 { line-height: 1.25; letter-spacing: 0; }

.lead {
    font-size: clamp(1.125rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 38em;
    text-wrap: pretty;
}

.label {
    font-family: var(--f-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--ink-2); text-wrap: pretty; }

.link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-weight: 500;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    padding-bottom: 2px;
    transition: background-size .35s var(--ease), color .2s;
}
.link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }
.link svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link:hover svg { transform: translate(2px, -2px); }

/* ---------- Buttons ---------- */
.btn {
    --b-bg: var(--ink);
    --b-fg: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--b-bg);
    background: var(--b-bg);
    color: var(--b-fg);
    font-weight: 500;
    font-size: .975rem;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { --b-bg: var(--accent); --b-fg: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --b-bg: var(--ink); --b-fg: var(--paper); border-color: var(--ink); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); }
.btn--accent:hover { --b-bg: var(--ink); --b-fg: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }

/* ---------- Header ---------- */
.hdr {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--hdr-h);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line-soft); }

.hdr__in {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 450;
    letter-spacing: -.02em;
    transition: background .25s, transform .4s var(--ease);
}
.brand:hover .brand__mark { background: var(--accent); transform: rotate(-12deg); }
.brand__name {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 450;
    letter-spacing: -.015em;
}
.brand__name i { font-style: normal; color: var(--accent); }

.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--card); }
.nav a {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .925rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav__n { font-family: var(--f-mono); font-size: .65rem; color: var(--muted); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav a[aria-current="page"] .nav__n { color: var(--accent-soft); }

.hdr__tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: .75rem;
    color: var(--muted);
    white-space: nowrap;
}
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
    flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 0%, transparent); } }

.seg {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--card);
}
.seg button {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    transition: background .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
    :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}

.menu-btn {
    display: none;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: .9rem;
    font-weight: 500;
}
.menu-btn__lines { display: grid; gap: 4px; }
.menu-btn__lines span { display: block; width: 16px; height: 1.5px; background: currentColor; }

/* Mobile menu sheet */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    padding: 0 var(--gutter) 28px;
    overflow-y: auto;
}
.sheet[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .sheet.is-open { animation: sheet-in .45s var(--ease) both; }
    .sheet.is-open .sheet__links li { animation: rise .55s var(--ease) both; }
    .sheet.is-open .sheet__links li:nth-child(2) { animation-delay: .04s; }
    .sheet.is-open .sheet__links li:nth-child(3) { animation-delay: .08s; }
    .sheet.is-open .sheet__links li:nth-child(4) { animation-delay: .12s; }
    .sheet.is-open .sheet__links li:nth-child(5) { animation-delay: .16s; }
}
@keyframes sheet-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.sheet__top { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.sheet__links { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sheet__links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-display);
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    font-weight: 380;
    letter-spacing: -.025em;
    line-height: 1.05;
}
.sheet__links a .nav__n { font-size: .75rem; }
.sheet__links a[aria-current="page"] { color: var(--accent); }
.sheet__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 18px; }
.sheet__foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--line { border-top: 1px solid var(--line); }
.section--sunken { background: var(--paper-2); }

.sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px 48px;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.sec-head__count { font-family: var(--f-display); font-style: italic; color: var(--muted); font-size: .5em; vertical-align: super; letter-spacing: 0; margin-left: .15em; }
.sec-head p.lead { margin-top: 18px; }
.sec-head .label { display: block; margin-bottom: 18px; }

/* ---------- Hero (home) ---------- */
.hero { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: clamp(28px, 4vw, 44px); }
.hero__meta .clock { font-size: .8rem; color: var(--ink-2); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px 64px;
    align-items: end;
}
.hero__lead { margin-top: clamp(24px, 3vw, 36px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 36px; }

.latest {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.latest:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.latest__img { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.latest__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.latest__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 4px 2px; }
.latest__title { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.15; margin-top: 6px; }
.latest__arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; transition: background .25s, color .25s, border-color .25s; }
.latest:hover .latest__arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.latest__arrow svg { width: 16px; height: 16px; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 24px 26px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__n { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 350; line-height: 1; letter-spacing: -.03em; }
.stat__n sup { font-size: .45em; color: var(--accent); vertical-align: top; margin-left: 2px; }
.stat .label { display: block; margin-top: 10px; }

/* ---------- Browser frame ---------- */
.frame {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.frame__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--card);
}
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame__url {
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--paper-2);
    font-family: var(--f-mono);
    font-size: .7rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.frame__view { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.frame__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.frame__view--logo { position: relative; background: var(--paper-2); }
.frame__view--logo img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 52%; max-height: 56%; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Featured work rows (home) ---------- */
.feature-list { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { display: block; }
.feature__media:hover .frame__view img { transform: scale(1.025); }
.feature__idx { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.feature__title { margin-top: 14px; }
.feature__title a:hover { color: var(--accent); }
.feature__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.feature__text { margin-top: 18px; color: var(--ink-2); }
.feature__links { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; padding: 0; list-style: none; }
.tags li {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--ink-2);
    background: var(--card);
}

/* ---------- Work grid (projects page) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters sup { font-family: var(--f-mono); font-size: .65rem; margin-left: 3px; opacity: .7; }

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px);
}
.work-card[hidden] { display: none; }
.work-card a { display: block; }
.work-card:hover .frame__view img { transform: scale(1.03); }
.work-card__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 20px; }
.work-card__title { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; transition: color .2s; }
.work-card:hover .work-card__title { color: var(--accent); }
.work-card__text { margin-top: 8px; color: var(--ink-2); font-size: .975rem; }
.work-card__year { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding-top: 6px; white-space: nowrap; }

/* ---------- Services list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
    display: grid;
    grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr);
    gap: 16px 32px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    transition: background .3s;
}
.svc__n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); padding-top: 8px; }
.svc__title { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 380; line-height: 1.1; letter-spacing: -.02em; transition: transform .4s var(--ease), color .2s; }
.svc:hover .svc__title { transform: translateX(6px); color: var(--accent); }
.svc__text { color: var(--ink-2); }
.svc .tags { margin-top: 14px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.step { padding: 24px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--f-display); font-style: italic; font-size: 2.5rem; line-height: 1; color: var(--accent); }
.step__title { font-family: var(--f-display); font-size: 1.45rem; font-weight: 420; margin-top: 18px; letter-spacing: -.01em; }
.step__text { margin-top: 10px; color: var(--ink-2); font-size: .975rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.plan:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan--featured .plan__text, .plan--featured .label { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.plan--featured .btn { --b-bg: var(--paper); --b-fg: var(--ink); border-color: var(--paper); }
.plan--featured .btn:hover { --b-bg: var(--accent); --b-fg: var(--accent-ink); border-color: var(--accent); }
.plan__title { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; letter-spacing: -.015em; line-height: 1.1; margin-top: 12px; }
.plan__price { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; margin-top: 18px; color: var(--accent); }
.plan__price small { font-style: normal; font-family: var(--f-body); font-size: .8rem; color: inherit; opacity: .75; }
.plan__text { margin-top: 12px; color: var(--ink-2); font-size: .95rem; flex: 1; }
.plan .btn { margin-top: 26px; width: 100%; }
.note { margin-top: 24px; font-size: .9rem; color: var(--muted); max-width: 60em; }

/* ---------- Quotes ---------- */
.quotes { columns: 2; column-gap: 24px; }
.quote {
    break-inside: avoid;
    margin: 0 0 24px;
    padding: 30px 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}
.quote:first-child { background: var(--accent-soft); border-color: transparent; }
.quote__mark { font-family: var(--f-display); font-size: 3.5rem; line-height: .6; color: var(--accent); height: 22px; }
.quote blockquote { margin-top: 12px; font-family: var(--f-display); font-size: 1.3rem; font-weight: 360; line-height: 1.4; letter-spacing: -.005em; text-wrap: pretty; }
.quote:first-child blockquote { font-size: clamp(1.4rem, 2.3vw, 1.75rem); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-display); font-style: italic; font-size: 1rem; flex-shrink: 0; }
.quote__who { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.quote__role { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr-h) + 32px); }
.faq__head .label { display: block; margin-bottom: 18px; }
.faq__head .lead { margin-top: 18px; font-size: 1.05rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--f-display);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; transition: transform .35s var(--ease), background .2s, border-color .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] .faq__icon { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 46em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero .label { display: block; margin-bottom: 22px; }
.page-hero .lead { margin-top: 24px; }
.page-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: saturate(.92) contrast(1.02); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.about__text .h3 { margin-bottom: 28px; }
.about__cv { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.about__cv-note { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cap { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cap__n { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); }
.cap__title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 420; line-height: 1.15; margin-top: 18px; }
.cap__text { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.tools li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .9rem; font-weight: 500; }

/* Timeline */
.journey { border-top: 1px solid var(--ink); }
.journey__year { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.journey__y { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 340; line-height: 1; letter-spacing: -.03em; position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; }
.journey__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journey__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; }
.journey__item + .journey__item { border-top: 1px dashed var(--line); }
.journey__date { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding-top: 5px; }
.journey__title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 420; line-height: 1.2; }
.journey__text { margin-top: 6px; color: var(--ink-2); font-size: .975rem; }
.journey__item--work .journey__title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 10px; vertical-align: middle; }

/* ---------- Case study ---------- */
.case-hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 5vw, 56px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: clamp(32px, 5vw, 56px); transition: color .2s; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.crumb:hover svg { transform: translateX(-3px); }
.case-hero .lead { margin-top: 24px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(36px, 5vw, 56px); }
.fact { padding: 20px 20px 20px 0; min-width: 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin-top: 8px; font-weight: 500; overflow-wrap: anywhere; }
.fact dd a { color: var(--accent); }
.fact dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.case-shot { margin-top: clamp(8px, 2vw, 16px); }
.case-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; }
.case-body .prose p { font-size: 1.125rem; }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feat { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.feat:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.feat__n { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); }
.feat__title { font-family: var(--f-display); font-size: 1.4rem; font-weight: 420; line-height: 1.2; margin-top: 12px; }
.feat__text { margin-top: 8px; color: var(--ink-2); font-size: .975rem; }

.case-quote { max-width: 900px; }
.case-quote blockquote { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 340; line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.case-quote blockquote::before { content: "\201C"; color: var(--accent); }
.case-quote blockquote::after { content: "\201D"; color: var(--accent); }
.case-quote figcaption { margin-top: 24px; }

.next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding-block: clamp(48px, 7vw, 96px);
    border-top: 1px solid var(--line);
}
.next .label { display: block; margin-bottom: 16px; }
.next__title { font-family: var(--f-display); font-size: clamp(2.25rem, 6vw, 5rem); font-weight: 360; line-height: 1; letter-spacing: -.03em; transition: color .2s; }
.next:hover .next__title { color: var(--accent); }
.next__arrow { display: grid; place-items: center; width: clamp(56px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.next__arrow svg { width: 40%; height: 40%; }
.next:hover .next__arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.channels li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.channels .label { display: block; margin-bottom: 8px; }
.channels a, .channels span.v { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 400; letter-spacing: -.01em; overflow-wrap: anywhere; }
.channels a:hover { color: var(--accent); }
.channels .sub { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.channels a.sub.link { display: inline-flex; color: var(--ink); }

.form {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form__honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; }
.form__privacy { font-size: .85rem; color: var(--muted); max-width: 30em; }
.form__privacy a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.form__status[hidden] { display: none; }
.form__status--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ink); }
.form__status--err { background: var(--accent-soft); color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Legal / 404 ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px 64px; }
.legal__toc { position: sticky; top: calc(var(--hdr-h) + 32px); align-self: start; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--muted); }
.legal__toc a:hover { color: var(--accent); }
.legal section + section { margin-top: 44px; }
.legal h2 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 420; letter-spacing: -.01em; margin-bottom: 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.lost { min-height: 60vh; display: grid; align-content: center; padding-block: var(--section); }
.lost__code { font-family: var(--f-display); font-style: italic; font-size: clamp(6rem, 22vw, 16rem); line-height: .85; letter-spacing: -.05em; color: var(--accent); }

/* ---------- Footer ---------- */
.ftr { margin-top: 0; background: var(--ink); color: var(--paper); overflow: hidden; }
.ftr ::selection { background: var(--accent); color: var(--accent-ink); }
.ftr__cta { padding-top: clamp(72px, 11vw, 140px); padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.ftr__cta .label { color: color-mix(in srgb, var(--paper) 60%, transparent); display: inline-flex; align-items: center; gap: 10px; }
.ftr__title { font-family: var(--f-display); font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 340; line-height: 1; letter-spacing: -.035em; margin-top: 24px; max-width: 14ch; text-wrap: balance; }
.ftr__title em { font-style: italic; color: var(--accent); }
:lang(hi) .ftr__title { line-height: 1.2; letter-spacing: 0; }
.ftr__mail {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    margin-top: clamp(28px, 4vw, 48px);
    font-family: var(--f-display);
    font-size: clamp(1.35rem, 3.4vw, 2.6rem);
    font-weight: 360;
    letter-spacing: -.02em;
    border-bottom: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
    padding-bottom: 6px;
    overflow-wrap: anywhere;
    transition: color .2s, border-color .2s;
}
.ftr__mail svg { width: .8em; height: .8em; flex-shrink: 0; transition: transform .35s var(--ease); }
.ftr__mail:hover { color: var(--accent); border-color: var(--accent); }
.ftr__mail:hover svg { transform: translate(4px, -4px); }
.ftr__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ftr .btn { --b-bg: var(--paper); --b-fg: var(--ink); border-color: var(--paper); }
.ftr .btn:hover { --b-bg: var(--accent); --b-fg: var(--accent-ink); border-color: var(--accent); }
.ftr .btn--ghost { --b-bg: transparent; --b-fg: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.ftr .btn--ghost:hover { --b-bg: var(--paper); --b-fg: var(--ink); border-color: var(--paper); }

.ftr__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: clamp(48px, 6vw, 72px); }
.ftr__cols h2 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 55%, transparent); margin-bottom: 18px; }
.ftr__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr__cols a { color: color-mix(in srgb, var(--paper) 86%, transparent); transition: color .2s; overflow-wrap: anywhere; }
.ftr__cols a:hover { color: var(--accent); }
.ftr__cols .muted { color: color-mix(in srgb, var(--paper) 55%, transparent); font-size: .9rem; }

.ftr__mark {
    display: block;
    font-family: var(--f-display);
    font-weight: 330;
    font-size: clamp(3.5rem, 20.5vw, 22.5rem);
    line-height: .8;
    letter-spacing: -.055em;
    white-space: nowrap;
    color: color-mix(in srgb, var(--paper) 92%, transparent);
    margin-bottom: -.12em;
    user-select: none;
}
.ftr__mark em { font-style: italic; color: var(--accent); }

.ftr__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 22px;
    border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
    font-size: .85rem;
    color: color-mix(in srgb, var(--paper) 60%, transparent);
    position: relative;
    z-index: 1;
    background: var(--ink);
}
.ftr__bar nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.ftr__bar a:hover { color: var(--accent); }
.ftr__bar .clock { color: inherit; }
.ftr__top { display: inline-flex; align-items: center; gap: 6px; }
.ftr__top svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* ---------- Load-in motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise .8s var(--ease) both; }
    .rise-2 { animation-delay: .08s; }
    .rise-3 { animation-delay: .16s; }
    .rise-4 { animation-delay: .24s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .hdr__cta { display: none; }
}

@media (max-width: 1024px) {
    .nav, .hdr__tools .clock, .hdr__tools .seg, .hdr__tools .icon-btn { display: none; }
    .menu-btn { display: inline-flex; }
    .hdr__tools { margin-left: auto; }
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .latest { max-width: 420px; }
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
    .step { border-top: 1px solid var(--ink); padding-bottom: 28px; }
    .step:nth-child(3) { padding-left: 0; border-left: 0; }
    .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq, .case-body, .legal { grid-template-columns: minmax(0, 1fr); }
    .faq__head, .legal__toc { position: static; }
    .legal__toc { display: none; }
}

@media (max-width: 800px) {
    :root { --hdr-h: 64px; }
    body { font-size: 1rem; }
    .feature, .about, .contact { grid-template-columns: minmax(0, 1fr); }
    .feature:nth-child(even) .feature__media { order: 0; }
    .work-grid { grid-template-columns: minmax(0, 1fr); }
    .svc { grid-template-columns: 40px minmax(0, 1fr); }
    .svc__body { grid-column: 2; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .feats { grid-template-columns: minmax(0, 1fr); }
    .feat, .feat:nth-child(even) { padding: 24px 0; border-left: 0; }
    .quotes { columns: 1; }
    .journey__year { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .journey__y { position: static; }
    .journey__item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .portrait { max-width: 420px; }
    .sec-head { grid-template-columns: minmax(0, 1fr); }
    .frame__bar { height: 28px; }
}

@media (max-width: 560px) {
    .brand__name { display: none; }
    .plans, .caps, .steps, .ftr__cols, .form__grid { grid-template-columns: minmax(0, 1fr); }
    .step, .step + .step { padding-left: 0; border-left: 0; }
    .hero__ctas .btn { width: 100%; }
    .faq__a { padding-right: 0; }
    .next { grid-template-columns: minmax(0, 1fr); }
    .next__arrow { display: none; }
    .ftr__bar { flex-direction: column; align-items: flex-start; }
}

@media print {
    .hdr, .ftr, .sheet { display: none !important; }
    body::before { display: none; }
}
