/* alex francisco :: designer : v02 layout
   Tokens first. Two colours only, used for both backgrounds and text. */
:root{
  --navy:#00191F;
  --yellow:#EED66C;
  --gutter:clamp(20px,6.7vw,172px);
  --gap:20px;                 /* space between row items */
  --hd-top:24px;              /* header distance from top of window */
  --row-h:min(420px,calc(100svh - 220px));   /* carousel row: max 420px */
  --cell-w:420px;             /* text cell: max 420px */
  --radius:4px;               /* header blocks, images and video */
  --font:'Blinker',system-ui,-apple-system,'Segoe UI',sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font);font-weight:300;font-size:17px;line-height:1.5;
  background:var(--navy);color:var(--yellow);
}
a{color:inherit}
b,strong{font-weight:600}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* ---------- Panels: navy / yellow, each fills the window ---------- */
.panel{
  --bg:var(--navy);--fg:var(--yellow);
  position:relative;
  min-height:100vh;min-height:100svh;
  display:flex;align-items:center;     /* row sits in the physical middle */
  background:var(--bg);color:var(--fg);
}
.panel[data-bg="yellow"]{--bg:var(--yellow);--fg:var(--navy)}
.panel[data-bg="navy"]{--bg:var(--navy);--fg:var(--yellow)}

/* ---------- Header: fixed 24px from the top. Always navy blocks, yellow type.
   Over navy panels the blocks blend into the background on purpose. ---------- */
.site-head{
  --hb:var(--navy);--hf:var(--yellow);
  position:fixed;top:var(--hd-top);left:var(--gutter);right:var(--gutter);z-index:50;
  display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:6px 24px;
  pointer-events:none;
}
.site-head > *{pointer-events:auto}

.brand{
  display:grid;grid-template-columns:128px auto;grid-template-rows:44px 44px;gap:2px;
  text-decoration:none;color:var(--hf);
}
.brand .mark{
  grid-row:1 / span 2;display:grid;place-items:center;
  background:var(--hb);border-radius:var(--radius) 0 0 var(--radius);
}
.brand .mark img{display:block;width:100px;height:60px}
/* plain blocks, not flex: flex strips the spaces around the bold words.
   line-height equals the row height, which centres the text vertically. */
.brand .l1,.brand .l2{
  display:block;padding:0 16px;
  background:var(--hb);color:var(--hf);font-size:20px;line-height:44px;white-space:nowrap;
}
.brand .l1{border-radius:0 var(--radius) 0 0;font-weight:300}
.brand .l2{border-radius:0 0 var(--radius) 0;font-weight:300}
.brand .l1 b,.brand .l2 b{font-weight:600}

.site-head nav{display:flex;gap:2px}
.site-head nav a{
  display:flex;align-items:center;height:36px;padding:0 clamp(16px,2.6vw,36px);
  background:var(--hb);color:var(--hf);text-decoration:none;font-size:20px;line-height:1;
  transition:background-color .15s,color .15s;
}
.site-head nav a:first-child{border-radius:var(--radius) 0 0 var(--radius)}
.site-head nav a:last-child{border-radius:0 var(--radius) var(--radius) 0}
/* over + push: colours reversed (yellow block, navy type).
   The navy inset keeps the button readable over yellow panels. */
.site-head nav a:hover,
.site-head nav a:focus-visible,
.site-head nav a:active{
  background:var(--hf);color:var(--hb);
  box-shadow:inset 0 0 0 2px var(--hb);outline:none;
}
.site-head nav a:active{transform:translateY(1px)}

/* ---------- Hero statement ---------- */
.hero-in{padding:120px var(--gutter) 80px;width:100%}
.hero h1{
  max-width:24ch;
  font-weight:300;font-size:clamp(28px,3.6vw,56px);line-height:1.18;letter-spacing:-.01em;
}
.hero h1 b{display:block;margin-bottom:.35em;font-weight:600}

/* ---------- Carousel row ---------- */
.row-wrap{position:relative;width:100%}
.track{
  display:flex;align-items:flex-start;gap:var(--gap);
  height:var(--row-h);
  padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x proximity;overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.track::-webkit-scrollbar{display:none}
.track > *{flex:none;scroll-snap-align:start}

.track figure{
  height:100%;border-radius:var(--radius);overflow:hidden;
}
.track figure img{display:block;height:100%;width:auto;max-width:none}

/* placeholder shown until the exported image exists */
.track figure.ph{
  aspect-ratio:var(--r,1.15);
  display:grid;place-items:center;
  background-image:repeating-linear-gradient(135deg,transparent 0 10px,color-mix(in srgb,var(--fg) 14%,transparent) 10px 11px);
  border:1px dashed color-mix(in srgb,var(--fg) 40%,transparent);
}
.track figure.ph::after{content:attr(data-name);font-size:13px;font-weight:400;opacity:.65}

/* text cell */
.cell{
  width:var(--cell-w);max-width:80vw;height:100%;
  overflow-y:auto;scrollbar-width:none;
}
.cell::-webkit-scrollbar{display:none}
.cell h2{font-size:24px;font-weight:600;line-height:1.2;margin-bottom:.7em}
.cell p{margin-bottom:.9em}
.cell.todo{opacity:.6}

/* video: takes the row height, width follows the poster / video ratio */
.track video{
  display:block;height:100%;width:auto;aspect-ratio:auto 16/9;
  border-radius:var(--radius);object-fit:contain;
}

/* next / back arrow, sits under the row so the row itself stays centred */
.next{
  position:absolute;right:var(--gutter);top:calc(100% + 24px);
  width:44px;height:44px;display:grid;place-items:center;
  background:none;border:0;color:var(--fg);cursor:pointer;
}
.next svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.next.back svg{transform:rotate(180deg)}

/* ---------- Footer ---------- */
.foot{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:28px var(--gutter);
  background:var(--navy);color:var(--yellow);font-size:14px;
}
.foot .links{display:flex;gap:28px}

/* ---------- Small screens ---------- */
@media (max-width:720px){
  :root{--row-h:min(420px,calc(100svh - 260px));--gutter:20px}
  body{font-size:16px}
  .site-head{top:16px}
  .brand{grid-template-columns:72px auto;grid-template-rows:60px}
  .brand .l2{display:none}
  .brand .l1{border-radius:0 var(--radius) var(--radius) 0;font-size:17px;line-height:60px}
  .brand .mark img{width:50px;height:30px}
  .site-head nav a{height:32px;font-size:17px;padding:0 16px}
  .hero-in{padding-top:150px}
  .cell{width:min(var(--cell-w),78vw)}
  .cell h2{font-size:22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .next svg{transition:none}
}
