/* ==========================================================================
   ITANIC — Built below the surface
   Values come from .claude/MD/12-design-tokens.md. Do not invent new ones:
   if a value is missing here, add it to the token file first.
   ========================================================================== */

/* Futura PT echoes the geometry of the wordmark. It is only used for labels,
   product names and step numbers, so it ships as a subset (Latin + Estonian
   diacritics + digits + basic punctuation): 6 KB instead of the 110 KB OTF.
   Regenerate with fonttools if the character set ever needs to grow. */
@font-face {
    font-family: 'ITANIC Display';
    src: url('../../fonts/FuturaPTBook.woff2') format('woff2'),
         url('../../fonts/FuturaPTBook.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* -- background ------------------------------------------------------ */
    --bg:            #07111B;
    --bg-2:          #0D1B2A;
    --surface:       #132536;
    --surface-hi:    #1A3044;

    /* -- text ------------------------------------------------------------ */
    --text:          #FFFFFF;
    --text-2:        #B9C6D2;
    --muted:         #7D91A3;
    --disabled:      #5C6D7C;

    /* -- accent ---------------------------------------------------------- */
    --ice:           #4DB6FF;
    --blue:          #1E90FF;
    --success:       #31C46C;
    --error:         #E5484D;

    /* -- borders --------------------------------------------------------- */
    --line:          rgba(255, 255, 255, .08);
    --line-2:        rgba(255, 255, 255, .12);
    --line-3:        rgba(255, 255, 255, .18);

    /* -- shadow & glow --------------------------------------------------- */
    --shadow-sm:     0 4px 12px rgba(0, 0, 0, .18);
    --shadow-md:     0 12px 30px rgba(0, 0, 0, .22);
    --shadow-lg:     0 24px 60px rgba(0, 0, 0, .28);
    --glow:          0 0 32px rgba(77, 182, 255, .18);
    --glow-lg:       0 0 80px rgba(77, 182, 255, .12);

    /* -- radius ---------------------------------------------------------- */
    --r-sm:          8px;
    --r-md:          16px;
    --r-lg:          24px;
    --r-hero:        32px;

    /* -- layout ---------------------------------------------------------- */
    --reading:       720px;
    --content:       1280px;
    --gutter:        24px;

    /* -- motion ---------------------------------------------------------- */
    --fast:          150ms;
    --normal:        250ms;
    --slow:          400ms;
    --ease:          cubic-bezier(.22, .61, .36, 1);

    /* -- type ------------------------------------------------------------ */
    --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                     'Helvetica Neue', Arial, sans-serif;
    --font-display:  'ITANIC Display', 'Futura', 'Century Gothic', var(--font);

    /* -- z-index --------------------------------------------------------- */
    --z-nav:         200;
}

/* ==========================================================================
   base
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.it-no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.02em;
}

h1 { font-size: 64px; }
h2 { font-size: 48px; }
h3 { font-size: 24px; letter-spacing: -.01em; }
h4 { font-size: 16px; }

p  { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--ice);
    text-decoration: none;
    transition: color var(--fast) var(--ease);
}
a:hover { color: #8CCEFF; }

img, svg { max-width: 100%; }
img { height: auto; border: 0; }

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

:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

::selection { background: rgba(77, 182, 255, .28); color: #fff; }

.it-skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 1000;
    padding: 12px 24px;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--r-md);
}
.it-skip:focus { left: 24px; }

/* ==========================================================================
   layout primitives
   ========================================================================== */

.it-container {
    width: 100%;
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.it-section {
    position: relative;
    padding: 120px 0;
}

.it-section--raised { background: var(--bg-2); }

/* the seam between sections should never read as a hard edge */
.it-section--raised::before,
.it-section--raised::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
}
.it-section--raised::before { top: 0;    background: linear-gradient(to bottom, var(--bg), transparent); }
.it-section--raised::after  { bottom: 0; background: linear-gradient(to top,    var(--bg), transparent); }

.it-section-head { max-width: var(--reading); margin-bottom: 64px; }

.it-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.it-section-head h2 { margin-bottom: 24px; }

.it-section-head__lead {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

.it-label {
    margin: 0 0 24px;
    color: var(--ice);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
}

/* ==========================================================================
   buttons — primary, ghost. Nothing else.
   ========================================================================== */

.it-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--fast) var(--ease),
                background-color var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                box-shadow var(--fast) var(--ease);
}

.it-btn--lg    { height: 56px; padding: 0 32px; }
.it-btn--block { display: flex; width: 100%; }

.it-btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.it-btn--primary:hover {
    background: #2E9BFF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow);
}
.it-btn--primary:active { transform: translateY(0); }

.it-btn--ghost {
    background: transparent;
    border-color: var(--line-2);
    color: var(--text);
}
.it-btn--ghost:hover {
    border-color: var(--line-3);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    transform: translateY(-2px);
}

.it-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ==========================================================================
   navigation
   ========================================================================== */

.it-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--normal) var(--ease),
                border-color var(--normal) var(--ease);
}

.it-nav.is-stuck {
    background: rgba(7, 17, 27, .82);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.it-nav.is-open {
    background: var(--bg);
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.it-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 80px;
}

.it-nav__logo { display: flex; align-items: center; flex: none; margin-top: 12px; }
.it-nav__logo img { width: 132px; height: auto; display: block; }

.it-nav__menu ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.it-nav__menu a {
    position: relative;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 400;
}
.it-nav__menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--ice);
    opacity: 0;
    transform: scaleX(.6);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.it-nav__menu a:hover { color: var(--text); }
.it-nav__menu a:hover::after { opacity: 1; transform: scaleX(1); }

.it-nav__actions { display: flex; align-items: center; gap: 24px; flex: none; }
.it-nav__mobile-actions { display: none; }

.it-nav__lang {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.it-nav__lang:hover { color: var(--text); }

.it-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.it-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    margin: 5px auto;
    background: var(--text);
    transition: transform var(--normal) var(--ease);
}
.it-nav.is-open .it-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.it-nav.is-open .it-burger span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ==========================================================================
   01 · iceberg scroll story + hero
   ========================================================================== */

.it-iceberg-story {
    --story-progress: 0;
    --story-curtain: 1;
    position: relative;
    isolation: isolate;
    overflow: clip;
    background:
        radial-gradient(ellipse 58% 42% at 73% 30%, rgba(77, 182, 255, .055), transparent 72%),
        linear-gradient(to bottom, var(--bg) 0%, #071522 40%, #081522 54%, #07111b 100%);
}

.it-iceberg-story__visual {
    position: sticky;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    margin-bottom: -100vh;
    margin-bottom: -100svh;
    overflow: hidden;
    pointer-events: none;
}

.it-iceberg-story__sticky {
    position: relative;
    width: 100%;
    height: 100%;
}

.it-iceberg-story__picture {
    position: absolute;
    inset: 0;
}

.it-iceberg-story__picture img {
    position: absolute;
    top: 15svh;
    right: clamp(72px, 6vw, 160px);
    display: block;
    width: clamp(1500px, 68vw, 1672px);
    max-width: none;
    height: auto;
    opacity: calc(.78 + (var(--story-progress) * .18));
    mix-blend-mode: screen;
    filter: saturate(.86) contrast(1.06) brightness(.86);
    transform: translate3d(0, calc(var(--story-progress) * -14svh), 0) scale(1.015);
    transform-origin: 72% 34%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .24) 22%, #000 44%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .2) 7%, #000 22%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .24) 22%, #000 44%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .2) 7%, #000 22%, #000 82%, transparent 100%);
    mask-composite: intersect;
    will-change: transform;
}

.it-iceberg-story__curtain {
    position: absolute;
    top: 36svh;
    right: 0;
    bottom: 0;
    left: 38%;
    background: linear-gradient(to bottom, transparent 0%, rgba(7, 17, 27, .04) 22%, rgba(7, 17, 27, .18) 44%, rgba(7, 17, 27, .5) 72%, rgba(8, 21, 34, .78) 100%);
    opacity: var(--story-curtain);
    transition: opacity 80ms linear;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
    mask-image: linear-gradient(to right, transparent, #000 18%);
    will-change: opacity;
}

.it-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(760px, 100svh, 960px);
    padding: 144px 0 112px;
    z-index: 2;
    background: transparent;
    overflow: hidden;
}

.it-hero::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 21, 34, .97) 0%, rgba(7, 19, 31, .86) 36%, rgba(7, 17, 27, .36) 64%, rgba(7, 17, 27, .08) 100%),
        linear-gradient(to bottom, transparent 58%, rgba(8, 21, 34, .1) 70%, rgba(8, 21, 34, .26) 88%, rgba(8, 21, 34, .38) 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, .72) 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, .72) 84%, transparent 100%);
    pointer-events: none;
}

.it-hero__grid {
    position: static;
    display: block;
}

.it-hero__content { position: relative; max-width: 620px; z-index: 3; }

.it-hero__title {
    margin-bottom: 32px;
    font-size: 68px;
    font-weight: 600;
    line-height: 1.08;
}

.it-hero__title-accent {
    display: inline-block;
    color: var(--muted);
    font-size: .82em;
    font-weight: 400;
}

.it-hero__lead {
    max-width: 560px;
    margin-bottom: 40px;
    color: var(--text-2);
    font-size: 20px;
    line-height: 1.6;
}

.it-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.it-hero__trust {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}
.it-hero__trust::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(49, 196, 108, .14);
    flex: none;
}

.it-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: block;
    width: 24px;
    height: 48px;
}
.it-scroll-hint__line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--line-3));
    overflow: hidden;
}
.it-scroll-hint__line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 1px;
    height: 16px;
    background: var(--ice);
    animation: it-trickle 2.6s var(--ease) infinite;
}

@keyframes it-trickle {
    0%        { transform: translateY(-16px); opacity: 0; }
    30%, 70%  { opacity: 1; }
    100%      { transform: translateY(48px); opacity: 0; }
}

/* ========================================================================== 
   02 · the foundation — one continuous above/below-surface story
   ========================================================================== */

.it-foundation {
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-top: -1px;
    padding-top: 136px;
    background: transparent;
}

.it-foundation::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 21, 34, .97) 0%, rgba(7, 19, 31, .86) 36%, rgba(7, 17, 27, .36) 64%, rgba(7, 17, 27, .08) 100%),
        linear-gradient(to bottom, rgba(8, 21, 34, .38) 0%, rgba(7, 19, 31, .46) 42%, rgba(7, 17, 27, .82) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .45) 64px, #000 168px);
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .45) 64px, #000 168px);
    pointer-events: none;
}

.it-foundation > .it-container { position: relative; z-index: 1; }

.it-foundation .it-section-head { margin-bottom: 80px; }

.it-foundation__stage {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
}

.it-foundation__above {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: end;
    gap: 72px;
    padding: 0 32px 44px;
}

.it-foundation__measure strong {
    display: block;
    color: rgba(255, 255, 255, .94);
    font-family: var(--font-display);
    font-size: 68px;
    font-weight: 400;
    line-height: .86;
    letter-spacing: -.04em;
}

.it-foundation__measure span {
    display: block;
    max-width: 210px;
    margin-top: 17px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.it-foundation__visible {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.it-foundation__visible li {
    min-height: 62px;
    padding: 19px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .018);
    color: var(--text);
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.it-foundation__waterline {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 182, 255, .22) 8%, rgba(156, 218, 255, .92) 42%, rgba(77, 182, 255, .2) 88%, transparent);
    box-shadow: 0 0 30px rgba(77, 182, 255, .16);
}

.it-foundation__waterline::after {
    content: '';
    position: absolute;
    inset: -1px 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .75) 48%, transparent 54%);
    transform: translateX(-100%);
    animation: it-water-scan 7s var(--ease) infinite;
}

.it-foundation__waterline span {
    position: absolute;
    top: 17px;
    left: 32px;
    color: rgba(156, 218, 255, .78);
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.it-foundation__waterline i {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 54px;
    background: linear-gradient(to bottom, rgba(77, 182, 255, .5), transparent);
    animation: it-depth-drop 3.6s var(--ease) infinite;
}

.it-foundation__below {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr);
    gap: 88px;
    padding: 88px 32px 32px;
}

.it-foundation__story { padding-top: 4px; }

.it-foundation__measure--below { margin-bottom: 64px; }
.it-foundation__measure--below strong {
    color: rgba(77, 182, 255, .56);
    font-size: 112px;
}

.it-foundation__story .it-label { margin-bottom: 20px; }
.it-foundation__story h3 {
    max-width: 430px;
    margin-bottom: 22px;
    font-size: 34px;
}
.it-foundation__story > p:not(.it-label) {
    max-width: 480px;
    color: var(--muted);
    font-size: 16px;
}
.it-foundation__story .it-ticks { margin-top: 32px; }

.it-foundation__network {
    position: relative;
    min-height: 520px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 100%, rgba(77, 182, 255, .09), transparent 58%),
        rgba(9, 24, 37, .5);
    background-size: 32px 32px, 32px 32px, auto, auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 30px 90px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.it-foundation__network-head {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .2em;
}

.it-foundation__live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
}
.it-foundation__live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(49, 196, 108, .09);
    animation: it-live-pulse 2.4s ease-in-out infinite;
}

.it-foundation__flow {
    position: absolute;
    inset: 56px 24px 72px;
    width: calc(100% - 48px);
    height: calc(100% - 128px);
    stroke: rgba(77, 182, 255, .28);
    stroke-width: 1;
    stroke-dasharray: 5 9;
    vector-effect: non-scaling-stroke;
    animation: it-system-flow 16s linear infinite;
}

.it-foundation__systems {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 44px;
    margin-top: 44px;
}

.it-foundation__systems li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;
    background: rgba(7, 17, 27, .78);
    color: var(--text-2);
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    animation: it-system-breathe 5.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -.62s);
}

.it-foundation__systems b {
    color: var(--success);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: .14em;
}

.it-foundation__core {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    min-height: 64px;
    padding: 12px 18px;
    border: 1px solid rgba(77, 182, 255, .28);
    border-radius: var(--r-sm);
    background: rgba(77, 182, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 42px rgba(77, 182, 255, .09);
}

.it-foundation__core span {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: .18em;
}
.it-foundation__core small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

@keyframes it-water-scan {
    0%, 22% { transform: translateX(-100%); opacity: 0; }
    36% { opacity: .75; }
    62%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes it-depth-drop {
    0%, 30% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    52% { transform: scaleY(1); opacity: .8; }
    78%, 100% { transform: translateY(34px) scaleY(.25); opacity: 0; }
}
@keyframes it-system-flow { to { stroke-dashoffset: -140; } }
@keyframes it-live-pulse {
    0%, 100% { opacity: .55; box-shadow: 0 0 0 3px rgba(49, 196, 108, .06); }
    50% { opacity: 1; box-shadow: 0 0 0 7px rgba(49, 196, 108, .12); }
}
@keyframes it-system-breathe {
    0%, 100% { border-color: rgba(255, 255, 255, .07); }
    50% { border-color: rgba(77, 182, 255, .17); }
}

/* -- tick list ----------------------------------------------------------- */

.it-ticks li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-2);
    line-height: 1.5;
}
.it-ticks li:last-child { margin-bottom: 0; }

.it-ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .35em;
    width: 14px;
    height: 8px;
    border-left: 1.5px solid var(--ice);
    border-bottom: 1.5px solid var(--ice);
    transform: rotate(-45deg);
}

.it-ticks--sm li { margin-bottom: 12px; font-size: 16px; }

/* ==========================================================================
   04 · products
   ========================================================================== */

.it-card {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                box-shadow var(--fast) var(--ease);
}

.it-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-3);
    box-shadow: var(--shadow-md), var(--glow);
}

.it-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* All three plans fit side by side on desktop, so the swipe affordance below
   is mobile-only. See the @media block at the end of the file. */
.it-products-wrap { position: relative; }
.it-products-hint { display: none; }

#products { padding: 96px 0; }

.it-product { display: flex; flex-direction: column; }

.it-product--primary {
    position: relative;
    border-color: rgba(77, 182, 255, .22);
    background: linear-gradient(to bottom, rgba(77, 182, 255, .07), var(--surface) 28%);
    box-shadow: var(--shadow-md);
}
.it-product--primary::before {
    content: '';
    position: absolute;
    left: 40px;
    right: 40px;
    top: -1px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ice), transparent);
    opacity: .72;
}

.it-product__badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 7px 10px;
    border: 1px solid rgba(77, 182, 255, .2);
    border-radius: 999px;
    background: rgba(77, 182, 255, .08);
    color: var(--ice);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.it-product__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 32px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--surface-hi);
}
.it-product__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--ice);
    fill: none;
}

.it-product h3 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.it-product__position {
    margin-bottom: 24px;
    color: var(--ice);
    font-size: 16px;
}

.it-product__desc {
    margin-bottom: 24px;
    color: var(--text-2);
    font-size: 16px;
}

.it-product .it-ticks { margin-bottom: 24px; }

/* Stacked rather than side by side: the price labels differ in length between
   the three products and between languages, and a single row made the three
   footers land at different heights. */
.it-product__foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.it-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 32px;
    color: var(--text);
    font-size: 16px;
}
.it-price__from { color: var(--muted); font-size: 14px; }
.it-price__value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.it-price__per  { color: var(--muted); font-size: 14px; }
.it-price--quote { display: flex; align-items: center; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   05 · how we work
   ========================================================================== */

.it-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px;
}

/* the line that connects the three steps */
.it-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
}

.it-step { position: relative; }

.it-step__no {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 32px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--bg-2);
    color: var(--ice);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: .06em;
}

.it-step h3 { margin-bottom: 12px; font-size: 22px; }
.it-step p  { color: var(--muted); font-size: 16px; }

/* ==========================================================================
   06 · why itanic
   ========================================================================== */

.it-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 80px;
}

.it-reason {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.it-reason__no {
    color: var(--ice);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: .14em;
    padding-top: 4px;
}

.it-reason h3 { margin-bottom: 12px; font-size: 22px; }
.it-reason p  { color: var(--muted); font-size: 16px; }

/* ==========================================================================
   07 · projects
   ========================================================================== */

.it-gallery {
    max-width: calc(var(--content) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.it-gallery__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 8px 0 0;
}

.it-work {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 260px;
    padding: 32px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(77, 182, 255, .055), transparent 48%),
        var(--surface);
}
.it-work::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, .025) 100%),
        linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, .025) 100%);
    background-size: 64px 64px;
    opacity: .55;
    pointer-events: none;
}

.it-work__cat {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--ice);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.it-work__no {
    position: absolute;
    right: 24px;
    top: 12px;
    color: rgba(255, 255, 255, .045);
    font-family: var(--font-display);
    font-size: 88px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}
.it-work__body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 80px;
}
.it-work h3 { margin-bottom: 12px; font-size: 24px; }
.it-work p  { max-width: 300px; color: var(--muted); font-size: 16px; }
.it-work--featured { grid-column: span 2; }

/* ==========================================================================
   08 · contact
   ========================================================================== */

.it-cta { position: relative; padding-top: 160px; padding-bottom: 160px; }

.it-cta::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 80px;
    width: 720px;
    height: 480px;
    max-width: 100%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(77, 182, 255, .12) 0%, transparent 68%);
    pointer-events: none;
}

.it-cta__head {
    position: relative;
    max-width: var(--reading);
    margin: 0 auto 80px;
    text-align: center;
}
.it-cta__head h2 { margin-bottom: 24px; font-size: 56px; }
.it-cta__head p  { color: var(--muted); font-size: 20px; }

.it-contact {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* -- form ---------------------------------------------------------------- */

.it-form {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.it-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.it-field { margin-bottom: 24px; }

.it-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
}

.it-field__opt { color: var(--disabled); font-weight: 400; }

.it-field input,
.it-field textarea {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.it-field textarea {
    height: auto;
    min-height: 132px;
    padding: 16px;
    line-height: 1.6;
    resize: vertical;
}

.it-field input::placeholder,
.it-field textarea::placeholder { color: var(--disabled); }

.it-field input:focus,
.it-field textarea:focus {
    outline: none;
    border-color: rgba(77, 182, 255, .6);
    box-shadow: 0 0 0 3px rgba(77, 182, 255, .12);
}

.help-block {
    margin: 8px 0 0;
    color: var(--error);
    font-size: 14px;
    line-height: 1.4;
}
.help-block:empty { display: none; }
.help-block ul { margin: 0; }

/* jqBootstrapValidation marks the group with .error; .has-error is the
   Bootstrap-era name kept for safety */
.form-group.error input,
.form-group.error textarea,
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--error); }

.form-group.success input,
.form-group.success textarea { border-color: rgba(49, 196, 108, .5); }

.it-form__note {
    margin: 16px 0 0;
    color: var(--disabled);
    font-size: 14px;
    text-align: center;
}

/* status messages rendered by contact_me.js */
#success:empty { display: none; }
#success .alert {
    margin-bottom: 24px;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: 16px;
}
#success .alert-success {
    background: rgba(49, 196, 108, .10);
    border-color: rgba(49, 196, 108, .32);
    color: #8FE3B4;
}
#success .alert-danger {
    background: rgba(229, 72, 77, .10);
    border-color: rgba(229, 72, 77, .32);
    color: #F5A3A5;
}
#success .close {
    float: right;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}
#success .close:hover { opacity: 1; }

/* -- contact details ----------------------------------------------------- */

.it-contact__aside {
    padding: 40px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.it-contact__aside h3 { margin-bottom: 32px; font-size: 20px; }

.it-contact__list li {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.it-contact__list li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.it-contact__key {
    display: block;
    margin-bottom: 4px;
    color: var(--disabled);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.it-contact__list a,
.it-contact__list span:not(.it-contact__key) {
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}
.it-contact__list a:hover { color: var(--ice); }

.it-contact__reply {
    margin-top: 32px;
    color: var(--muted);
    font-size: 14px;
}

/* ==========================================================================
   footer
   ========================================================================== */

.it-footer {
    padding: 80px 0 40px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.it-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 64px 40px;
    padding-bottom: 64px;
}

.it-footer__brand img { width: 160px; margin-bottom: 24px; display: block; }
.it-footer__brand p {
    max-width: 340px;
    color: var(--muted);
    font-size: 16px;
}

.it-footer h4 {
    margin-bottom: 24px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
}

.it-footer ul li { margin-bottom: 12px; }
.it-footer ul a {
    color: var(--muted);
    font-size: 16px;
}
.it-footer ul a:hover { color: var(--text); }

.it-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    color: var(--disabled);
    font-size: 14px;
}

.it-totop { color: var(--muted); font-size: 14px; }
.it-totop:hover { color: var(--text); }

/* ==========================================================================
   service pages
   ========================================================================== */

.it-service-hero { padding: 160px 0 96px; }

.it-crumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    color: var(--disabled);
    font-size: 14px;
}
.it-crumbs a { color: var(--muted); }
.it-crumbs a:hover { color: var(--text); }
.it-crumbs [aria-current] { color: var(--text-2); }

.it-service-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
}

.it-service-hero h1 { margin-bottom: 24px; font-size: 56px; }

.it-service-hero__lead {
    max-width: 620px;
    margin-bottom: 40px;
    color: var(--text-2);
    font-size: 20px;
}

.it-service-price { padding: 32px; }
.it-service-price__label {
    display: block;
    margin-bottom: 16px;
    color: var(--ice);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.it-service-price .it-price { margin-bottom: 16px; }
.it-service-price__note { color: var(--muted); font-size: 14px; }

.it-service-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}
.it-service-cols h2 { margin-bottom: 24px; }
.it-service-cols p { color: var(--muted); }

/* -- FAQ: <details> so the answers are always in the DOM for crawlers ------ */

.it-faq {
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.it-faq__item { border-bottom: 1px solid var(--line); }

.it-faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}
.it-faq__item summary::-webkit-details-marker { display: none; }

.it-faq__item summary::after {
    content: '';
    flex: none;
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border-right: 1.5px solid var(--ice);
    border-bottom: 1.5px solid var(--ice);
    transform: rotate(45deg);
    transition: transform var(--normal) var(--ease);
}
.it-faq__item[open] summary::after { transform: rotate(-135deg); }

.it-faq__answer {
    padding: 0 48px 24px 0;
    color: var(--muted);
    font-size: 17px;
}

/* -- related packages ----------------------------------------------------- */

.it-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.it-related__item { display: block; padding: 32px; }
.it-related__item h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.it-related__item p { margin-bottom: 24px; color: var(--muted); font-size: 16px; }
.it-related__go { color: var(--ice); font-size: 15px; }
.it-related__item:hover .it-related__go { color: #8CCEFF; }

@media (max-width: 1024px) {
    .it-service-hero { padding: 132px 0 80px; }
    .it-service-hero h1 { font-size: 44px; }
    .it-service-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .it-service-cols { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .it-service-hero { padding: 108px 0 64px; }
    .it-service-hero h1 { font-size: 34px; }
    .it-service-hero__lead { font-size: 18px; }
    .it-crumbs { margin-bottom: 32px; }
    .it-service-price { padding: 24px; }
    .it-faq__item summary { font-size: 18px; padding: 20px 0; }
    .it-faq__answer { padding-right: 24px; font-size: 16px; }
    .it-related { grid-template-columns: 1fr; }
}

/* ==========================================================================
   404 — served with a real 404 status, never a redirect to the front page
   ========================================================================== */

.it-notfound {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 80px 0;
    text-align: center;
}

.it-notfound .it-container { max-width: var(--reading); }

.it-notfound__logo { display: inline-block; margin-bottom: 64px; }
.it-notfound__logo img { width: 148px; }

.it-notfound h1 { margin-bottom: 24px; font-size: 40px; }

.it-notfound__lead {
    margin-bottom: 40px;
    color: var(--muted);
    font-size: 20px;
}

.it-notfound__foot {
    margin-top: 80px;
    color: var(--disabled);
    font-size: 14px;
}

@media (max-width: 768px) {
    .it-notfound h1 { font-size: 32px; }
    .it-notfound__lead { font-size: 18px; }
    .it-notfound__logo { margin-bottom: 48px; }
}

/* ==========================================================================
   reveal on scroll
   ========================================================================== */

/* Only hide when the .js class is present (set inline in the document head),
   so a broken or blocked script can never leave the page blank. */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1280px) {
    h1 { font-size: 56px; }
    .it-hero__title { font-size: 60px; }
    .it-foundation__below { gap: 56px; }
}

@media (max-width: 1024px) {
    body { font-size: 17px; }

    h1 { font-size: 48px; }
    h2 { font-size: 40px; }

    .it-section { padding: 96px 0; }
    .it-cta { padding-top: 120px; padding-bottom: 120px; }
    .it-cta__head h2 { font-size: 40px; }

    .it-nav__menu ul { gap: 28px; }
    .it-nav__inner { gap: 24px; }

    .it-hero { min-height: 0; padding: 140px 0 96px; }
    .it-hero__grid { display: grid; gap: 56px; }
    .it-hero__title { font-size: 48px; }
    .it-hero__lead { font-size: 18px; }
    .it-hero::after {
        background:
            linear-gradient(90deg, rgba(8, 21, 34, .97) 0%, rgba(7, 19, 31, .86) 36%, rgba(7, 17, 27, .36) 64%, rgba(7, 17, 27, .08) 100%),
            linear-gradient(to bottom, rgba(7, 17, 27, .26), transparent 56%, rgba(8, 21, 34, .24) 84%, rgba(8, 21, 34, .38) 100%);
    }
    .it-scroll-hint { display: none; }

    .it-foundation__above { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
    .it-foundation__below {
        grid-template-columns: minmax(280px, .72fr) minmax(460px, 1.18fr);
        gap: 48px;
    }
    .it-foundation__measure--below strong { font-size: 92px; }

    .it-products { grid-template-columns: 1fr; }
    .it-card, .it-form, .it-contact__aside { padding: 32px; }

    .it-gallery__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .it-steps { grid-template-columns: 1fr; gap: 40px; }
    .it-steps::before {
        top: 0;
        bottom: 0;
        left: 24px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(to bottom, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
    }
    .it-step { padding-left: 80px; }
    .it-step__no { position: absolute; left: 0; top: 0; margin: 0; }

    .it-reasons { grid-template-columns: 1fr; gap: 40px; }

    .it-contact { grid-template-columns: 1fr; }

    .it-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
}

@media (max-width: 768px) {
    :root { --gutter: 20px; }

    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 20px; }

    .it-section { padding: 80px 0; }
    .it-section-head { margin-bottom: 48px; }
    .it-section-head__lead { font-size: 18px; }
    .it-cta { padding-top: 96px; padding-bottom: 96px; }
    .it-cta__head { margin-bottom: 48px; }
    .it-cta__head h2 { font-size: 32px; }
    .it-cta__head p  { font-size: 18px; }

    /* -- mobile navigation: fullscreen overlay -- */
    .it-nav__inner { height: 68px; }
    .it-nav__logo img { width: 112px; }
    .it-burger { display: block; }
    .it-nav__actions > .it-btn,
    .it-nav__actions > .it-nav__lang { display: none; }

    .it-nav__menu {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 68px);
        height: calc(100dvh - 68px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 48px;
        padding: 40px var(--gutter) 80px;
        background: linear-gradient(to bottom, var(--bg), #081522);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--normal) var(--ease),
                    transform var(--normal) var(--ease),
                    visibility var(--normal) var(--ease);
    }
    .it-nav.is-open .it-nav__menu { opacity: 1; visibility: visible; transform: none; }

    .it-nav__menu ul { flex-direction: column; align-items: flex-start; gap: 32px; }
    .it-nav__menu a { font-size: 24px; color: var(--text); }
    .it-nav__menu a::after { display: none; }

    .it-nav__mobile-actions {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .it-hero {
        align-items: flex-start;
        min-height: 0;
        padding: 120px 0 84px;
        isolation: isolate;
    }
    .it-hero__grid { position: static; display: block; }
    .it-hero__content { max-width: 350px; }
    .it-hero__title { font-size: 40px; }
    .it-hero__actions .it-btn { flex: 1 1 100%; }
    .it-hero__trust { display: none; }
    .it-hero::after {
        display: block;
        background:
            linear-gradient(90deg, rgba(8, 21, 34, .97), rgba(7, 19, 31, .88) 72%, rgba(7, 17, 27, .68)),
            linear-gradient(to bottom, rgba(7, 17, 27, .2), transparent 34%, rgba(8, 21, 34, .34) 68%, rgba(8, 21, 34, .72) 100%);
    }
    .it-iceberg-story__picture img {
        position: absolute;
        left: 50%;
        top: 188px;
        right: auto;
        width: 760px;
        opacity: calc(.48 + (var(--story-progress) * .2));
        mix-blend-mode: screen;
        filter: saturate(.72) brightness(.68) contrast(1.08);
        transform: translate3d(-56%, calc(var(--story-progress) * -72px), 0);
        transform-origin: 58% 42%;
        -webkit-mask-image: radial-gradient(ellipse 50% 62% at 58% 42%, #000 0%, rgba(0, 0, 0, .88) 52%, transparent 100%);
        mask-image: radial-gradient(ellipse 50% 62% at 58% 42%, #000 0%, rgba(0, 0, 0, .88) 52%, transparent 100%);
    }
    .it-iceberg-story__curtain {
        top: 330px;
        left: 28%;
        background: linear-gradient(to bottom, transparent 0%, rgba(7, 17, 27, .05) 20%, rgba(7, 17, 27, .2) 44%, rgba(7, 17, 27, .54) 72%, rgba(8, 21, 34, .8) 100%);
    }

    .it-foundation {
        padding-top: 96px;
        background: transparent;
    }
    .it-foundation::before {
        background:
            linear-gradient(90deg, rgba(8, 21, 34, .97), rgba(7, 19, 31, .88) 72%, rgba(7, 17, 27, .68)),
            linear-gradient(to bottom, rgba(8, 21, 34, .72), rgba(7, 17, 27, .95));
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .55) 48px, #000 128px);
        mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .55) 48px, #000 128px);
    }
    .it-foundation .it-section-head { margin-bottom: 64px; text-align: left; }
    .it-foundation__above { display: block; padding: 0 0 32px; }
    .it-foundation__measure strong { font-size: 52px; }
    .it-foundation__measure span { margin-top: 12px; }
    .it-foundation__visible { gap: 8px; margin-top: 28px; }
    .it-foundation__visible li {
        min-height: 48px;
        padding: 13px 8px;
        font-size: 12px;
        text-align: center;
    }
    .it-foundation__waterline span { left: 0; top: 13px; }
    .it-foundation__waterline i { left: 72%; }
    .it-foundation__below { display: block; padding: 64px 0 0; }
    .it-foundation__measure--below { margin-bottom: 52px; }
    .it-foundation__measure--below strong { font-size: 82px; }
    .it-foundation__story h3 { font-size: 28px; }
    .it-foundation__story > p:not(.it-label) { font-size: 15px; }
    .it-foundation__network {
        min-height: 522px;
        margin-top: 56px;
        padding: 18px;
        border-radius: var(--r-md);
        background-size: 24px 24px, 24px 24px, auto, auto;
    }
    .it-foundation__flow {
        inset: 52px 18px 68px;
        width: calc(100% - 36px);
        height: calc(100% - 120px);
    }
    .it-foundation__systems { gap: 9px; margin-top: 42px; }
    .it-foundation__systems li {
        min-height: 43px;
        padding: 0 10px;
        font-size: 11px;
    }
    .it-foundation__systems b { font-size: 7px; }
    .it-foundation__core { right: 18px; bottom: 18px; left: 18px; gap: 14px; }
    .it-foundation__core small { font-size: 10px; }

    .it-card, .it-form, .it-contact__aside { padding: 24px; }
    .it-product--primary::before { left: 24px; right: 24px; }
    .it-products {
        display: flex;
        align-items: stretch;
        gap: 12px;
        margin: 0 calc(-1 * var(--gutter));
        padding: 0 var(--gutter) 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--gutter);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--line-2) transparent;
    }
    #products { padding: 80px 0; }
    .it-products::-webkit-scrollbar { height: 3px; }
    .it-products::-webkit-scrollbar-track { background: transparent; }
    .it-products::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
    /* Narrow enough that ~68px of the next plan stays on screen: a visible slice
       of the following card is the affordance that says "this scrolls". */
    .it-product {
        flex: 0 0 calc(100vw - 100px);
        scroll-snap-align: start;
    }

    /* the cut-off card fades into the page edge instead of ending abruptly */
    .it-products-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 20px;
        right: calc(-1 * var(--gutter));
        width: 44px;
        background: linear-gradient(to left, var(--bg), transparent);
        pointer-events: none;
        transition: opacity var(--normal) var(--ease);
    }
    .it-products-wrap.is-end::after { opacity: 0; }

    .it-products-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: -24px 0 20px;
        color: var(--ice);
        font-family: var(--font-display);
        font-size: 12px;
        letter-spacing: .16em;
        text-transform: uppercase;
        transition: opacity var(--normal) var(--ease);
    }
    /* it has done its job once the visitor scrolls */
    .it-products-hint.is-done { opacity: 0; }

    .it-products-hint__arrow { display: flex; }
    .it-products-hint__arrow svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        animation: it-nudge 2.6s var(--ease) infinite;
    }

    /* 2px of travel — enough to read as directional, within the motion budget */
    @keyframes it-nudge {
        0%, 55%, 100% { transform: translateX(0); }
        28%           { transform: translateX(2px); }
    }
    .it-form__row { grid-template-columns: 1fr; gap: 0; }

    .it-work { width: 304px; min-height: 240px; }
    .it-work__body { padding-top: 56px; }

    .it-gallery {
        max-width: none;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--line-2) transparent;
    }
    .it-gallery::-webkit-scrollbar { height: 3px; }
    .it-gallery::-webkit-scrollbar-track { background: transparent; }
    .it-gallery::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
    .it-gallery__track {
        display: flex;
        width: max-content;
        padding: 8px var(--gutter) 32px;
    }
    .it-work { flex: none; }
    .it-work--featured { grid-column: auto; }

    .it-footer__grid { grid-template-columns: 1fr; gap: 40px; }
    .it-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 360px) {
    .it-foundation__core {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .it-foundation__core small { display: none; }
}

/* ==========================================================================
   reduced motion — the page stays complete and readable without any of it
   ========================================================================== */

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

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js .reveal { transition: none !important; }
}
