/* ============================================================
   adam.social/portfolio — built to match Figma 116:78701 @1280
   Each section = two equal 640/640 columns, vertically centered.
   The category marker is a banner pinned to the top of the left
   half across its whole group; content scrolls behind it.
   ============================================================ */

@view-transition { navigation: auto; }

:root{
  --paper:#ffffff;
  --ink:#141414;
  --muted-paper:#6b6b6b;
  --dark:#181818;
  --dark-text:#ffffff;
  --muted-dark:#999999;
  --green:#648e70;
  --algo-blue:#0095F6;
  --font:"Host Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sf:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--dark);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
a{color:inherit;}

.group--paper{background:var(--paper);color:var(--ink);}
.group--dark{background:var(--dark);color:var(--dark-text);}

/* group inner: equal halves + a pinned banner spanning the group */
/* 1/3 image : 2/3 text. minmax(0,1fr) prevents content wider than 1/3 from
   expanding the left column beyond its share. --col-left stored for JS. */
.gwrap{display:grid;grid-template-columns:minmax(0,1fr) 2fr;max-width:1280px;margin:0 auto;--col-left:1;--col-total:3;}

.banner{
  grid-column:1;
  grid-row:1 / -1;
  align-self:start;
  position:sticky;
  top:0;
  z-index:5;
  padding:40px 0 36px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.banner::before{
  content:'';
  position:absolute;
  top:0;bottom:0;
  right:100%;
  left:-100vw;
  background:inherit;
  pointer-events:none;
}
.group--dark .banner{background:var(--dark);}
.group--paper .banner{background:var(--paper);}
.banner__mark{width:280px;max-width:90%;height:auto;}
.banner__mark--sf{width:180px;}
.banner__name{font-size:50px;font-weight:500;letter-spacing:0;line-height:1.2;}
/* hero name links home; underline only on hover / keyboard focus */
a.banner__name{text-decoration:underline 2px transparent;text-underline-offset:.14em;transition:text-decoration-color .2s ease;}
@media (hover:hover){a.banner__name:hover{text-decoration-color:currentColor;}}
a.banner__name:focus-visible{text-decoration-color:currentColor;outline:none;}

/* Hero (Figma 1203:62320): the name is the page's h1; statements sit 18px apart, the
   "Outside of work" line 28px below. Bold phrases jump to their sections, with the same
   hover / focus underline as the name. */
.hero__title{margin:0;font:inherit;}
.hero__statements > .body:first-child{margin-top:0;}
.hero .hero__outside{margin-top:28px;}
.hero__link{font-weight:700;text-decoration:underline 2px transparent;text-underline-offset:.18em;transition:text-decoration-color .2s ease;}
@media (hover:hover){.hero__link:hover{text-decoration-color:currentColor;}}
.hero__link:focus-visible{text-decoration-color:currentColor;outline:none;}
/* 1280px+: the statements use the column's 53px right padding too (Figma: 587px wide) so each
   fits on one line, and "Outside of work" breaks before the org name. Narrower, they wrap naturally. */
.hero__br{display:none;}
@media (min-width:1280px){
  .hero__statements,.hero .hero__outside{margin-right:-53px;}
  .hero__br{display:inline;}
}

/* ── Banner pill — all properties scroll-driven via JS, no CSS transitions ── */
.banner{ transform-origin: top left; }
.banner--pill-mode::before { display: none; }
.banner__sub{font-size:30px;font-weight:300;color:var(--muted-paper);line-height:1.6;}

/* a section row */
.sec{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;align-items:center;}
.sec__left{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:24px;padding:72px 28px;}
.sec__right{padding:72px 53px;max-width:640px;margin-left:auto;margin-right:auto;}
.sec--overview .sec__left{padding:0;}            /* overview left is the banner */
/* Dear Algo: modest horizontal padding to centre the composer in the narrower 1/3 column */
#dear-algo .sec__left{padding-left:40px;padding-right:40px;}

/* type — exact Figma values */
.sec-label{font-size:30px;font-weight:300;line-height:1.6;}
.headline{margin:0;font-size:35px;font-weight:700;line-height:1.2;letter-spacing:0;}
.body{margin:18px 0 0;font-size:22px;font-weight:300;line-height:1.6;}
.disciplines{margin-top:22px;font-size:18px;font-weight:300;font-style:italic;line-height:1.6;color:var(--muted-dark);}
.group--paper .disciplines{color:var(--muted-paper);}
/* Skills lines: each skill leads with its separator, and the list is shifted left by one
   separator (bullet + space = .659em in Host Grotesk) with that strip clipped — so whichever
   skill starts a line has its bullet hidden, and no bullet ever dangles at a line end.
   Skills wrap as units; one too long for a whole line wraps with a hanging indent. */
.skills{display:block;margin-left:-.659em;clip-path:inset(-1em -1em -1em .659em);}
.skill{display:inline-block;padding-left:.659em;text-indent:-.659em;}
.skill .sep{display:inline-block;width:.659em;text-indent:0;}

.pill{display:inline-block;margin-top:28px;background:#f38d3a;color:#000;text-decoration:none;font-weight:700;font-size:22px;line-height:1.4;padding:5px 20px;border-radius:999px;position:relative;isolation:isolate;-webkit-tap-highlight-color:transparent;user-select:none;}
/* Rounded drawn arrow (same as the sub-pages' "See before & after" button), sized in em so it
   scales with the label; it stays on the same line as the last word */
.pill__end{white-space:nowrap;}
.pill__arrow{display:inline-block;width:.68em;height:.59em;margin-left:.45em;vertical-align:0;}
.pill::after{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle at var(--px,50%) var(--py,50%),#ebeeed 0%,#f38d3a 80%);opacity:0;transition:opacity .18s ease;pointer-events:none;z-index:-1;}
@media(hover:hover){.pill:hover::after{opacity:1;}}
@keyframes pill-spring{0%{transform:scale(.94)}55%{transform:scale(1.04)}100%{transform:scale(1)}}
.pill--pressed{transform:scale(.94);transition:transform .08s ease-out;}
.pill--releasing{animation:pill-spring .3s cubic-bezier(.34,1.56,.64,1) forwards;}

/* Jump-to nav (hero) — Figma 845:15675; hover frame 845:15647 (Tangerine, 10px out, radius 20).
   The frame is a ::before behind the link (icon + hidden name), so it grows with it.
   Hover: springs out from the icon and extends right to uncover the section name (the label's
   grid track animates 0fr → 1fr, like the How I work tool pills; the row stays on one line so
   the neighbours slide along). Press: shrinks. Release: springs back (hover transition). */
.jump{display:flex;flex-wrap:nowrap;align-items:center;gap:25px;padding-top:18px;}
.jump__label{flex-shrink:0;white-space:nowrap;font-size:22px;font-weight:700;line-height:1.6;}
.jump__link{position:relative;display:flex;align-items:center;flex-shrink:0;isolation:isolate;color:#000;text-decoration:none;-webkit-tap-highlight-color:transparent;outline:none;}
.jump__link img{display:block;}
.jump__link::before{content:'';position:absolute;inset:-10px;z-index:-1;border-radius:20px;background:#f29a21;transform:scale(0);transform-origin:27px 50%;transition:transform .16s cubic-bezier(.4,0,1,1);}
.jump__name{display:grid;grid-template-columns:0fr;transition:grid-template-columns .3s ease;}
.jump__name>span{overflow:hidden;min-width:0;white-space:nowrap;font-size:22px;font-weight:700;line-height:1.2;opacity:0;transition:opacity .2s ease;}
.jump__name>span::before{content:'';display:inline-block;width:10px;}   /* gap between icon and name */
@media (hover:hover){
  .jump__link:hover::before{transform:scale(1);transition:transform .42s cubic-bezier(.34,1.56,.64,1);}
  .jump__link:hover .jump__name{grid-template-columns:1fr;}
  .jump__link:hover .jump__name>span{opacity:1;transition-delay:.06s;}
}
.jump__link:focus-visible::before{transform:scale(1);transition:transform .42s cubic-bezier(.34,1.56,.64,1);}
.jump__link:focus-visible .jump__name{grid-template-columns:1fr;}
.jump__link:focus-visible .jump__name>span{opacity:1;}
.jump__link.is-pressed::before{transform:scale(.82);transition:transform .1s ease-out;}
.jump__link.is-popped::before{animation:jump-pop .5s ease-out both;}
@keyframes jump-pop{0%{transform:scale(.82)}40%{transform:scale(1.12)}65%{transform:scale(.96)}85%{transform:scale(1.02)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){ .jump__link::before,.jump__name,.jump__name>span{transition:none !important;animation:none !important;} }

/* visual placeholders — swap for real exports */
.visual{border:1px dashed rgba(140,140,140,.5);border-radius:18px;width:300px;max-width:100%;min-height:560px;display:flex;align-items:center;justify-content:center;color:var(--muted-dark);font-size:13px;text-align:center;padding:24px;}
.visual--short{min-height:300px;}
.group--paper .visual{color:var(--muted-paper);}

/* section visual images — replace placeholders */
.section-img{max-width:100%;height:auto;display:block;}

/* device-frame: uniform 322×605 container to match Threads in IG phone size */
.device-frame{width:322px;height:605px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;}
.device-frame a{display:block;width:100%;height:100%;}
.device-frame img{width:100%;height:100%;object-fit:contain;display:block;}

/* Station image — constrained to match card-stack width */
.station-img{max-width:450px;width:100%;height:auto;display:block;}

/* ============================================================
   Dear algo composer (live) — SF Pro, custom +/chevron
   ============================================================ */
.composer{display:flex;gap:13px;width:100%;max-width:580px;align-items:flex-start;font-family:var(--font-sf);text-align:left;}
.ca-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center;flex:0 0 auto;background:#222;}
.ca-main{flex:1 1 auto;min-width:0;padding-top:2px;}
.ca-head{display:flex;align-items:center;gap:8px;margin-bottom:9px;font-size:16px;line-height:1;}
.ca-user{color:var(--dark-text);font-weight:600;}
.ca-chev{display:inline-flex;width:9px;height:14px;color:#787878;}
.ca-chev svg{display:block;width:100%;height:100%;}
.ca-pill{display:inline-flex;align-items:center;gap:6px;background:#1c1c1c;color:#999;border-radius:999px;padding:6px 12px;font-size:14px;}
.ca-plus{display:inline-flex;width:13px;height:13px;color:#999;}
.ca-plus svg{display:block;width:100%;height:100%;}
.ca-line{font-size:20px;line-height:1.3;}
.ca-ph{color:var(--muted-dark);}
.ca-icon{display:none;vertical-align:-5px;margin-right:6px;}
.ca-icon svg{display:block;}
.ca-algo{color:var(--dark-text);text-decoration:none;}
.ca-algo.is-chip{color:var(--algo-blue);font-weight:600;}
.ca-rest{color:var(--dark-text);}
.ca-cursor{display:inline-block;width:2px;height:1.05em;background:var(--dark-text);vertical-align:-3px;margin-left:1px;animation:blink 1.05s steps(1,end) infinite;}
@keyframes blink{50%{opacity:0;}}

/* ============================================================
   Content Standards card stack
   ============================================================ */
.cs-left {
  gap: 8px;
  overflow: visible; /* cards fly off freely; z-index:0 keeps them below the sticky banner */
  padding: 48px 28px;
  position: relative;
  z-index: 0;
}

.cs-deck {
  position: relative;
  width: 450px;
  height: 313px; /* 253 + 10 × 6 */
  flex-shrink: 0;
  touch-action: none;
}

.cs-card {
  position: absolute;
  left: 0;
  width: 450px;
  height: 253px;
  border: 0.5px solid #1d1d1d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  will-change: transform;
}

.cs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ============================================================
   Expert Coaching card stack (same card styles as cs-deck)
   ============================================================ */
.ec-left {
  gap: 8px;
  overflow: visible;
  padding: 48px 28px;
  position: relative;
  z-index: 0;
}

.ec-deck {
  position: relative;
  width: 450px;
  height: 283px; /* 253 + 6 × 5 */
  flex-shrink: 0;
  touch-action: none;
}

/* Between the mobile breakpoint and full desktop the left column (1/3 of the grid)
   is narrower than the 450px deck, so the resting deck spills off the viewport-left
   and overlaps the text on the right. Scale it to fit its column at these widths.
   overflow:visible is kept, so dragging/throwing still sends cards off the viewport. */
@media (min-width:861px) and (max-width:960px)  { .cs-deck,.ec-deck{transform:scale(.60);} }
@media (min-width:960px) and (max-width:1080px) { .cs-deck,.ec-deck{transform:scale(.66);} }
@media (min-width:1080px) and (max-width:1180px){ .cs-deck,.ec-deck{transform:scale(.74);} }
@media (min-width:1180px) and (max-width:1280px){ .cs-deck,.ec-deck{transform:scale(.82);} }

/* ============================================================
   Baseline UFI
   ============================================================ */
.baseline-left { gap: 52px; }

.ufi {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--font-sf);
  font-size: 19px;
  line-height: 1.33;
  color: #cccccc;
  font-variant-numeric: tabular-nums;
}

.ufi-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  flex-shrink: 0;
}
.ufi-btn:focus-visible { outline: 2px solid #555; outline-offset: 4px; border-radius: 4px; }

.ufi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.ufi-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ufi-icon svg path {
  fill: currentColor;
}

/* Heart: JS swaps hp-ring ↔ hp-solid and animates hp-solid fill inline */
.ufi-like.is-liked { color: #a02635; }

/* Slot-machine count */
.ufi-slot {
  display: inline-block;
  overflow: visible;  /* allow outgoing digit to travel above the slot */
  height: 1.33em;
  min-width: 2ch;
  /* clip bottom so incoming digit is hidden before it rises in; allow ~1 digit height above */
  clip-path: inset(-150% -3px 0 -3px);
}
#ufi-like .ufi-slot { min-width: 3ch; }
.ufi-num {
  display: block;
  line-height: 1.33;
  white-space: nowrap;
}

/* Bounce on click (comment / repost / send icon) */
@keyframes ufi-bounce {
  0%   { transform: scale(1); }
  22%  { transform: scale(0.82); }
  55%  { transform: scale(1.14); }
  80%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
.ufi-icon.is-bouncing { animation: ufi-bounce 0.32s cubic-bezier(0.36,0.07,0.19,0.97) both; }

/* ============================================================
   Threads in Instagram — phone mockup with h-scroll feed
   ============================================================ */
.tifu-left { padding: 24px 50px; gap: 8px; }

.tifu-phone {
  position: relative;
  width: 322px;
  height: 605px;
  flex-shrink: 0;
}

.tifu-frame {
  position: absolute;
  left: 0;
  top: 0.08px;
  width: 321px;
  height: 615px;
  pointer-events: none;
  z-index: 4;
}

.tifu-screen {
  position: absolute;
  left: 35px;
  top: 30px;
  width: 252px;
  height: 546px;
  border-radius: 25.846px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tifu-tabbar-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: block;
  z-index: 2;
}

.tifu-static-img {
  width: 100%;
  display: block;
  flex-shrink: 0;
}


.tifu-feed-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 252px;
  height: 242px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  flex-shrink: 0;
  -ms-overflow-style: none;
}
.tifu-feed-scroll::-webkit-scrollbar { display: none; }

.tifu-feed-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-width: max-content;
  cursor: grab;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.tifu-hscroll-img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
.tifu-feed-track.is-dragging { cursor: grabbing; }

.tifu-card {
  width: 206.683px;
  background: white;
  border: 0.323px solid #dbdbdb;
  border-radius: 10.338px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 10.338px 0;
}

.tifu-card-head {
  display: flex;
  align-items: center;
  padding: 0 10.338px 0 5.169px;
  height: 21.969px;
  flex-shrink: 0;
}
.tifu-card-avatar {
  width: 20.677px; height: 20.677px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0; margin-right: 5.169px;
}
.tifu-card-user-wrap { flex: 1 0 0; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.tifu-card-username-row { display: flex; align-items: center; gap: 2.466px; }
.tifu-card-username {
  font-family: var(--font-sf);
  font-size: 9.046px; font-weight: 600; color: black;
  line-height: 11.631px; letter-spacing: -0.0969px; white-space: nowrap;
}
.tifu-verified {
  display: inline-block;
  width: 7.754px; height: 7.754px;
  flex-shrink: 0;
}
.tifu-card-meta { display: flex; align-items: center; gap: 4.932px; flex-shrink: 0; }
.tifu-card-time {
  font-family: var(--font-sf);
  font-size: 9.046px; color: #737373;
  line-height: 11.631px; letter-spacing: -0.0969px; white-space: nowrap;
}
.tifu-card-more {
  font-family: var(--font-sf);
  font-size: 9px; color: black; letter-spacing: 0.5px; flex-shrink: 0;
}

.tifu-card-body {
  padding: 7.754px 10.338px;
  display: flex; flex-direction: column; gap: 7.754px;
  flex-shrink: 0;
}
.tifu-card-text {
  font-family: var(--font-sf);
  font-size: 9.046px; color: black;
  line-height: 11.631px; letter-spacing: -0.0969px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
}
.tifu-card-text.clamp-10 { -webkit-line-clamp: 10; }
.tifu-card-text.clamp-none { -webkit-line-clamp: unset; overflow: visible; }
.tifu-more { color: #737373; }

.tifu-card-img {
  width: 81.415px; height: 108.554px;
  border-radius: 5.169px; object-fit: cover; flex-shrink: 0;
}

.tifu-carousel { display: flex; gap: 3.877px; height: 108.554px; width: 224.862px; flex-shrink: 0; }
.tifu-carousel-img {
  width: 81.002px; height: 108.554px;
  border: 0.323px solid #dbdbdb; border-radius: 5.169px;
  overflow: hidden; flex-shrink: 0;
}
.tifu-carousel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tifu-card-ufi {
  display: flex; align-items: center; gap: 15.508px;
  height: 10.338px; padding: 0 10.338px; flex-shrink: 0;
}
.tifu-ufi-action { display: flex; align-items: center; gap: 2.585px; height: 10.338px; flex-shrink: 0; }
.tifu-ufi-icon { width: 11.631px; height: 11.631px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tifu-ufi-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tifu-ufi-count { font-family: var(--font-sf); font-size: 7.754px; color: #424242; line-height: 10.338px; white-space: nowrap; }

.tifu-card-foot {
  display: flex; align-items: center;
  padding: 9.046px 10.338px 1.292px; flex-shrink: 0;
}
.tifu-facepile { display: flex; align-items: center; margin-right: 3.877px; flex-shrink: 0; }
.tifu-facepile img {
  width: 10.338px; height: 10.338px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid white; margin-left: -2px; flex-shrink: 0;
}
.tifu-facepile img:first-child { margin-left: 0; }
.tifu-foot-text { font-family: var(--font-sf); font-size: 7.754px; color: #737373; line-height: 10.338px; white-space: nowrap; }

/* Endcard */
.tifu-endcard {
  width: 206.683px;
  background: white;
  border: 0.323px solid #dbdbdb;
  border-radius: 10.338px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  gap: 7.754px;
  padding: 10.338px;
  align-items: center;
}
.tifu-collage { height: 93.592px; position: relative; overflow: hidden; width: 100%; flex-shrink: 0; }
.tifu-collage img { position: absolute; border-radius: 50%; object-fit: cover; }
.tifu-endcard-text {
  font-family: var(--font-sf);
  font-size: 12.923px; font-weight: 700;
  line-height: 16.154px; text-align: center;
  color: black; letter-spacing: -0.2908px; margin: 0; flex-shrink: 0;
}
.tifu-endcard-btn {
  border: 0.808px solid #212328; border-radius: 7.754px;
  padding: 7.754px 12.923px;
  font-family: var(--font-sf); font-size: 9.05px; font-weight: 600;
  color: #0c1014; width: 185.885px;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap; flex-shrink: 0;
  background: none; cursor: pointer; letter-spacing: -0.15px;
}


/* ============================================================
   Friends of Sunset Dunes — Figma 777:14855 / 14923 / 14928 / 14960
   ============================================================ */
.group--fosd{background:#c47695;color:#fff;}
/* Figma fits line 2 in 534px; browsers measure it at 534.1px and wrap to 4 lines. Borrow a few px of padding. */
.group--fosd .headline{margin-right:-4px;}
.group--shell{background:#e9dbca;color:#000;}
.group--shell .disciplines{color:#000;}

/* Logo = text-only version under the original. The original (merged sticker outline) shows at
   rest; once the plover detaches it fades out, so no second plover or outline bridge is left behind. */
.fosd-logo{position:relative;display:block;width:336px;max-width:100%;}
.fosd-logo img{display:block;width:100%;height:auto;}
.fosd-logo .fosd-logo__full{position:absolute;inset:0;transition:opacity .12s linear;}
.is-plover-free .fosd-logo__full{opacity:0;}

/* Plover pill — the track spans from the plover's spot in the logo to the end of the
   Sunset Dunes group; JS places it and drives the morph (see portfolio.js) */
.sd-group{position:relative;}
.sd-plover-track{position:absolute;bottom:0;z-index:6;pointer-events:none;visibility:hidden;}
.sd-plover-track.is-ready{visibility:visible;}
.sd-plover{position:sticky;top:25px;}
.sd-plover__img{position:relative;display:block;width:100%;height:auto;transform-origin:0 0;}
.sd-plover__pill{position:absolute;left:0;top:0;background:#c47695;opacity:0;}
/* 393px is wider than the column's 28px padding allows; let it use the padding but never the next column */
.yonk-logo{display:block;width:393px;max-width:calc(100% + 56px);height:auto;}

/* Full-bleed video sections. The poster image sits under the video (and is all that
   shows under reduced motion); the video fades in once its first frame plays.
   object-position keeps each crop's subject (the promenade / the people) in view. */
.sd-media{position:relative;overflow:hidden;isolation:isolate;background:#b9bdb9;}
.sd-media__poster img,.sd-media__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;}
.sd-media__video{opacity:0;transition:opacity .4s ease;}
.sd-media__video.is-playing{opacity:1;}
#sd-drone .sec{min-height:442px;}   /* Figma frame is a fixed 442px tall so more of the video shows */
#sd-drone .sd-media__poster img,#sd-drone .sd-media__video{object-position:30% 50%;}
#sd-promenade .sd-media__poster img,#sd-promenade .sd-media__video{object-position:42% 50%;}

.sd-card{margin:0;border-radius:20px;font-size:22px;font-weight:300;line-height:1.6;}
.sd-card strong{font-weight:700;}
.sd-card--sand{background:#f7f1d9;color:#000;padding:20px;}
.sd-card--fog{background:#4a7f8a;color:#fff;padding:30px;}

.sd-stack{display:flex;flex-direction:column;align-items:flex-start;gap:22px;}
.sd-stack > .sd-card,.sd-stack > .sd-skills{align-self:stretch;}
.sd-stack .pill{margin-top:0;white-space:nowrap;}
.sd-skills{margin:0;min-height:78px;padding:10px 20px;background:#f7f1d9;color:#000;border-radius:20px;font-size:18px;font-weight:300;font-style:italic;line-height:1.6;}

/* ============================================================
   responsive — stack to one column, banner un-pins
   ============================================================ */
@media (max-width:860px){
  html,body{max-width:100%;}
  body{overflow-x:hidden;}

  .gwrap{grid-template-columns:1fr;}
  .banner{grid-column:1;grid-row:auto;position:static;padding:32px 24px 12px;}
  .banner::before{display:none;}
  .banner__mark{width:220px;}
  .banner__name{font-size:38px;line-height:1.2;}

  .sec{grid-column:1;grid-template-columns:1fr;}
  .sec__left{padding:24px 24px 16px;}
  /* hide the banner logo column for non-hero groups only;
     the hero left column contains the "Adam Egelman" name and must stay visible */
  .group:not(.hero) .sec--overview .sec__left{display:none;}
  .sec__right{padding:24px 24px 56px;max-width:none;}
  .group--paper .sec__right{padding:28px 24px 60px;}

  .headline{font-size:30px;}
  .body{font-size:19px;}
  .sec-label{font-size:24px;}
  .pill{font-size:19px;}

  /* Composer — prevent overflow */
  .composer{max-width:100%;}

  /* Card decks — shrink to 300px and centre */
  .cs-left,.ec-left{align-items:center;padding:32px 24px;}
  .cs-deck{width:300px;height:209px;}   /* 300/450 × 313 */
  .cs-card{width:300px;height:169px;}   /* 300/450 × 253 */
  .ec-deck{width:300px;height:189px;}   /* 300/450 × 283 */

  /* UFI — smaller */
  .ufi{gap:12px;font-size:13px;}
  .ufi-btn{height:18px;gap:4px;}
  .ufi-icon{width:18px;height:18px;}

  /* Hero left column — needs explicit padding since sec--overview .sec__left has padding:0 */
  .hero .sec--overview .sec__left{padding:72px 24px 56px;}

  /* Sunset Dunes — the video sections' empty left column stacks into a video-only band
     above the text (like every other section's visual), so more footage shows */
  .yonk-logo{max-width:100%;}
  .sd-plover-track{display:none;}   /* banners don't pin on mobile; the logo keeps its plover */
  .sd-media .sec__left{display:block;padding:0;height:clamp(210px,60vw,340px);}
  .sd-media .sec__right{padding:0 24px 48px;}
  .sd-card{font-size:19px;}
  .sd-card--fog{padding:24px;}
  .sd-stack .pill{white-space:normal;}
}

/* Phones get portrait video/poster crops (see the <source media> in index.html) framed so
   their subject sits in the top band: the drone's far promenade, the promenade's faces */
@media (max-width:540px){
  #sd-drone .sd-media__poster img,#sd-drone .sd-media__video,
  #sd-promenade .sd-media__poster img,#sd-promenade .sd-media__video{object-position:50% 0%;}
}
