/* IDÉE — services. Built to Tayla's mockup of 17 Nov; tokens lifted from the
   live styles.css so this reads as the same site, not a cousin of it. */
:root{
  --bg:#fff; --bg-2:#f4f3f1; --ink:#1d1c1b; --band:#1d1c1b;   /* --ink as styles.css defines it */
  --red:#d12731; --red-dark:#b21e27;
  --muted:#55514c; --meta:#8a8681; --hair:#e2e0dc; --tile:#e8e6e2;
  --footer-link:#c9c6c2;
  --disp:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --max:1440px; --pad:28px;        /* both exactly as the live styles.css */
  --ease:cubic-bezier(.2,0,0,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font:400 16px/1.6 var(--disp);
     -webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:left}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad);width:100%}

/* The ↗ from the mockup. Drawn, not typed: the arrow glyph sits differently in
   every fallback font and the pages must not depend on one being present. */
.ne{display:inline-block;width:.52em;height:.52em;margin-left:.42em;position:relative;
  vertical-align:.02em;flex:none;
  /* back-out curve: overshoots past the mark and settles, which is the bounce.
     The arrow is two pseudo-elements, so rotating the box carries both. */
  transition:transform .52s cubic-bezier(.34,1.56,.64,1)}
.ne::before{content:"";position:absolute;inset:0;
  border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
.ne::after{content:"";position:absolute;left:-.04em;bottom:-.04em;width:.76em;height:1.5px;
  background:currentColor;transform:rotate(-45deg);transform-origin:0 50%}

/* ---- staging ribbon ---------------------------------------------------- */
.ribbon{background:#fdf6d8;border-bottom:1px solid #e8dca4;color:#6b5a14;
  font:400 10.5px/1 var(--mono);letter-spacing:.07em;text-transform:uppercase;
  padding:9px 16px;text-align:center}

/* ---- header ------------------------------------------------------------ */
/* Values taken from the live styles.css, not approximated: the bar is opaque
   white with no blur (a blur layer let the band underneath tint it), the mark
   is 34px/700, the links 13px/500 and the pill 10px 20px. */
.hdr{position:sticky;top:0;z-index:50;background:#fff;
  max-width:var(--max);margin:0 auto;width:100%;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:18px var(--pad)}
.hdr__mark{font-weight:700;font-size:34px;letter-spacing:.02em;line-height:1;
  color:var(--ink);transition:color .2s}
.hdr__mark:hover{color:var(--red)}
.hdr__mark i{color:var(--red);font-style:normal}
.hdr__nav{display:flex;align-items:center;gap:clamp(16px,3vw,36px)}
.hdr__nav a{font-size:13px;font-weight:500;line-height:normal;color:var(--ink);
  padding:8px 0;transition:color .2s}
.hdr__nav a:hover{color:var(--red)}
.hdr__nav .is-here{position:relative}
.hdr__nav .is-here::after{content:"";position:absolute;left:0;right:0;bottom:1px;
  height:2px;background:var(--red)}
.hdr__nav .pill{background:var(--ink);color:#fff;border-radius:999px;
  padding:10px 20px;font-size:13px;font-weight:500;line-height:normal}
.hdr__nav .pill:hover{background:var(--red);color:#fff}
.hdr__rule{position:absolute;left:50%;bottom:0;height:2px;width:100vw;
  margin-left:-50vw;background:var(--red);transform:scaleX(0);transform-origin:0 50%}

/* ---- type -------------------------------------------------------------- */
/* The site's own scale. .hero h1 and the vision/mission headline are both
   weight 500 — the heavy display face was never part of it. */
h1{font-weight:500;font-size:clamp(24px,3.6vw,44px);line-height:1.3;
   letter-spacing:-.01em;max-width:1080px}
h2{font-weight:600;font-size:clamp(20px,2.6vw,30px);line-height:1.3;
   letter-spacing:-.008em}
.offer h2,.end h2{font-weight:500;font-size:clamp(30px,4.2vw,60px);
   line-height:1.03;letter-spacing:-.022em}
h3{font-weight:600;font-size:16px;letter-spacing:-.008em;line-height:1.35}
.crumb{font:400 11.5px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;
  color:var(--meta);display:flex;gap:11px;margin-bottom:30px}
.crumb a:hover{color:var(--red)}
.crumb i{font-style:normal;color:#cfccc7}
.lede{font-size:clamp(16px,1.35vw,19px);line-height:1.55;color:var(--muted);
  max-width:74ch;margin-top:20px}
.btn{display:inline-flex;align-items:center;background:var(--red);color:#fff;
  border-radius:999px;padding:14px 26px;font-size:13px;font-weight:600;
  min-height:46px;transition:background .25s var(--ease)}
.btn:hover{background:var(--red-dark)}

/* ---- hero -------------------------------------------------------------- */
.hero{padding:clamp(64px,10vw,140px) 0 clamp(48px,7vw,96px)}
/* The home page puts the action, the studios line and the scroll affordance on
   one row rather than stacking them. Same here. */
.hero__row{display:flex;align-items:center;gap:20px;margin-top:36px;flex-wrap:wrap}
.hero__meta{font:400 10px/1.6 var(--mono);letter-spacing:.08em;color:var(--meta)}
.hero__meta b{color:var(--red);font-weight:400}
.scroll-btn{margin-left:auto;width:46px;height:46px;border-radius:999px;
  border:1.5px solid var(--red);color:var(--red);font-size:22px;line-height:1;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  transition:background .2s,color .2s}
.scroll-btn:hover{background:var(--red);color:#fff}

/* ---- full-bleed strip -------------------------------------------------- */
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:100%}
.tile{position:relative;overflow:hidden;background:var(--tile);display:block;
  aspect-ratio:16/9}
/* Portrait. The sources are all 16:9, so this crops ~55% of the width — every
   frame in the PHOTO map was checked at this ratio before being listed. */
.tile--strip{aspect-ratio:4/5}
/* The aspect sits on the CONTAINER, not the <img>. The width/height attributes
   on the image give it two definite sides, so aspect-ratio there is ignored and
   tiles render as slivers — measured, not guessed. */
.tile img{width:100%;height:100%;object-fit:cover;
  transform:scale(1.001);transition:transform .8s var(--ease)}
.tile:hover img{transform:scale(1.05)}
.tile__cap{position:absolute;left:0;right:0;bottom:0;padding:28px 16px 13px;
  font:400 10.5px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#fff;
  background:linear-gradient(transparent,rgba(0,0,0,.6));opacity:0;
  transition:opacity .35s var(--ease)}
.tile:hover .tile__cap{opacity:1}

/* ---- the offering accordion -------------------------------------------- */
.offer{padding:clamp(52px,7vw,96px) 0 clamp(52px,7vw,92px)}
.offer h2{margin-bottom:clamp(32px,4.4vw,56px)}
.offer__note{margin-top:34px;font-size:14.5px;color:var(--meta);max-width:62ch}

/* One column set, shared by the row and the expanded body, so the open panel
   lines up under the descriptor column instead of floating free. */
.svc{border-top:1px solid var(--hair)}
.svc:last-child{border-bottom:1px solid var(--hair)}
.svc__row{display:grid;width:100%;align-items:baseline;
  grid-template-columns:44px minmax(0,1fr) minmax(0,1.45fr);gap:0 26px;
  padding:17px 0;transition:opacity .25s}
.svc__n{font:400 12px/1.5 var(--mono);color:var(--meta)}
.svc__name{font-weight:600;font-size:16px;letter-spacing:-.008em;
  display:inline-flex;align-items:baseline;transition:color .2s var(--ease)}
.svc__name .ne{color:var(--red)}
.svc__row:hover .svc__name{color:var(--red)}
/* ↗ swings to ↓ on the whole row — 135deg clockwise from up-right. */
.svc__row:hover .ne,
.svc__row:focus-visible .ne,
.svc.is-open .svc__row .ne{transform:rotate(135deg)}
/* The default focus ring boxed the entire row after a click. Keep it for
   keyboard users, drop it for the mouse. */
.svc__row:focus:not(:focus-visible){outline:none}
.svc__row:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.svc__tag{font-size:14.5px;color:var(--muted)}   /* no cap: at 1440 the column already lands near 85ch */

.svc.is-open .svc__row{padding-bottom:14px}
.svc.is-open .svc__name{font-size:clamp(18px,1.8vw,22px);letter-spacing:-.012em;line-height:1.2}
.svc.is-open .svc__tag{color:var(--ink)}

.svc__body{display:grid;grid-template-rows:0fr;
  transition:grid-template-rows .45s var(--ease)}
.svc.is-open .svc__body{grid-template-rows:1fr}
/* Before the script runs there is no accordion — every panel is open, so the
   page is complete and readable if services.js never arrives. */
.svcs:not(.is-ready) .svc__body{grid-template-rows:1fr}
.svc__inner{overflow:hidden;display:grid;
  grid-template-columns:44px minmax(0,1fr) minmax(0,1.45fr);gap:0 26px}
.svc__inner>*{grid-column:3}
.svc__cols{display:grid;grid-template-columns:1fr 1fr;gap:4px 26px;margin-bottom:18px}
.svc__cols ul{list-style:none}
.svc__cols li{font-size:14px;color:var(--muted);padding:2.5px 0}
.svc__go{display:inline-flex;align-items:center;color:var(--red);font-weight:600;
  font-size:14.5px;padding-bottom:22px}
.svc__go:hover{color:var(--red-dark)}

/* ---- service page sections --------------------------------------------- */
.sec{padding:clamp(48px,6.4vw,88px) 0}
.sec--alt{background:var(--bg-2)}
.sec--dark{background:var(--band);color:#fff}
.sec__head{max-width:62ch;margin-bottom:clamp(28px,3.6vw,44px)}
.sec__head p{margin-top:15px;color:var(--muted);font-size:15px}
.sec--dark .sec__head p{color:#a6a29d}

.three{display:grid;grid-template-columns:repeat(auto-fit,minmax(244px,1fr));
  gap:clamp(22px,3vw,42px)}
.three__n{font:400 11.5px/1 var(--mono);color:var(--red);letter-spacing:.1em}
.three__i h3{margin:13px 0 9px}
.three__i p{color:var(--muted);font-size:14.5px}
.three--light .three__n{color:#ff6b73}  /* --red on --band is too dim to read */
.three--light .three__i h3{color:#fff}
.three--light .three__i p{color:#a6a29d}

.delivs{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));
  gap:clamp(24px,3vw,42px)}
.deliv h3{padding-bottom:12px;border-bottom:1px solid var(--hair);margin-bottom:15px}
.deliv ul{list-style:none}
.deliv li{font-size:14.5px;color:var(--muted);padding:5px 0 5px 16px;position:relative}
.deliv li::before{content:"";position:absolute;left:0;top:13px;width:4px;height:4px;
  border-radius:50%;background:var(--red)}

.works{display:grid;grid-template-columns:repeat(auto-fit,minmax(252px,1fr));gap:clamp(14px,1.8vw,24px)}
.work{overflow:hidden}
.work img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--tile);
  transition:transform .8s var(--ease)}
.work:hover img{transform:scale(1.045)}
.work h3{margin-top:15px;display:flex;align-items:baseline}
.work h3 .ne{color:var(--red)}
.work:hover h3{color:var(--red)}

.rel{display:grid;grid-template-columns:repeat(auto-fit,minmax(236px,1fr));gap:1px;
  background:var(--hair);border:1px solid var(--hair)}
.rel__i{background:#fff;padding:clamp(20px,2.4vw,28px);transition:background .3s}
.rel__i:hover{background:var(--bg-2)}
.rel__i h3{display:flex;align-items:baseline}
.rel__i h3 .ne{color:var(--red)}
.rel__i p{color:var(--muted);font-size:14px;margin-top:10px}

.faq details{border-top:1px solid var(--hair)}
.faq details:last-of-type{border-bottom:1px solid var(--hair)}
.faq summary{list-style:none;cursor:pointer;padding:21px 44px 21px 0;position:relative;
  font-weight:600;font-size:16.5px;transition:color .2s}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--red)}
.faq summary::after{content:"";position:absolute;right:6px;top:50%;width:13px;height:1.5px;
  background:var(--red)}
.faq summary::before{content:"";position:absolute;right:11.75px;top:50%;width:1.5px;height:13px;
  background:var(--red);margin-top:-6px;transition:transform .3s var(--ease),opacity .3s}
.faq details[open] summary::before{transform:rotate(90deg);opacity:0}
.faq__a{padding:0 10% 24px 0;color:var(--muted);font-size:15px}

/* ---- closing band + footer --------------------------------------------- */
/* Matched to the home page's .cta and .footer: same ground, same 96px/700
   statement, same pill, same mono contact line, same legal bar beneath. */
.end{background:var(--ink);color:var(--bg)}
.end__inner{padding-top:clamp(72px,11vw,150px);padding-bottom:clamp(72px,11vw,150px);
  text-align:center}
.end h2{color:var(--red);font-weight:700;font-size:clamp(38px,8vw,96px);
  letter-spacing:-.02em;line-height:1.02;margin-bottom:36px;max-width:none}
.end__btn{display:inline-block;background:var(--red);color:#fff;font-size:14px;
  font-weight:600;padding:16px 34px;border-radius:999px;
  transition:background .2s,color .2s}
.end__btn:hover{background:var(--bg);color:var(--ink)}
.end__meta{font:400 10px/1.6 var(--mono);letter-spacing:.08em;color:var(--meta);
  margin-top:32px}
.end__meta a{color:var(--meta)}
.end__meta a:hover{color:var(--red)}

.ft{background:var(--ink);color:var(--bg);
  border-top:1px solid rgba(255,255,255,.15)}
.ft__inner{max-width:var(--max);margin:0 auto;padding:28px var(--pad);
  display:flex;flex-wrap:wrap;gap:14px 32px;align-items:center;
  justify-content:space-between}
.ft__logo{font-weight:700;font-size:15px}
.ft__logo span{color:var(--red)}
.ft__nav{display:flex;gap:24px;flex-wrap:wrap}
.ft__nav a{font-size:12px;color:var(--footer-link);padding:6px 0;transition:color .2s}
.ft__nav a:hover{color:var(--red)}
.ft__legal{font:400 10px/1.6 var(--mono);letter-spacing:.08em;color:var(--footer-link)}

/* ---- motion ------------------------------------------------------------ */
[data-rise]{opacity:0;transform:translateY(14px);
  transition:opacity .7s var(--ease),transform .7s var(--ease)}
[data-rise].is-in{opacity:1;transform:none}

/* Words sliding up out of a mask.
   Only [data-split].is-split hides anything, and .is-split is added by
   services.js — so a heading whose script never loaded is plain visible text
   rather than an empty box. The padding/margin pair keeps the mask clear of
   descenders: without it the g in "Designed" is sliced off at rest. */
[data-split] .w{display:inline-block;overflow:hidden;vertical-align:bottom;
  padding-bottom:.14em;margin-bottom:-.14em}
[data-split] .w i{display:inline-block;font-style:normal;will-change:transform}
[data-split].is-split .w i{transform:translateY(115%);
  transition:transform var(--dur,.9s) cubic-bezier(.16,1,.3,1) var(--del,0s)}
[data-split].is-split.is-in .w i{transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
  [data-rise]{opacity:1;transform:none}
  [data-split].is-split .w i{transform:none}
}

/* ---- responsive -------------------------------------------------------- */
@media (max-width:860px){
  .svc__row,.svc__inner{grid-template-columns:34px minmax(0,1fr);gap:0 16px}
  .svc__tag{grid-column:2;margin-top:6px;font-size:13.5px}
  .svc__inner>*{grid-column:2}
  .svc__cols{grid-template-columns:1fr}
  .strip{grid-template-columns:1fr 1fr}
  .strip .tile:nth-child(3){display:none}
  .end__grid{flex-direction:column;align-items:flex-start}
}
@media (max-width:620px){
  .scroll-btn{display:none}   /* the row wraps; a lone + under the meta is noise */
  .hdr__nav{gap:16px;font-size:13px}
  .hdr__nav a:not(.pill):not(.is-here){display:none}
  .hdr__nav .pill{padding:9px 17px}
  .faq__a{padding-right:0}
  .ft__meta{gap:4px 18px}
}

/* ---- three project tiles inside the offering panels -------------------
   Under the deliverables, above the Explore link, in the same column so the
   panel keeps its alignment. No captions: the frame is the tile. The project
   name is the link's accessible name, so screen readers still announce it. */
.svc__work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin: 4px 0 22px; }
.svc__w { display: block; min-width: 0; }
.svc__img { display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--tile); }
.svc__img img { width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform .8s var(--ease); }
.svc__w:hover .svc__img img { transform: scale(1.05); }
.svc__w:focus:not(:focus-visible) { outline: none; }
.svc__w:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* The frames rise in just after the panel opens. Gated on .is-ready like the
   collapse itself, so without services.js they are simply there. */
.svcs.is-ready .svc__w { opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .6s var(--ease); }
.svcs.is-ready .svc.is-open .svc__w { opacity: 1; transform: none; }
.svcs.is-ready .svc.is-open .svc__w:nth-child(1) { transition-delay: .10s; }
.svcs.is-ready .svc.is-open .svc__w:nth-child(2) { transition-delay: .17s; }
.svcs.is-ready .svc.is-open .svc__w:nth-child(3) { transition-delay: .24s; }

/* A closed panel is 0px tall, but its links stayed in the tab order: eleven
   Explore links before, forty-four with the tiles. Take a closed panel out of
   focus once the collapse has finished, and bring it back at once on open. */
.svcs.is-ready .svc__body { visibility: hidden;
  transition: grid-template-rows .45s var(--ease), visibility 0s linear .45s; }
.svcs.is-ready .svc.is-open .svc__body { visibility: visible;
  transition: grid-template-rows .45s var(--ease), visibility 0s; }

@media (max-width: 620px) {
  /* Three across at phone width is ~95px a frame. Swipe instead, with the
     third frame peeking so the row reads as scrollable. */
  .svc__work { grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; }
  .svc__work::-webkit-scrollbar { display: none; }
  .svc__w { scroll-snap-align: start; }
}

/* The service-page strip when it carries the picked tiles. The house strip
   crops to 4:5 portrait, which is right for photographs of people but cuts the
   edges off a logomark and takes the header off a website screenshot. These
   keep the 16:9 they were composed at. */
.strip--wide .tile--wide { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  /* The house strip drops its third tile at this width and goes two-up. Three
     16:9 frames stacked would run very tall, so they go two-up here as well
     and the third still sits out. */
  .strip--wide { grid-template-columns: 1fr 1fr; }
  .strip--wide .tile:nth-child(3) { display: none; }
}
