/* ============================================================
   Techssup — Editorial software studio
   Light, mature, fresh. No template look.
   ============================================================ */

:root {
    --bg:        #F6F2EC;   /* warm cream */
    --bg-alt:    #EFE9DF;   /* slightly deeper cream */
    --ink:       #161513;   /* near-black */
    --ink-soft:  #4D4944;   /* muted body */
    --ink-mute:  #8B857C;   /* secondary */
    --line:      #DDD5C7;   /* hairline */
    --accent:    #D9542B;   /* warm coral / rust */
    --accent-2:  #2E4B3C;   /* deep forest (subtle) */
    --paper:     #FFFDF8;   /* near-white card */
    --dark:      #1A1916;   /* contact section */
    --radius:    18px;
    --pad:       clamp(20px, 4vw, 60px);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: 'Fraunces', serif; font-weight: 400; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* Visible keyboard focus, hidden for mouse users */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.contact-link:focus-visible {
    outline-color: var(--accent);
    outline-offset: 4px;
}

/* Skip-to-content for keyboard / screen-reader users */
.skip-link {
    position: absolute;
    left: 16px;
    top: -200px;
    z-index: 1000;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    transition: top .25s ease;
}
.skip-link:focus { top: 16px; }

/* Subtle paper grain across the whole page */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.07  0 0 0 0 0.07  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===================== NAV ===================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--pad);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.brand-name.big { font-size: 64px; line-height: 1; letter-spacing: -0.04em; }

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-soft);
}
.nav-links a {
    position: relative;
    transition: color .2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--ink);
    transition: width .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 14px;
    transition: transform .25s ease, background .25s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta svg { transition: transform .25s ease; }
.nav-cta:hover svg { transform: translateX(3px); }

/* Hamburger button — hidden on desktop */
.nav-burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    z-index: 200;
    transition: background .25s ease, border-color .25s ease;
}
.nav-burger span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform .35s cubic-bezier(.7,.1,.2,1), top .35s ease, opacity .25s ease;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 24px; }
.nav-burger.open { background: var(--ink); border-color: var(--ink); }
.nav-burger.open span { background: var(--bg); top: 21px; }
.nav-burger.open span:nth-child(1) { transform: translateX(-50%) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 760px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: inline-flex; }
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--bg);
    padding: 100px var(--pad) 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform .55s cubic-bezier(.7,.1,.2,1);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu[aria-hidden="true"] { visibility: hidden; transition-delay: .55s, 0s; }
.mobile-menu.open[aria-hidden="false"] { visibility: visible; transition-delay: 0s; }

.mm-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-soft);
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--paper);
    align-self: flex-start;
}
.mm-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}
.mm-links a {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: color .2s, transform .2s;
}
.mm-links a:hover { color: var(--accent); transform: translateX(4px); }
.mm-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
    width: 24px;
}
.mm-cta { align-self: flex-start; }
.mm-foot {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: 'Fraunces', serif;
    font-size: 18px;
    color: var(--ink);
    font-style: italic;
}

body.menu-open { overflow: hidden; }

/* ===================== HERO ===================== */
.hero {
    padding: clamp(80px, 14vh, 160px) var(--pad) clamp(80px, 12vh, 140px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    --mx: 50%;
    --my: 40%;
}

/* Ambient dot field — spotlight follows cursor */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(22,21,19,0.18) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle 460px at var(--mx) var(--my),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.65) 30%,
        rgba(0,0,0,0.15) 60%,
        transparent 80%);
    mask-image: radial-gradient(circle 460px at var(--mx) var(--my),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.65) 30%,
        rgba(0,0,0,0.15) 60%,
        transparent 80%);
    opacity: 0.85;
    animation: ambientPulse 6s ease-in-out infinite;
}
@keyframes ambientPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 0.95; }
}

/* Decorative warm glow behind the title */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(217,84,43,0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
}

.hero > * { position: relative; z-index: 2; }
.hero-bg { z-index: 1; }


/* Editorial mark / rotating seal in hero corner */
.hero-mark {
    position: absolute;
    top: clamp(40px, 8vh, 80px);
    right: var(--pad);
    width: 140px;
    height: 140px;
    color: var(--ink);
    z-index: 5;
    pointer-events: none;
}
.seal {
    width: 100%;
    height: 100%;
    animation: rotate 28s linear infinite;
}
.seal-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    fill: var(--ink);
    letter-spacing: 0.18em;
}
.seal-dot { animation: pulse-fill 2.4s ease-in-out infinite; }
.seal-cross { transform-origin: center; }
@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes pulse-fill {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.hero-edition {
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}
.edition-line {
    display: inline-block;
    width: 14px;
    height: 1px;
    background: var(--accent);
}

@media (max-width: 900px) {
    .hero-mark { width: 110px; height: 110px; top: 32px; }
    .hero-edition { top: 44px; font-size: 8px; }
}
@media (max-width: 540px) {
    .hero-mark { display: none; }
}

/* Cinematic entrance for hero accents */
.hero-foot,
.hero-stats .stat,
.hero-mark {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1s cubic-bezier(.7,.05,.2,1) forwards;
}
.hero-mark       { animation-delay: 0.1s;  transform: translateY(0) scale(0.85); }
.hero-foot       { animation-delay: 0.55s; }
.hero-stats .stat:nth-child(1) { animation-delay: 0.7s; }
.hero-stats .stat:nth-child(2) { animation-delay: 0.8s; }
.hero-stats .stat:nth-child(3) { animation-delay: 0.9s; }
@keyframes heroIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(217,84,43,.18);
    animation: pulse 2.4s infinite ease-out;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(217,84,43,.4); }
    70%  { box-shadow: 0 0 0 8px rgba(217,84,43,0); }
    100% { box-shadow: 0 0 0 0 rgba(217,84,43,0); }
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(48px, 10vw, 184px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: var(--ink);
    margin-bottom: 60px;
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title .line > * {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: lineRise 1.1s cubic-bezier(.7,.05,.2,1) forwards;
}
.hero-title .line:nth-child(1) > * { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) > * { animation-delay: 0.32s; }
.hero-title .line:nth-child(3) > * { animation-delay: 0.49s; }

.hero-title em {
    font-style: italic;
    font-family: 'Fraunces', serif;
    font-weight: 400;
}
.hero-title .accent {
    color: var(--accent);
    font-style: italic;
    position: relative;
}

@keyframes lineRise {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Word rotator inside the title */
.line-rotor { line-height: 1.1; }
.rotor {
    display: inline-block;
    overflow: hidden;
    height: 1.25em;
    vertical-align: top;
    position: relative;
    margin-bottom: -0.25em;
}
.rotor-track {
    display: flex;
    flex-direction: column;
    animation: rotorScroll 18s cubic-bezier(.7,.05,.2,1) infinite;
}
.rotor em {
    display: block;
    height: 1.25em;
    line-height: 1;
    color: var(--ink);
    font-style: italic;
    font-weight: 400;
    white-space: nowrap;
}
@keyframes rotorScroll {
    0%, 16%   { transform: translateY(0); }
    20%, 36%  { transform: translateY(-1.25em); }
    40%, 56%  { transform: translateY(-2.5em); }
    60%, 76%  { transform: translateY(-3.75em); }
    80%, 96%  { transform: translateY(-5em); }
    100%      { transform: translateY(-6.25em); }
}
/* Accent underline that re-draws under each rotor word — sits just below the baseline */
.rotor::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0.3em;
    height: 0.06em;
    background: var(--accent);
    transform-origin: left center;
    animation: rotorUnderline 18s cubic-bezier(.7,.05,.2,1) infinite;
}
@keyframes rotorUnderline {
    0%, 1%      { transform: scaleX(0); transform-origin: left; }
    6%, 18%     { transform: scaleX(1); transform-origin: left; }
    19%         { transform: scaleX(1); transform-origin: right; }
    20%, 21%    { transform: scaleX(0); transform-origin: right; }
    22%         { transform: scaleX(0); transform-origin: left; }
    26%, 38%    { transform: scaleX(1); transform-origin: left; }
    39%         { transform: scaleX(1); transform-origin: right; }
    40%, 41%    { transform: scaleX(0); transform-origin: right; }
    42%         { transform: scaleX(0); transform-origin: left; }
    46%, 58%    { transform: scaleX(1); transform-origin: left; }
    59%         { transform: scaleX(1); transform-origin: right; }
    60%, 61%    { transform: scaleX(0); transform-origin: right; }
    62%         { transform: scaleX(0); transform-origin: left; }
    66%, 78%    { transform: scaleX(1); transform-origin: left; }
    79%         { transform: scaleX(1); transform-origin: right; }
    80%, 81%    { transform: scaleX(0); transform-origin: right; }
    82%         { transform: scaleX(0); transform-origin: left; }
    86%, 98%    { transform: scaleX(1); transform-origin: left; }
    99%         { transform: scaleX(1); transform-origin: right; }
    100%        { transform: scaleX(0); transform-origin: right; }
}

.hero-foot {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: end;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.hero-lede {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--ink-soft);
    max-width: 56ch;
    line-height: 1.55;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

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

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-light {
    background: var(--bg);
    color: var(--ink);
}
.btn-light:hover { background: var(--accent); color: var(--paper); }
.btn.big { padding: 22px 36px; font-size: 17px; }

.hero-stats {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.stat-num {
    font-family: 'Fraunces', serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--ink-mute); font-size: 14px; }


@media (max-width: 800px) {
    .hero-foot { grid-template-columns: 1fr; gap: 32px; }
    .hero-actions { justify-content: flex-start; }
    .hero-stats { grid-template-columns: 1fr; gap: 28px; margin-top: 60px; }
}

/* ===================== MARQUEE ===================== */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    background: var(--bg-alt);
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    animation: scroll 50s linear infinite;
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track .sep { color: var(--accent); font-size: 0.6em; }
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===================== SECTION HEADS ===================== */
.eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.eyebrow.light { color: var(--accent); }

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(36px, 5.5vw, 78px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 14ch;
}
.section-sub {
    color: var(--ink-soft);
    font-size: clamp(15px, 1.2vw, 17px);
    max-width: 56ch;
}

.section-head { margin-bottom: 64px; max-width: 700px; }

/* ===================== SERVICES (BENTO) ===================== */
.services {
    padding: clamp(80px, 12vw, 140px) var(--pad);
    border-top: 1px solid var(--line);
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(217,84,43,.08), transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card:hover::before { opacity: 1; }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.card-icon {
    width: 26px;
    height: 26px;
    color: var(--ink-soft);
    transition: color .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-icon { color: var(--accent); transform: rotate(-8deg) scale(1.05); }

.card-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 0.05em;
}
.card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--ink);
}
.card p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

.card-lg {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--ink) 0%, #2a2723 100%);
    color: var(--bg);
    border-color: var(--ink);
    min-height: 380px;
    justify-content: space-between;
}
.card-lg::before { display: none; }
.card-lg .card-num { color: rgba(246,242,236,.5); }
.card-lg .card-icon { color: rgba(246,242,236,.65); }
.card-lg h3 { color: var(--bg); font-size: clamp(28px, 3vw, 44px); }
.card-lg p { color: rgba(246,242,236,.75); max-width: 36ch; }
.card-lg:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-lg:hover .card-icon { color: var(--accent); }

.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.card-tags li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 6px 12px;
    border: 1px solid rgba(246,242,236,.2);
    border-radius: 100px;
    color: rgba(246,242,236,.85);
    letter-spacing: 0.04em;
}

.card-accent {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}
.card-accent::before { display: none; }
.card-accent .card-num { color: rgba(255,253,248,.6); }
.card-accent .card-icon { color: rgba(255,253,248,.85); }
.card-accent:hover .card-icon { color: var(--paper); }
.card-accent h3 { color: var(--paper); }
.card-accent p { color: rgba(255,253,248,.88); }

@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .card-lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .card-lg { grid-column: span 1; }
}

/* ===================== CAPABILITIES ===================== */
.capabilities {
    padding: clamp(80px, 12vw, 140px) var(--pad);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.cap-left { position: sticky; top: 100px; }
.cap-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
}
.cap-group {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.cap-group h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
}
.cap-group p {
    font-family: 'Fraunces', serif;
    font-size: clamp(18px, 1.5vw, 22px);
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

@media (max-width: 900px) {
    .capabilities { grid-template-columns: 1fr; gap: 50px; }
    .cap-left { position: static; }
    .cap-right { grid-template-columns: 1fr; gap: 30px; }
}

/* ===================== APPROACH ===================== */
.approach {
    padding: clamp(80px, 12vw, 140px) var(--pad);
    border-top: 1px solid var(--line);
}

.phases {
    list-style: none;
    counter-reset: phase;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.phases li {
    display: grid;
    grid-template-columns: 100px 1fr 2fr;
    gap: 40px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    align-items: baseline;
    transition: padding .3s ease;
}
.phases li:last-child { border-bottom: 1px solid var(--line); }
.phases li:hover { padding-left: 16px; }

.phase-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
}
.phases h3 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 44px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ink);
}
.phases p {
    color: var(--ink-soft);
    font-size: clamp(15px, 1.15vw, 17px);
    max-width: 50ch;
}

@media (max-width: 760px) {
    .phases li {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 28px 0;
    }
    .phases li:hover { padding-left: 0; }
}

/* ===================== MIGRATION ===================== */
.migration {
    padding: 0 var(--pad) clamp(80px, 12vw, 140px);
}
.mig-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}
.mig-card::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,84,43,.18), transparent 70%);
    pointer-events: none;
}
.mig-card h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(32px, 4.5vw, 64px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    max-width: 16ch;
}
.mig-card > p {
    color: var(--ink-soft);
    font-size: clamp(15px, 1.2vw, 17px);
    max-width: 60ch;
    margin-bottom: 56px;
}

.mig-points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}
.mig-points > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mig-points strong {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    color: var(--ink);
    font-style: italic;
}
.mig-points span {
    color: var(--ink-mute);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .mig-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .mig-points { grid-template-columns: 1fr; }
}

/* ===================== CONTACT ===================== */
.contact {
    background: var(--dark);
    color: var(--bg);
    padding: clamp(100px, 14vw, 180px) var(--pad);
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    bottom: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,84,43,.18), transparent 60%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(44px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    color: var(--bg);
}
.contact-title em { color: var(--accent); }
.contact-sub {
    color: rgba(246,242,236,.7);
    font-size: clamp(16px, 1.3vw, 19px);
    max-width: 55ch;
    margin-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(246,242,236,.18);
    margin-bottom: 80px;
}
.contact-link {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 24px;
    border-bottom: 1px solid rgba(246,242,236,.18);
    border-right: 1px solid rgba(246,242,236,.18);
    transition: background .3s ease, padding .3s ease;
}
.contact-link:last-child { border-right: none; }
.contact-link:hover {
    background: rgba(217,84,43,.08);
    padding-left: 32px;
}
.cl-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(246,242,236,.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cl-value {
    font-family: 'Fraunces', serif;
    font-size: clamp(18px, 1.6vw, 24px);
    color: var(--bg);
    letter-spacing: -0.01em;
}

@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-link { border-right: none; }
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--bg);
    padding: 80px var(--pad) 32px;
    border-top: 1px solid var(--line);
}
.foot-top {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}
.foot-brand p {
    color: var(--ink-mute);
    margin-top: 16px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 18px;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.foot-cols h5 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}
.foot-cols a {
    display: block;
    color: var(--ink-soft);
    font-size: 15px;
    padding: 4px 0;
    transition: color .2s, transform .2s;
}
.foot-cols a:hover { color: var(--ink); transform: translateX(3px); }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-mute);
}
.foot-tag {
    font-family: 'Fraunces', serif;
    font-style: italic;
}

@media (max-width: 760px) {
    .foot-top { grid-template-columns: 1fr; gap: 40px; }
    .brand-name.big { font-size: 44px; }
    .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE POLISH — fits cleanly down to 320px
   ============================================================ */

/* Tablet portrait & large phones */
@media (max-width: 700px) {
    :root { --pad: 22px; }

    .hero { padding: clamp(40px, 8vh, 80px) var(--pad) clamp(60px, 10vh, 100px); }
    .hero-meta { margin-bottom: 36px; font-size: 12px; padding: 5px 12px; }
    .hero-title { font-size: clamp(40px, 11vw, 72px); margin-bottom: 40px; }
    .hero-foot { padding-top: 24px; gap: 28px; }
    .hero-stats { margin-top: 56px; gap: 24px; padding-top: 28px; }
    .stat-num { font-size: clamp(28px, 6vw, 38px); }

    .marquee { padding: 18px 0; }
    .marquee-track { gap: 28px; font-size: clamp(22px, 6vw, 32px); }

    .services,
    .capabilities,
    .approach { padding: clamp(56px, 12vw, 90px) var(--pad); }
    .migration { padding: 0 var(--pad) clamp(56px, 12vw, 90px); }

    .section-head { margin-bottom: 40px; }
    .section-title { font-size: clamp(30px, 8.5vw, 48px); }
    .section-sub { font-size: 15px; }

    .card { padding: 28px 24px; min-height: 200px; gap: 14px; }
    .card-lg { min-height: 280px; padding: 32px 24px; }
    .card h3 { font-size: clamp(20px, 5.5vw, 26px); }
    .card-lg h3 { font-size: clamp(24px, 6.5vw, 32px); }
    .card p { font-size: 14.5px; }
    .card-icon { width: 22px; height: 22px; }

    .phases li { padding: 24px 0; gap: 6px; }
    .phases h3 { font-size: clamp(24px, 6.5vw, 34px); }

    .mig-card { padding: 36px 24px; }
    .mig-card h2 { font-size: clamp(28px, 8vw, 44px); margin-bottom: 20px; }
    .mig-card > p { margin-bottom: 36px; }

    .contact { padding: clamp(70px, 14vw, 120px) var(--pad); }
    .contact-title { font-size: clamp(38px, 11vw, 64px); margin-bottom: 24px; }
    .contact-sub { font-size: 16px; margin-bottom: 56px; }
    .contact-link { padding: 24px 18px; gap: 10px; }
    .contact-link:hover { padding-left: 24px; }
    .cl-value { font-size: 18px; word-break: break-word; }

    .footer { padding: 60px var(--pad) 28px; }
    .foot-top { gap: 36px; margin-bottom: 56px; }
    .brand-name.big { font-size: clamp(40px, 10vw, 56px); }
    .foot-brand p { font-size: 16px; }
    .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .foot-bottom { font-size: 12px; }

    .btn { padding: 14px 22px; font-size: 14px; }
    .btn.big { padding: 18px 28px; font-size: 15px; }

    .mobile-menu { padding: 90px var(--pad) 32px; gap: 28px; }
    .mm-links a { padding: 18px 0; gap: 16px; }
}

/* Standard phones */
@media (max-width: 480px) {
    :root { --pad: 20px; }

    .nav { padding: 16px var(--pad); }
    .brand-name { font-size: 20px; }

    .hero-title { font-size: clamp(36px, 11.5vw, 56px); letter-spacing: -0.03em; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; justify-content: center; }
    .hero-stats { grid-template-columns: 1fr; }

    .bento { gap: 10px; }
    .card { padding: 24px 22px; min-height: 180px; }
    .card-tags li { font-size: 10px; padding: 5px 10px; }

    .mig-card { padding: 32px 22px; border-radius: 14px; }
    .mig-card::after { width: 280px; height: 280px; top: -80px; right: -80px; }
    .mig-points { gap: 18px; padding-top: 22px; }

    .contact-grid { margin-bottom: 56px; }
    .contact-link { padding: 22px 16px; }
    .cl-value { font-size: 17px; }

    .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Tiny phones (iPhone SE 1st-gen, narrow Androids) */
@media (max-width: 380px) {
    :root { --pad: 18px; }

    .hero-title { font-size: clamp(32px, 12vw, 44px); }
    .hero-meta { font-size: 11px; padding: 4px 10px; }

    .section-title { font-size: clamp(26px, 9vw, 38px); }

    .card { padding: 22px 18px; }
    .card-lg { padding: 26px 20px; }

    .foot-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* Landscape phones — keep hero compact */
@media (max-height: 480px) and (orientation: landscape) {
    .hero { padding-top: 32px; padding-bottom: 56px; }
    .hero-stats { margin-top: 40px; }
    .mobile-menu { padding-top: 70px; }
}
