/* VIP Auto Customs · Window Tint (tint.html). Page rules on top of css/home.css, which is linked first.
   The service-page pattern (DESIGN.md, after olympic.no/what-we-do-services): full-screen hero, "What we do" band,
   alternating text-media rows (the third the dark variant), the shade guide (the drawn sedan cut into five strips) on the page's one light band, the calm close.
   Red: --red (#E3202A) for the italic word; small red type uses --red-text, the same red lifted a touch (#EE2C35) so
   10–11px labels hold 4.5:1 on the ground and the panel (#E3202A measures 4.4:1), and --red-ink (#CC1B25) on the warm
   white (#E3202A measures 4.2:1 there). Pinned behaviour lives under html.e-pin (768px+, no reduced motion). */

:root{--red-text:#EE2C35;--red-ink:#CC1B25;--row-media:min(520px,37vw)}

.t-mono{font:500 13px/1.4 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--label)}
.t-kicker{font:500 13px/1.5 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--red-text)}

/* ---------------------------------------------------------------- (1) hero */
.t-hero{position:relative;background:var(--ground)}
.t-hero__stage{position:relative;height:var(--screen);min-height:560px;overflow:hidden}
html.e-pin .t-hero{height:calc(var(--screen) * 2.6)}
html.e-pin .t-hero__stage{position:sticky;top:0}
.t-hero__car{position:absolute;inset:0}
.t-hero__poster,.t-hero__canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
/* the fitted frame (js tint.js applyFit): the poster is laid on the frame's rect and the car layer's mask fades the
   frame edges that fall inside the stage (wide stages, capped widths); edges that overflow get no fade */
.t-hero__car.is-fit .t-hero__poster{inset:auto;object-fit:fill}
.t-hero__car.is-fit{-webkit-mask-image:linear-gradient(90deg,transparent var(--fx),#000 calc(var(--fx) + var(--ex)),#000 calc(var(--fx) + var(--fw) - var(--ex)),transparent calc(var(--fx) + var(--fw))),linear-gradient(180deg,transparent var(--fy),#000 calc(var(--fy) + var(--et)),#000 calc(var(--fy) + var(--fh) - var(--eb)),transparent calc(var(--fy) + var(--fh)));-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent var(--fx),#000 calc(var(--fx) + var(--ex)),#000 calc(var(--fx) + var(--fw) - var(--ex)),transparent calc(var(--fx) + var(--fw))),linear-gradient(180deg,transparent var(--fy),#000 calc(var(--fy) + var(--et)),#000 calc(var(--fy) + var(--fh) - var(--eb)),transparent calc(var(--fy) + var(--fh)));mask-composite:intersect}
.t-hero__canvas{display:none;opacity:0}
html.e-pin .t-hero__canvas{display:block}
.t-hero__canvas.is-live{opacity:1}
.t-hero__wash{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(5,5,5,.78) 0%,rgba(5,5,5,.2) 18%,rgba(5,5,5,.2) 56%,rgba(5,5,5,.86) 88%,rgba(5,5,5,.95) 100%),
    linear-gradient(90deg,rgba(5,5,5,.5) 0%,rgba(5,5,5,0) 46%)}
/* the glass goes darker: the whole stage dims a little as the car turns (js/tint.js sets --t-dim 0 → .34) */
.t-hero__dim{position:absolute;inset:0;pointer-events:none;background:#050505;opacity:var(--t-dim,0)}
.t-hero__head{position:absolute;left:var(--gutter);right:var(--gutter);bottom:clamp(32px,7vh,80px);z-index:2;max-width:1100px}
.t-hero__title{margin-top:20px;font:300 clamp(52px,min(5vw,9vh),92px)/1.02 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em;color:var(--text)}
.t-hero__title em{font-style:italic;color:var(--red)}
.t-hero__aside{position:absolute;right:var(--gutter);bottom:clamp(32px,7vh,80px);z-index:2;display:flex;flex-direction:column;align-items:flex-end;gap:14px;text-align:right}
.t-hero__scroll{font:500 13px/1.4 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--label);text-decoration:none;padding:8px 0;transition:color .4s var(--ease)}
.t-hero__scroll:hover{color:var(--text)}
.t-hero__vlt{display:none;font:400 13px/1 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--text);opacity:var(--vlt-o,0)}
html.e-pin .t-hero__vlt{display:block}
.t-hero__vlt-n{display:inline-block;min-width:2ch;font:300 44px/1 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em;vertical-align:-6px;text-align:right}
.t-hero__vlt-l{color:var(--label);margin-left:6px}

/* ---------------------------------------------------------------- (2) what we do */
.t-what{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:32px clamp(32px,6vw,120px);max-width:1440px;margin:0 auto;
  padding:clamp(108px,16.5vh,184px) var(--gutter) clamp(100px,14.5vh,164px)}
.t-what__label{padding-top:12px}
.t-what__text{max-width:60ch;font:300 clamp(21px,1.62vw,28px)/1.45 var(--serif);font-variation-settings:'opsz' 24;letter-spacing:-.005em;color:var(--text)}

/* ---------------------------------------------------------------- (3) text-media rows: text column with the kicker
   and title at the top and the body pinned to the bottom; a 4:5 photo with the home page's tile parallax
   (.e-tile__media, driven by js/home.js); sides swap row by row. About 760px tall at 1440+. */
.t-row{display:grid;grid-template-columns:minmax(0,1fr) var(--row-media);gap:clamp(48px,8vw,160px);align-items:stretch;
  max-width:1440px;margin:0 auto;padding:clamp(52px,6.5vh,72px) var(--gutter)}
.t-row--flip{grid-template-columns:var(--row-media) minmax(0,1fr)}
.t-row--flip .t-row__media{order:-1}
.t-row__text{display:flex;flex-direction:column;justify-content:space-between;gap:40px;min-width:0;max-width:520px}
.t-row--flip .t-row__text{justify-self:end;width:100%}
.t-row__title{margin-top:22px;font:300 clamp(42px,3.35vw,52px)/1.04 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em;color:var(--text)}
.t-row__body{max-width:46ch}
.t-row__body p{font:300 15px/1.7 var(--sans);color:rgba(242,241,237,.8)}
.t-row__body p+p{margin-top:14px}
.t-row__btn{margin-top:32px}
.t-row .e-tile__media{background:var(--panel);aspect-ratio:4/5;width:100%}
.t-films{margin-bottom:26px;border-bottom:1px solid var(--hair)}
.t-films div{display:grid;grid-template-columns:minmax(0,11.5em) minmax(0,1fr);gap:4px 20px;padding:11px 0;border-top:1px solid var(--hair)}
.t-films dt{font:500 13px/1.5 var(--sans);color:var(--text)}
.t-films dd{margin:0;font:300 14px/1.5 var(--sans);color:rgba(242,241,237,.72)}

/* the dark variant: full-bleed photo on one half, the grain panel with the text on the other */
.t-row--dark{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;max-width:none;padding:0;margin-top:clamp(52px,6.5vh,72px);min-height:min(780px,84vh)}
.t-row--dark .e-tile__media{aspect-ratio:auto;height:100%;min-height:560px}
.t-row--dark .t-row__text{max-width:none;padding:clamp(52px,6.5vw,112px) clamp(32px,5.5vw,112px)}
.t-row--dark .t-row__title{max-width:12ch}

/* ---------------------------------------------------------------- (4) shades: the drawn-car shade guide on the light band */
.t-shades{margin-top:clamp(88px,13vh,148px);padding:clamp(96px,14vh,156px) 0 clamp(88px,13vh,140px);background:#F4F3EF;color:#0B0B0B;
  --label:rgba(11,11,11,.55);--box:rgba(11,11,11,.42);--hair:rgba(11,11,11,.14);--text:#0B0B0B}
.t-shades__head{max-width:760px;margin:0 auto clamp(48px,7vh,72px);padding:0 var(--gutter);text-align:center}
.t-shades__label{font:500 13px/1 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--red-ink);margin-bottom:28px}
.t-shades__title{font:300 clamp(44px,4.05vw,66px)/1.02 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em}
.t-shades__line{margin-top:22px;font:300 16px/1.6 var(--sans);color:rgba(11,11,11,.72)}
/* the shade guide: the drawn sedan, side glass cut into five slanted strips, 5% at the rear to 70% at the windshield */
.t-guide{position:relative;max-width:1240px;margin:0 auto;padding:0 var(--gutter)}
.t-guide__art{width:100%;height:auto;overflow:hidden;color:rgba(11,11,11,.72)}
.t-guide__art *{vector-effect:non-scaling-stroke}
.t-guide__fills{fill:#0B0B0B}
.t-guide__cuts{stroke:rgba(11,11,11,.4);stroke-width:1}
.t-guide__mark{position:absolute;right:var(--gutter);top:-28px;font:500 13px/1 var(--sans);letter-spacing:.02em;text-transform:none;color:rgba(11,11,11,.45)}
.t-guide__row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:1240px;margin:clamp(40px,6vh,64px) auto 0;padding:0 var(--gutter)}
.t-shade{position:relative;display:grid;align-content:start;gap:10px;padding:24px 32px 8px 18px}
.t-shade + .t-shade::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:rgba(11,11,11,.14)}
.t-shade__num{display:flex;align-items:flex-start;font:300 clamp(44px,4vw,64px)/1 var(--serif);font-variation-settings:'opsz' 72;letter-spacing:-.02em;color:#0B0B0B}
.t-shade__num span{font-size:.42em;line-height:1;margin:.1em 0 0 .08em;color:rgba(11,11,11,.55)}
.t-shade__line{font:300 15px/1.5 var(--sans);color:rgba(11,11,11,.72);max-width:18ch}

/* ---------------------------------------------------------------- (6) the calm close, on the ground */

/* ---------------------------------------------------------------- phone */
@media (max-width:1023px) and (min-width:768px){
  :root{--row-media:44vw}
  .t-row{gap:48px}
}
@media (max-width:767px){
  .t-hero__stage{height:var(--screen);min-height:600px;max-height:900px}
  .t-hero__car{inset:auto;left:50%;top:calc(var(--nav-h) + 4vh);width:190%;aspect-ratio:16/9;transform:translateX(-50%);
    -webkit-mask-image:linear-gradient(90deg,transparent 4%,#000 22%,#000 78%,transparent 96%);mask-image:linear-gradient(90deg,transparent 4%,#000 22%,#000 78%,transparent 96%)}
  .t-hero__car::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,var(--ground) 0%,rgba(5,5,5,0) 20%,rgba(5,5,5,0) 70%,var(--ground) 100%)}
  .t-hero__wash{background:linear-gradient(180deg,rgba(5,5,5,0) 50%,rgba(5,5,5,.6) 70%,rgba(5,5,5,.9) 100%)}
  .t-hero__head{left:20px;right:20px;bottom:88px}
  .t-hero__title{font-size:clamp(44px,12.4vw,56px)}
  .t-hero__aside{left:20px;right:auto;bottom:36px;align-items:flex-start;text-align:left}
  .t-what{grid-template-columns:1fr;gap:28px;padding:96px 20px 72px}
  .t-what__label{padding-top:0}
  .t-what__text{font-size:23px}
  .t-row,.t-row--flip{grid-template-columns:1fr;gap:36px;padding:56px 20px}
  .t-row__media,.t-row--flip .t-row__media{order:-1}
  .t-row__text{gap:32px;max-width:none}
  .t-row__title{font-size:44px}
  .t-films div{grid-template-columns:1fr}
  .t-row--dark{gap:0;padding:0;min-height:0;margin-top:56px}
  .t-row--dark .e-tile__media{aspect-ratio:4/5;height:auto;min-height:0}
  .t-row--dark .t-row__text{padding:56px 20px 72px}
  .t-shades{margin-top:0;padding:88px 0 96px}
  .t-shades__head{text-align:left;margin-bottom:40px;padding:0 20px}
  .t-shades__title{font-size:44px}
  .t-guide{padding:0 20px}
  .t-guide__mark{right:20px;top:-22px}
  .t-guide__row{grid-template-columns:1fr;margin-top:24px;padding:0 20px;border-bottom:1px solid rgba(11,11,11,.14)}
  .t-shade{grid-template-columns:72px minmax(0,1fr);align-items:baseline;gap:16px;padding:14px 0;border-top:1px solid rgba(11,11,11,.14)}
  .t-shade + .t-shade::before{display:none}
  .t-shade__num{font-size:34px}
  .t-shade__line{max-width:none}
}

@media (prefers-reduced-motion:reduce){
  .t-hero__scroll{transition:none}
}
@media print{
  .t-hero__canvas{display:none!important}
}
