/* style.css — Cedar Design LB. Concept: "full stop". Short sentences, each closed by a red period;
   the period in "We don't say much." grows until it is the whole screen and hands over to the work. */

@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-500.woff2?v=dd275907') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0b0a;
  --fg: #f2efe8;
  --paper: #f2efe8;
  --ink: #0b0b0a;
  --muted: #8d897f;
  --accent: #e5322d;      /* the full stop */
  --line: rgba(242, 239, 232, .12);
  --display: 'Space Grotesk', 'Manrope', Arial, sans-serif;
  --frame: #151513;
}

/* ---------- the full stop ---------- */
.stop {
  display: inline-block; width: .2em; height: .2em; margin-left: .05em; border-radius: 50%;
  background: var(--accent); vertical-align: baseline;
}

/* ---------- header ---------- */
.site-header { transition: background .5s var(--ease), height .5s var(--ease), transform .6s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: baseline; font: 500 27px/1 var(--display); letter-spacing: -.05em; }
.brand .stop { width: .22em; height: .22em; }
.brand > span { margin-left: 12px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.btn--sm { min-height: 44px; padding: 11px 22px; }
.btn--red { background: var(--accent); color: #fff; }
.btn--red:hover { background: var(--fg); color: var(--ink); }
.btn--lg { min-height: 64px; padding: 20px 34px; font-size: 15px; }
.kit-cursor.has-label { background: var(--accent); }
.kit-cursor-label { color: #fff; }

/* ---------- 1. hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: clip; }
.hero::before { /* a low red glow behind the fan */
  content: ''; position: absolute; left: 50%; bottom: -30%; width: 120vw; height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(229, 50, 45, .22), rgba(229, 50, 45, .06) 55%, transparent);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; flex: none; padding-top: clamp(108px, 14.5vh, 152px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy .eyebrow { color: var(--muted); }
.hero-title { font: 500 clamp(60px, 10.4vw, 170px)/.9 var(--display); letter-spacing: -.058em; margin: 24px 0 26px; }
.hero-title em { font: italic 400 1.1em/.8 var(--serif); letter-spacing: -.025em; padding-right: .02em; }
.hero-copy .lead { color: rgba(242, 239, 232, .66); max-width: 27em; }
.hero-ctas { display: flex; align-items: center; gap: 30px; margin-top: 32px; }
.hero-more { font-size: 14px; font-weight: 600; }

/* The hand of websites. Rotation comes from CSS variables (--open for the opening shot, --more for scroll),
   so GSAP never has to own these transforms; it only moves .fan itself and each .fan-in. */
.fan-zone { position: relative; z-index: 1; flex: 1 0 clamp(250px, 34vh, 380px); }
.fan { position: absolute; left: 50%; top: clamp(28px, 4.5vh, 48px); width: 0; height: 0; --open: 1; --more: 0; --cw: min(34vw, 540px); --dx: min(23vw, 370px); --dy: 46px; --step: 5deg; }
.fan-card {
  position: absolute; left: calc(var(--cw) / -2); top: 0; width: var(--cw); margin: 0;
  transform-origin: 50% 100%;
  transform: translate(calc(var(--i) * var(--dx) * (var(--open) + var(--more) * .22)), calc(var(--a) * var(--dy) * (var(--open) + var(--more) * .6)))
             rotate(calc(var(--i) * (var(--open) * var(--step) + var(--more) * 2.5deg)));
}
.fan-in { border-radius: 14px; overflow: hidden; background: var(--frame); aspect-ratio: 16 / 10.6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 90px rgba(0, 0, 0, .65); }
.fan-in img { width: 100%; height: auto; }

/* Browser bars on every screenshot. */
.bar { position: relative; z-index: 1; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 13px; background: #1b1b19; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bar b { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.bar span { position: absolute; left: 50%; transform: translateX(-50%); padding: 3px 16px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: 11px; line-height: 1.5; color: var(--muted); white-space: nowrap; }

/* ---------- 2. "We don't say much." ---------- */
.say { position: relative; z-index: 1; }
.say-stage { position: relative; overflow: hidden; }
.say-one { font: 500 clamp(46px, 8.2vw, 136px)/.95 var(--display); letter-spacing: -.055em; text-align: center; padding: 0 var(--gutter); }
.say-two { font: 500 clamp(48px, 8.6vw, 148px)/.92 var(--display); letter-spacing: -.055em; text-align: center; color: var(--ink); }
.say-two-in { display: block; }
.say-two em { font: italic 400 1.1em/.8 var(--serif); letter-spacing: -.025em; }
.say-cue { color: var(--ink); }
.say-fill { display: none; }

/* Without motion (or before the kit runs): two plain statements, the second on a red block. */
.say { padding-top: clamp(96px, 16vh, 180px); }
.say-two { margin-top: clamp(80px, 12vh, 140px); background: var(--accent); padding: clamp(96px, 16vh, 180px) var(--gutter); }
.say-cue { display: none; }

/* With motion: a pinned stage (JS pin on desktop, CSS sticky on touch) and the growing dot. */
.has-motion .say { height: 380vh; padding: 0; }
.has-motion .say-stage { height: 100vh; height: 100svh; display: grid; place-items: center; }
.has-motion .say-dot { visibility: hidden; } /* the big circle sits exactly on top of it */
.has-motion .say-fill { display: block; position: absolute; z-index: 2; border-radius: 50%; background: var(--accent); transform-origin: 50% 50%; }
.has-motion .say-two { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0 var(--gutter); background: none; display: grid; place-content: center; }
.has-motion .say-cue { display: block; position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 56px); z-index: 3; text-align: center; }
@media not all and (hover: hover) and (pointer: fine) {
  .has-motion .say-stage { position: sticky; top: 0; }
}

/* ---------- 3. work ---------- */
.work { position: relative; z-index: 3; background: var(--bg); padding: clamp(96px, 14vh, 150px) 0 clamp(110px, 16vh, 180px); }
.has-motion .work { margin-top: -100vh; border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .35); }
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: clamp(48px, 7vh, 72px); }
.work-head .eyebrow { margin: 0; }
.work-head p { font-size: 14px; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 96px) clamp(28px, 3.4vw, 56px); }
.shot:nth-child(even) { margin-top: clamp(80px, 10vw, 160px); }
.frame { border-radius: 16px; overflow: hidden; background: var(--frame); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px rgba(0, 0, 0, .5); transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.view img { position: absolute; top: 0; left: 0; width: 100%; height: auto; will-change: transform; }
.cap { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; margin-top: 24px; }
.cap .num, .rows .num { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--accent); }
.cap h3 { font: 500 clamp(24px, 2.3vw, 36px)/1.1 var(--display); letter-spacing: -.035em; }
.cap .muted { grid-column: 2; font-size: 14px; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .shot:hover .frame { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 44px 90px rgba(0, 0, 0, .6); }
}

/* ---------- 4. services ---------- */
.services { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); }
.services-title { font: 500 clamp(40px, 5.8vw, 96px)/1 var(--display); letter-spacing: -.05em; }
.services-title em { font: italic 400 1.08em/.95 var(--serif); letter-spacing: -.02em; color: var(--muted); }
.rows { list-style: none; margin: clamp(56px, 8vh, 90px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 90px 1fr 1.25fr; gap: 32px; align-items: baseline; padding: clamp(28px, 4vh, 40px) 0; border-bottom: 1px solid var(--line); }
.rows h3 { font: 500 clamp(28px, 2.8vw, 44px)/1 var(--display); letter-spacing: -.04em; }
.rows p { color: var(--muted); max-width: 34em; }

/* ---------- 5. call to action ---------- */
.cta { position: relative; z-index: 3; background: var(--paper); color: var(--ink); padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 130px); }
.cta .eyebrow { color: #6b675f; }
.cta-title { font: 500 clamp(92px, 17.5vw, 300px)/.84 var(--display); letter-spacing: -.065em; margin: 26px 0 clamp(44px, 7vh, 72px); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.cta .lead { color: #4a4740; max-width: 22em; }
.cta-direct { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 600; }
.cta-direct span { width: 100%; font-weight: 400; color: #6b675f; }
.project { max-width: none; gap: 30px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 10, .22); transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.chips label:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.project .form-foot { padding-top: 10px; }
.cta .btn--red:hover { background: var(--ink); color: var(--paper); }
.cta :focus-visible { outline-color: var(--ink); }
.site-footer { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px 34px; max-width: none; font-size: 13px; color: #6b675f; background: var(--paper); border-top: 1px solid rgba(11, 11, 10, .1); }
.brand--ink { color: var(--ink); font-size: 22px; }
.brand--ink > span { color: #6b675f; }

/* ---------- phones ---------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .site-header { height: 68px; }
  .site-header.is-solid { height: 60px; }
  .brand { font-size: 24px; }
  .brand > span { display: none; }
  .nav { gap: 0; }
  .nav .link { display: none; }
  .btn--sm { min-height: 40px; padding: 9px 18px; font-size: 13px; }

  .hero-copy { padding-top: 112px; }
  .hero-copy .eyebrow { font-size: 10.5px; letter-spacing: .16em; }
  .hero-title { font-size: clamp(54px, 15.6vw, 84px); margin: 18px 0 20px; }
  .hero-copy .lead { font-size: 16px; max-width: 21em; }
  .hero-ctas { gap: 22px; margin-top: 26px; }
  .hero { min-height: 0; } /* phones: the hand sits right under the buttons instead of at the bottom of a tall screen */
  .fan-zone { flex-basis: 330px; }
  .fan { --cw: 80vw; --dx: 33vw; --dy: 24px; --step: 6deg; top: 34px; }
  .bar { height: 22px; padding: 0 9px; gap: 4px; }
  .bar b { width: 6px; height: 6px; }
  .bar span { font-size: 9px; padding: 1px 10px; }

  .say-one { font-size: clamp(46px, 14vw, 72px); }
  .say-two { font-size: clamp(48px, 14.6vw, 76px); }

  .work-head { flex-direction: column; gap: 10px; }
  .work-grid { grid-template-columns: 1fr; gap: 56px; }
  .shot:nth-child(even) { margin-top: 0; }
  .frame { border-radius: 12px; }

  .rows li { grid-template-columns: 40px 1fr; gap: 10px 14px; }
  .rows p { grid-column: 2; font-size: 15.5px; }

  .cta-title { font-size: 26vw; }
  .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .chips span { min-height: 42px; padding: 9px 16px; font-size: 13.5px; }
  .btn--lg { min-height: 58px; padding: 17px 26px; font-size: 14px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}
