:root {
  --ink: #111614;
  --text: #1F2622;
  --muted: #4D5A54;   /* ≥4.5:1 on every background, incl. the green top of the page */
  --accent: #1F6B52;
  --primary: #0F3D2E;
  --mint: #B6E3C8;
  --mist: #D5E2DB;
  --line: #E3E8E5;
  --white: #FFFFFF;
  --black: #0B1A14;
  --shadow: 0 2px 8px rgb(11 26 20 / 0.10);
  --font-display: "Fira Sans Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #D3E2DA 0%, #F2F3F1 100%) fixed;
  background-color: #EEF2EF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ---------- Accessibility ---------- */
/* keyboard focus: visible everywhere, and never hidden under the sticky menu bar */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus { scroll-margin-top: 50px; scroll-margin-bottom: 24px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
  translate: 0 -150%;
}
.skip-link:focus { translate: 0 0; }
#main:focus { outline: none; }   /* skip-link target, not a control */
/* respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
img { display: block; max-width: 100%; }

/* Logo */
.logo { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: -0.01em; }
.logo__web { font-weight: 800; }
.logo__bros { font-weight: 400; color: var(--accent); }

/* ---------- Menu bar ---------- */
.menubar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 80px;
  background: var(--black);
  color: var(--white);
}
.menubar .logo { font-size: 17px; }
.menubar .logo__bros { color: var(--mint); }
.menubar__left { display: flex; align-items: center; gap: 24px; }
/* top nav: All menu (dropdown), All work, Blogs, Contact */
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav__menu { position: relative; }
.topnav__item {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: rgb(255 255 255 / .85);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.topnav__item:hover,
.topnav__toggle[aria-expanded="true"] { background: rgb(255 255 255 / .14); color: var(--white); }
.topnav__item:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.topnav__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgb(11 26 20 / .22), 0 0 0 1px rgb(11 26 20 / .06);
  animation: drop-in .2s var(--ease) both;
}
@keyframes drop-in { from { opacity: 0; translate: 0 -4px; } }
.topnav__drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.topnav__drop a:hover,
.topnav__drop a:focus-visible { background: var(--accent); color: var(--white); outline: none; }
.topnav__drop--work { min-width: 280px; }
.topnav__drop a .work__tag { flex-shrink: 0; }
.topnav__drop a:hover .work__tag, .topnav__drop a:focus-visible .work__tag { background: rgb(255 255 255 / .9); }
.topnav__sep { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .topnav__drop { animation: none; } }

.menubar__right { display: flex; align-items: center; gap: 24px; }
.menubar__now,
.menubar__clock {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 16px;
}
.menubar__clock { font-variant-numeric: tabular-nums; }

/* tool icons, like menu bar extras */
.menubar__tools { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.menubar__tools img { width: 20px; height: 20px; object-fit: contain; }

/* music: pick a local file, then play / pause */
.music { display: flex; align-items: center; gap: 4px; }
.music__pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(255 255 255 / .85);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.music__pick:hover { background: rgb(255 255 255 / .14); color: var(--white); }
.music__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* the real input is visually hidden: show its focus on the label */
#music-file:focus-visible + .music__pick { outline: 2px solid var(--mint); outline-offset: 1px; }
.music__play {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--mint);
  font-size: 11px;
  cursor: pointer;
}
.music__play[hidden] { display: none; }
.music__play:hover { background: rgb(255 255 255 / .14); }
.music__play:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.music.is-playing .music__pick span[aria-hidden] { color: var(--mint); animation: note-bob 1s ease-in-out infinite; }
@keyframes note-bob { 50% { translate: 0 -2px; } }
@media (max-width: 900px) { .menubar__tools { display: none; } }

/* ---------- Desktop stage (1440 × 900 design) ---------- */
.desktop {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: calc(100vh - 34px);
  height: calc(100dvh - 34px);
  min-height: 680px;
  margin: 0 auto;
}

/* Hero */
.hero {
  position: absolute;
  top: 44px;
  left: 50%;
  translate: -50%;
  width: 720px;
  text-align: center;
  z-index: 2;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__lede {
  margin: 20px auto 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Illustration */
.illustration {
  position: absolute;
  bottom: 52px;   /* the cut-off stand ends behind the dock bar (≈40–88px from the bottom) */
  left: 50%;
  translate: -50%;
  /* fill the space between hero and dock */
  height: min(600px, calc(100% - 336px));
  width: auto;
  pointer-events: none;
}

/* Folders */
.folders {
  position: absolute;
  top: 60px;
  right: 140px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100px;
  border-radius: 8px;
  outline-offset: 6px;
}
.folder__icon {
  position: relative;
  width: 100px;
  height: 72px;
  margin-top: 7px;
  border-radius: 8px;
  background: var(--folder);
  box-shadow: var(--shadow);
  transition: transform .18s ease, filter .18s ease;
}
.folder__icon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 8px;
  width: 40px;
  height: 9px;
  border-radius: 4px 4px 0 0;
  background: var(--folder);
}
/* paper peeking out of the folder */
.folder__icon::after {
  content: "";
  position: absolute;
  inset: 6px 8px auto auto;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / .35);
}
.folder--accent  { --folder: var(--accent); }
.folder--primary { --folder: var(--primary); }
.folder--mint    { --folder: #7FC4A0; }
.folder { position: relative; }
.folder__badge {
  position: absolute;
  top: -2px;
  right: -10px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #C42B1C;   /* white text needs 4.5:1; #FF5F57 was 3:1 */
  color: var(--white);
  font: 600 10px/14px var(--font-body);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgb(11 26 20 / .2);
}
.folder__label,
.photo a > span:last-child {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.folder:hover .folder__icon,
.folder:focus-visible .folder__icon { transform: translateY(-3px); filter: brightness(1.12); }

/* Desktop files */
.photos {
  position: absolute;
  bottom: 140px;
  left: 80px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 90px);
  column-gap: 40px;
  row-gap: 32px;
}
.photo--readme  { grid-column: 1; grid-row: 1; }
.photo--cake { grid-column: 1; grid-row: 2; }
.photo--clinic  { grid-column: 2; grid-row: 2; }
.photo--cafe    { grid-column: 3; grid-row: 2; }
.photo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 90px;
  outline-offset: 4px;
}
.photo img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.photo a:hover img,
.photo a:focus-visible img,
.photo a:hover .doc,
.photo a:focus-visible .doc { transform: translateY(-3px); box-shadow: var(--shadow); }
.photo img.photo__icon { object-fit: contain; border-radius: 0; filter: drop-shadow(0 4px 6px rgb(11 26 20 / .18)); }
.photo a:hover img.photo__icon,
.photo a:focus-visible img.photo__icon { box-shadow: none; filter: drop-shadow(0 8px 12px rgb(11 26 20 / .24)); }
.photo.is-lifted img.photo__icon { box-shadow: none; filter: drop-shadow(0 14px 18px rgb(11 26 20 / .28)); }

/* text document icon */
.doc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 70px;
  height: 90px;
  padding: 22px 12px 0;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 3px rgb(11 26 20 / .12);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.doc::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--mist);
  border-bottom-left-radius: 3px;
}
.doc i { display: block; height: 3px; border-radius: 2px; background: var(--mist); }
.doc i:nth-child(1) { width: 70%; background: var(--accent); }
.doc i:nth-child(4) { width: 80%; }
.doc i:nth-child(5) { width: 55%; }

/* ---------- Dock ---------- */
.dock-wrap {
  position: absolute;
  left: 50%;
  bottom: 8px;
  translate: -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.dock {
  display: flex;
  flex-direction: column;
  width: 396px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: width .45s var(--ease), border-radius .45s ease, box-shadow .45s ease;
}
.dock.is-open {
  width: 440px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(11 26 20 / 0.18), 0 0 0 1px rgb(11 26 20 / 0.05);
}

/* bar: equal side columns keep the label truly centred */
.dock__bar {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
}
.logo--dock { color: var(--ink); }
/* both labels share one grid cell and cross-slide */
.dock__label {
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 4px 0;
}
.dock__cta {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: opacity .3s ease, translate .4s var(--ease);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 16px;
}
.dock__cta--start::before { content: "[ "; color: var(--accent); }
.dock__cta--start::after  { content: " ]"; color: var(--accent); }
.dock__cta--start:hover { color: var(--accent); }
.dock__cta--all { opacity: 0; translate: 0 100%; pointer-events: none; }
.dock.is-open .dock__cta--start { opacity: 0; translate: 0 -100%; pointer-events: none; visibility: hidden; transition: opacity .3s ease, translate .4s var(--ease), visibility 0s .4s; }
.dock.is-open .dock__cta--all { opacity: 1; translate: 0 0; }
.dock__menu {
  justify-self: end;
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--accent);
}
.dock__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 24px/1 var(--font-body);
  transition: opacity .25s ease, rotate .35s var(--ease), scale .35s ease;
}
.dock__icon--close { font-size: 18px; color: var(--ink); opacity: 0; rotate: -90deg; scale: .6; }
.dock.is-open .dock__icon--open  { opacity: 0; rotate: 90deg; scale: .6; }
.dock.is-open .dock__icon--close { opacity: 1; rotate: 0deg; scale: 1; }

/* panel: grows upward (the dock is bottom-anchored) */
.dock__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.dock.is-open .dock__panel { grid-template-rows: 1fr; }
.dock__panel-inner { min-height: 0; overflow: hidden; }
.worklist {
  max-height: calc(100dvh - 170px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
/* stagger order for the list (kept out of inline style= so the CSP can forbid inline styles) */
.worklist li:nth-child(1) { --i: 0; }
.worklist li:nth-child(2) { --i: 1; }
.worklist li:nth-child(3) { --i: 2; }
.worklist li:nth-child(4) { --i: 3; }
.worklist li:nth-child(5) { --i: 4; }
.worklist li:nth-child(6) { --i: 5; }
.worklist li:nth-child(7) { --i: 6; }
.worklist li:nth-child(8) { --i: 7; }
.worklist li {
  opacity: 0;
  translate: 0 10px;
  transition: opacity .2s ease, translate .2s ease;
}
.dock.is-open .worklist li {
  opacity: 1;
  translate: 0 0;
  transition: opacity .35s ease, translate .45s var(--ease);
  transition-delay: calc(.08s + var(--i) * .04s);
}
.worklist li + li .work { border-top: 1px solid #EEF1EF; }
.work {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  transition: background .15s ease;
}
.work:hover, .work:focus-visible { background: #F1F5F2; outline: none; }
.work img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  background: #EEF2EF;
  transition: scale .25s var(--ease);
}
.work:hover img { scale: 1.06; }
.work img.work__thumb--logo { object-fit: contain; padding: 4px; }
.work__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--ink);
}
.work__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: #E6F2EC;
  padding: 3px 8px;
  border-radius: 99px;
}

@media (prefers-reduced-motion: reduce) {
  .dock, .dock__panel, .worklist li, .dock__icon, .dock__cta { transition: none !important; }
}
.copyright {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

/* ---------- Draggable icons (every layout) ---------- */
/* A finger that lands on an icon drags it: no page pan, no text selection,
   no iOS long-press link preview. */
.folder, .photo {
  position: relative;   /* so the raised z-index of a held icon applies */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.folder img, .photo img { -webkit-user-drag: none; }
.is-lifted { will-change: translate, rotate, scale; }
@media (hover: hover) {
  .folder, .photo { cursor: grab; }
  .is-dragging { cursor: grabbing; }
}
@media (min-width: 1101px) {
  .folder, .photo { position: relative; }
  /* the icon itself scales/tilts via JS; children only deepen their shadow */
  .is-lifted .folder__icon,
  .is-lifted img,
  .is-lifted .doc {
    transform: none;
    box-shadow: 0 14px 28px rgb(11 26 20 / 0.20);
    transition: box-shadow .25s ease;
  }
}

/* ---------- Tablet & mobile: stack into normal flow ---------- */
@media (max-width: 1100px) {
  .menubar { padding: 0 16px; }
  .menubar__now { display: none; }
  .menubar__right { gap: 12px; }

  .desktop {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 16px 24px;
  }
  .hero, .illustration, .folders, .photos, .dock-wrap {
    position: static;
    translate: none;
  }
  .hero { width: 100%; max-width: 720px; }
  .hero__title { font-size: clamp(42px, 11vw, 68px); }
  .illustration { width: min(320px, 72vw); height: auto; margin: -12px 0; }

  .folders {
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 24px;
  }
  .photos {
    order: 4;
    grid-template-columns: repeat(4, 90px);
    column-gap: 20px;
  }
  .photo--readme, .photo--cake, .photo--clinic, .photo--cafe { grid-row: auto; grid-column: auto; }

  .dock-wrap { order: 5; width: 100%; }
  .dock, .dock.is-open { width: 100%; max-width: 440px; }
}

@media (max-width: 480px) {
  .menubar__clock { display: none; }
  .menubar__tools { display: none; }
  .music__name { display: none; }
  .menubar { padding: 0 10px; gap: 8px; }
  .menubar__right { gap: 2px; }
  .music__pick { padding: 0 6px; }
  .topnav { gap: 0; }
  .topnav__item { padding: 0 6px; font-size: 12px; letter-spacing: 0.03em; }
  .menubar__left { gap: 8px; }
  .menubar .logo { font-size: 15px; }
  .topnav__drop, .topnav__drop--work { position: fixed; top: 40px; left: 8px; right: 8px; min-width: 0; }
  .folders { gap: 28px 16px; }
  .folder, .folder__icon { width: 72px; }
  .folder__icon { height: 54px; }
  .folder__label { font-size: 12px; }
  .photos { grid-template-columns: repeat(2, 90px); gap: 24px 40px; }
}

/* ---------- Tablet + phone: a mini desktop that fits one screen ----------
   hero on top · files down the left · folders down the right ·
   illustration in the middle, its cut-off stand tucked behind the dock ·
   dock pinned to the bottom */
@media (max-width: 1100px) {
  .desktop {
    --tuck: 36px;   /* half the dock bar (24) + the 12px gap above it */
    height: calc(100vh - 34px);
    height: calc(100dvh - 34px);
    overflow: hidden;
    display: grid;
    grid-template-columns: var(--side, 52px) minmax(0, 1fr) var(--side, 52px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "hero  hero hero"
      "files art  folders";
    gap: 16px 8px;
    /* bottom space is reserved for the dock: --dock-space is measured in script.js */
    padding: 18px 12px var(--dock-space, 86px);
  }
  .hero { grid-area: hero; }
  .folders, .photos { position: relative; inset: auto; z-index: 2; }   /* above the art; drop desktop offsets */
  .hero__title { font-size: clamp(30px, 9.4vw, 56px); }
  .hero__lede { margin-top: 10px; font-size: 14px; line-height: 1.5; }

  /* illustration: centred, bottom edge runs down behind the dock bar */
  .illustration {
    grid-area: art;
    align-self: end;
    justify-self: center;
    width: 100%;
    /* a little bigger than its slot: it grows up and out from the bottom centre,
       under the side columns (stickers stay on top), without moving the layout */
    scale: var(--art-scale, 1.18);
    transform-origin: 50% 100%;
    height: calc(100% + var(--tuck));
    max-height: var(--art-max, 400px);
    margin-top: 0;
    margin-bottom: calc(-1 * var(--tuck));
    object-fit: contain;
    object-position: 50% 100%;
  }

  /* folders: a column on the right, from the top */
  .folders { grid-area: folders; align-self: start; flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 12px; width: auto; }
  .folder { width: 52px; gap: 3px; }
  .folder__icon { width: 44px; height: 32px; margin-top: 5px; border-radius: 5px; }
  .folder__icon::before { top: -4px; left: 5px; width: 18px; height: 6px; }
  .folder__icon::after { inset: 4px 5px auto auto; width: 14px; height: 3px; }
  .folder__label { font-size: 10px; line-height: 12px; letter-spacing: 0.03em; }
  .folder__badge { top: -3px; right: -4px; padding: 0 4px; font-size: 8px; line-height: 12px; }

  /* files: a column on the left, sitting at the bottom */
  .photos { grid-area: files; align-self: end; grid-template-columns: 1fr; gap: 12px; width: auto; }
  .photo--readme, .photo--cake, .photo--clinic, .photo--cafe { grid-row: auto; grid-column: auto; }
  .photo a { width: 52px; gap: 3px; }
  .photo img { width: 44px; height: 44px; }
  .photo a > span:last-child { font-size: 10px; line-height: 12px; letter-spacing: 0.03em; }
  .doc { width: 36px; height: 44px; padding: 10px 6px 0; gap: 3px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
  .doc::before { width: 10px; height: 10px; }
  .doc i { height: 2px; }

  .dock-wrap { position: absolute; left: 16px; right: 16px; bottom: 8px; width: auto; gap: 4px; }
  .dock, .dock.is-open { max-width: none; }
  .copyright { font-size: 10px; line-height: 14px; text-wrap: balance; }
}
/* phone: no logo in the menu bar; hero left-aligned, 16px lower */
@media (max-width: 760px) {
  .menubar .logo { display: none; }
  .hero { margin-top: 16px; text-align: left; }
  .hero__lede { margin-left: 0; margin-right: 0; }
}
/* tablet: same layout, roomier */
@media (min-width: 761px) and (max-width: 1100px) {
  .desktop { --side: 84px; --art-max: 560px; --art-scale: 1; padding-left: 24px; padding-right: 24px; gap: 24px 16px; }
  .hero { justify-self: center; max-width: 640px; }
  .hero__lede { font-size: 16px; }
  .folders { gap: 18px; }
  .folder { width: 80px; gap: 5px; }
  .folder__icon { width: 72px; height: 52px; margin-top: 7px; border-radius: 7px; }
  .folder__icon::before { top: -6px; left: 7px; width: 28px; height: 8px; }
  .folder__icon::after { inset: 6px 7px auto auto; width: 24px; height: 4px; }
  .folder__label { font-size: 12px; line-height: 14px; }
  .folder__badge { top: -4px; right: -6px; padding: 1px 6px; font-size: 9px; line-height: 13px; }
  .photos { gap: 16px; }
  .photo a { width: 80px; }
  .photo img { width: 68px; height: 68px; }
  .photo a > span:last-child { font-size: 12px; line-height: 14px; }
  .doc { width: 54px; height: 68px; padding: 16px 9px 0; gap: 5px; }
  .doc::before { width: 14px; height: 14px; }
  .doc i { height: 3px; }
  .dock-wrap { left: 50%; right: auto; translate: -50%; width: 440px; }
  .copyright { font-size: 11px; }
}
/* phone on its side: files | hero + illustration | folders, all on one screen */
@media (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  .desktop {
    --side: 116px;
    --art-scale: 1;
    --art-max: 9999px;
    grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
    grid-template-areas:
      "hero  hero folders"
      "files art  folders";
    gap: 8px 12px;
    padding: 12px 12px var(--dock-space, 86px);
  }
  .hero { justify-self: stretch; max-width: none; margin-top: 16px; text-align: left; }   /* phone on its side: same as portrait */
  .hero__lede { margin-left: 0; margin-right: 0; }
  .hero__title { font-size: clamp(22px, 4.2vw, 34px); }
  .hero__lede { margin-top: 6px; font-size: 13px; line-height: 1.45; }

  /* small stickers again (the tablet rule makes them bigger), in 2-column grids */
  .folders { display: grid; grid-template-columns: repeat(2, 52px); justify-content: center; gap: 10px 8px; }
  .photos { grid-template-columns: repeat(2, 52px); justify-content: center; gap: 10px 8px; }
  .folder { width: 52px; gap: 3px; }
  .folder__icon { width: 44px; height: 32px; margin-top: 5px; border-radius: 5px; }
  .folder__icon::before { top: -4px; left: 5px; width: 18px; height: 6px; }
  .folder__icon::after { inset: 4px 5px auto auto; width: 14px; height: 3px; }
  .folder__label, .photo a > span:last-child { font-size: 10px; line-height: 12px; }
  .folder__badge { top: -3px; right: -4px; padding: 0 4px; font-size: 8px; line-height: 12px; }
  .photo a { width: 52px; gap: 3px; }
  .photo img { width: 44px; height: 44px; }
  .doc { width: 36px; height: 44px; padding: 10px 6px 0; gap: 3px; }
  .doc::before { width: 10px; height: 10px; }
  .doc i { height: 2px; }
  .dock-wrap { left: 50%; right: auto; translate: -50%; width: min(400px, calc(100% - 2 * var(--side) - 48px)); }
}
/* tiny portrait screens (old 4" phones): scroll instead of squashing */
@media (max-width: 1100px) and (max-height: 600px) and (orientation: portrait) {
  .desktop { height: auto; overflow: visible; grid-template-rows: auto auto auto; padding-bottom: 24px; }
  .illustration { height: calc(240px + var(--tuck)); }
  .dock-wrap { position: relative; z-index: 3; grid-column: 1 / -1; left: auto; right: auto; translate: none; width: 100%; max-width: 440px; justify-self: center; }
}

/* ---------- Windows (popups) ---------- */
html.has-modal { overflow: hidden; }

.window {
  --from-x: 0px;
  --from-y: 0px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #F7F8F6;
  color: var(--text);
  box-shadow: 0 30px 80px rgb(11 26 20 / 0.28), 0 0 0 1px rgb(11 26 20 / 0.06);
  overflow: hidden;
  flex-direction: column;
}
.window--wide { width: min(860px, calc(100vw - 32px)); }
.window[open] {
  display: flex;
  animation: window-in .42s cubic-bezier(.2, 1.25, .35, 1) both;
}
.window.is-closing { animation: window-out .22s cubic-bezier(.5, 0, .75, 0) both; }
.window::backdrop {
  background: rgb(11 26 20 / 0.32);
  backdrop-filter: blur(3px);
  animation: fade-in .3s ease both;
}
.window.is-closing::backdrop { animation: fade-out .22s ease both; }

@keyframes window-in {
  from { opacity: 0; translate: var(--from-x) var(--from-y); scale: .18; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes window-out {
  from { opacity: 1; translate: 0 0; scale: 1; }
  to   { opacity: 0; translate: var(--from-x) var(--from-y); scale: .18; }
}
@keyframes fade-in  { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .window[open], .window::backdrop { animation: fade-in .15s ease both; }
}

/* title bar */
.window__bar {
  flex-shrink: 0;
  height: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  background: #FDFEFD;
  border-bottom: 1px solid #E2E5E3;
}
.window__lights { display: flex; gap: 8px; }
.window__light {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}
.window__light--close { background: #FF5F57; cursor: pointer; }
.window__light--a { background: var(--primary); }
.window__light--b { background: var(--accent); }
.window__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 16px;
  color: var(--ink);
}
.window__x {
  justify-self: end;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F0F2F1;
  color: #3A3F3C;
  font: 12px/1 system-ui, sans-serif;
  cursor: pointer;
}
.window__x:hover { background: #E3E7E5; }

/* body */
.window__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #F7F8F6 0%, #F2F4F2 100%);
}
.pad { padding: 32px 40px 36px; }

/* shared window typography */
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.win-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.win-lede { margin: 14px 0 0; max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sub-h {
  margin: 32px 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.fine { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  margin-top: 24px;
  padding: 0 28px;
  border-radius: 23px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, translate .15s ease;
}
.btn:hover { background: var(--primary); translate: 0 -1px; }

/* read me */
.doc-body { padding: 36px 44px 40px; background: var(--white); }
.doc-body > p:not(.eyebrow) { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--text); }
.points { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.points li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.points strong { display: block; color: var(--ink); font-weight: 600; }

/* services */
.rows { margin: 24px 0 0; padding: 0; list-style: none; }
.row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.row h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.row p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 99px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }

/* inline text link */
.link { color: var(--accent); font-weight: 600; text-decoration: underline 1px; text-underline-offset: 3px; }
.link:hover { color: var(--primary); }
.row h3 .work__tag { vertical-align: middle; margin-left: 6px; font-family: var(--font-body); text-transform: none; }

/* product photos */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.trio li { padding: 18px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.trio__n { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--accent); }
.trio h3 { margin: 10px 0 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.trio p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.gallery li { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s var(--ease); }
.gallery li:hover img { scale: 1.05; }
.gallery span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgb(255 255 255 / .85);
  backdrop-filter: blur(4px);
  font: 600 11px/14px var(--font-body);
  color: var(--ink);
}

/* process */
.steps { margin: 24px 0 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.step__n { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1; color: var(--accent); }
.step h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.step__line { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.step__quote { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--primary); }
.step__quote::before { content: "“"; }
.step__quote::after { content: "”"; }

.addons { margin: 0; }
.addons div { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.addons div:last-child { border-bottom: 1px solid var(--line); }
.addons dt { color: var(--text); }
.addons dd { margin: 0; flex-shrink: 0; font-weight: 600; color: var(--primary); }

/* pricing (tabbed window, Paper design p-2-0 / U9-0: 560 wide) */
.window--pricing { width: min(560px, calc(100vw - 32px)); }
.ptabs {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: #F0F2F1;
  border-bottom: 1px solid #E2E5E3;
}
.ptab {
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: 500 13px/16px var(--font-body);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
@media (hover: hover) { .ptab:hover { color: var(--ink); background: rgb(255 255 255 / .6); } }
.ptab[aria-selected="true"] { background: #E1EFE7; color: var(--accent); font-weight: 700; }
.ptab__folder {
  width: 48px;
  height: 48px;
  margin: -8px 0 -6px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgb(11 26 20 / .15));
  transition: translate .25s var(--ease), scale .25s var(--ease);
}
@media (hover: hover) { .ptab:hover .ptab__folder { translate: 0 -2px; } }
.ptab[aria-selected="true"] .ptab__folder { scale: 1.12; translate: 0 -2px; }

.pricing { padding: 36px 44px 40px; }
.pricing__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.pricing__lede { max-width: 420px; margin: 10px auto 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--muted); }
.plan { margin-top: 32px; animation: plan-in .35s var(--ease) both; }
@keyframes plan-in { from { opacity: 0; translate: 0 8px; } }
.plan__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.plan__badge {
  padding: 4px 10px;
  border-radius: 99px;
  background: #E1EFE7;
  color: var(--accent);
  font: 600 10px/12px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan__for { margin: 10px 0 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.plan__price span { font: 400 14px/1 var(--font-body); color: var(--muted); }
.plan__was { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-decoration: line-through; }
.plan__was--plain { text-decoration: none; }
.plan__label {
  margin: 24px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan__list { margin: 0; padding: 0; list-style: none; }
.plan__list li { display: flex; gap: 10px; padding: 5px 0; font-size: 14px; line-height: 22px; color: var(--ink); }
.plan__list li::before { content: "✓"; flex-shrink: 0; width: 12px; color: var(--accent); font-weight: 600; }
.plan__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 24px;
  border-radius: 23px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background .15s ease, translate .15s ease;
}
.plan__cta:hover { background: var(--primary); translate: 0 -1px; }
.pricing__rule { margin: 28px 0 0; border: 0; border-top: 1px solid #E2E5E3; }
.pricing__note { margin: 0; font-size: 14px; line-height: 22px; color: var(--text); }
.pricing__addons { display: grid; gap: 5px; margin: 0; }
.pricing__addons div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 22px; color: var(--ink); }
.pricing__addons dd { margin: 0; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) { .plan { animation: none; } }
@media (max-width: 480px) {
  .ptabs { gap: 4px; padding: 10px; }
  .ptab { height: 60px; font-size: 12px; }
  .pricing { padding: 28px 20px 32px; }
  .pricing__title { font-size: 32px; }
  .plan__name { font-size: 26px; }
  .plan__price { font-size: 40px; }
}

/* blog: podcast-app layout */
.window--blog { width: min(1000px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 32px)); background: var(--white); }
.blog { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; }
.blog__side { overflow-y: auto; padding: 16px 10px; background: #F0F2F1; border-right: 1px solid #E2E5E3; }
.blog__search { position: relative; margin: 0 2px 18px; }
.blog__search svg { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.blog__search input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #E3E7E5;
  color: var(--ink);
  font: 400 14px/1 var(--font-body);
}
.blog__search input::placeholder { color: var(--muted); }
.blog__search input:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgb(31 107 82 / .2); }
.blog__group { margin: 14px 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.blog__nav { margin: 0; padding: 0; list-style: none; }
.blog__nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: 500 15px/1 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.blog__nav svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.blog__nav button:hover { background: rgb(11 26 20 / .05); }
.blog__nav button[aria-pressed="true"] { background: #DCE3DF; font-weight: 600; }

.blog__main { padding: 32px 40px 40px; background: var(--white); }
.blog__title { margin: 0; font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--ink); }
.blog__title:focus { outline: none; }
.blog__lede { max-width: 520px; margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.blog__section { margin-top: 32px; }
.blog__h { margin: 0 0 14px; font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.blog__sub { margin: -10px 0 14px; font-size: 14px; color: var(--muted); }

/* "Up next" feature card */
.feature {
  width: min(100%, 380px);
  padding: 24px;
  border-radius: 16px;
  background: var(--primary);
  color: #E3EEE8;
  box-shadow: 0 16px 36px rgb(11 26 20 / .18);
}
.feature__img { width: 70%; aspect-ratio: 1; margin: 0 auto 20px; border-radius: 8px; object-fit: cover; }
.feature__tag { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
.feature__title { margin: 6px 0 0; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--white); }
.feature__desc { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #D2E2DA; }
.feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.feature__pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 17px; background: var(--white); color: var(--primary); font-size: 14px; font-weight: 600; }
.feature__ask { font-size: 14px; font-weight: 600; color: var(--mint); text-decoration: underline 1px; text-underline-offset: 3px; }
.feature__ask:hover { color: var(--white); }
.feature__ask:focus-visible { outline-color: var(--mint); }
/* published article: the pill becomes the "Read article" link */
.feature__read { gap: 6px; text-decoration: none; transition: background .15s ease; }
.feature__read:hover { background: var(--mint); }
.feature__read:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.feature__date { font-size: 13px; color: #D2E2DA; }

/* "You might like" row */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; box-shadow: inset 0 0 0 1px rgb(11 26 20 / .06); }
.card__title { margin: 10px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.card__meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card__link { display: block; color: inherit; text-decoration: none; border-radius: 8px; }
.card__link:hover .card__title { color: var(--accent); text-decoration: underline 1px; text-underline-offset: 3px; }
.blog__empty:empty { display: none; }
.blog__empty { margin: 24px 0 0; font-size: 15px; color: var(--muted); }

@media (max-width: 760px) {
  .blog { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }   /* minmax: the tab row scrolls instead of widening the window */
  .blog__side { min-width: 0; overflow: visible; padding: 12px; border-right: 0; border-bottom: 1px solid #E2E5E3; }
  .blog__search { margin: 0 0 10px; }
  /* topics: one row that runs to the window edges and swipes sideways */
  .blog__tabs {
    display: flex;
    gap: 6px;
    margin: 0 -12px;
    padding: 0 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
  }
  .blog__tabs::-webkit-scrollbar { display: none; }
  .blog__tabs::after { content: ""; flex: 0 0 6px; }   /* room after the last tab when scrolled to the end */
  .blog__group { display: none; }
  .blog__nav { display: contents; }
  .blog__nav li { flex-shrink: 0; }
  .blog__nav button { flex-shrink: 0; width: auto; min-height: 32px; padding: 0 12px; gap: 6px; font-size: 13px; white-space: nowrap; border-radius: 99px; background: var(--white); }
  .blog__nav svg { width: 16px; height: 16px; }
  .blog__main { padding: 24px 20px 28px; }
  .blog__title { font-size: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Start a project (Finder frame, Paper QW-0: 900 × 600) ---------- */
.window--finder { width: min(900px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 32px)); background: var(--white); }

/* toolbar glyphs, drawn like the design (decorative) */
.finder__tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.finder__icon { display: flex; flex-shrink: 0; gap: 2px; }
.finder__icon i { display: block; background: #3A3F3C; }
.finder__icon--grid { flex-wrap: wrap; width: 12px; height: 12px; }
.finder__icon--grid i { width: 5px; height: 5px; border-radius: 1px; }
.finder__icon--list { flex-direction: column; width: 12px; }
.finder__icon--list i { width: 12px; height: 2px; }
.finder__icon--cols { width: 12px; height: 12px; }
.finder__icon--cols i { width: 2px; height: 12px; }
.finder__icon--square { width: 14px; height: 14px; border: 1.5px solid #3A3F3C; border-radius: 3px; }
.finder__icon--more { align-items: center; gap: 3px; }
.finder__icon--more i { width: 3px; height: 3px; border-radius: 50%; }
.finder__icon--search { position: relative; width: 14px; height: 14px; }
.finder__icon--search i:first-child { width: 10px; height: 10px; background: none; border: 1.5px solid #3A3F3C; border-radius: 50%; }
.finder__icon--search i:last-child { position: absolute; right: 0; bottom: 2px; width: 5px; height: 1.5px; rotate: 45deg; }
.finder__sep { width: 1px; height: 16px; background: #E2E5E3; flex-shrink: 0; }

.sheet { flex: 1; min-height: 0; padding: 32px 40px 40px; background: var(--white); }
.sheet__form { max-width: 760px; }
.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 28px; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field__num { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.field__hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.field__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #C2CBC6;
  border-radius: 8px;
  background: #FAFBFA;
  color: var(--ink);
  font: 400 15px/1.4 var(--font-body);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field__input:hover { border-color: #8E9A94; }
.field__input:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgb(31 107 82 / .2); }
.field__textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field__help { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
/* errors: red border + the message in the alert below (not colour alone) */
.field__input[aria-invalid="true"] { border-color: #C42B1C; background: #FDF5F4; }
fieldset[aria-invalid="true"] .choice span { border-color: #C42B1C; }

/* pill choices: real radios/checkboxes, visually replaced */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #C2CBC6;
  border-radius: 99px;
  background: #FAFBFA;
  font-size: 14px;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.choice:hover span { border-color: #8E9A94; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.choice input[type="checkbox"]:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.sheet__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.consent__label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.consent__label input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.consent__note { margin: 6px 0 0 30px; font-size: 12px; color: var(--muted); }
.sheet__send {
  flex-shrink: 0;
  height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 24px;
  background: var(--accent);
  color: var(--white);
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  transition: background .15s ease, translate .15s ease;
}
.sheet__send:hover { background: var(--primary); translate: 0 -1px; }
.sheet__send[aria-busy="true"] { opacity: .6; cursor: progress; }
.sheet__error:empty { display: none; }
.sheet__error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #FDF0EE;
  color: #A3241A;
  font-size: 14px;
  line-height: 1.5;
}
.sheet__error::before { content: "⚠ "; }
.sheet__state { max-width: 520px; padding-top: 48px; }
.sheet__state:focus { outline: none; }
.btn--ghost { background: none; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); border: 0; cursor: pointer; font-family: var(--font-body); }
.btn--ghost:hover { background: #E6F2EC; }
button.btn { border: 0; cursor: pointer; font-family: var(--font-body); }

@media (max-width: 760px) {
  .finder__tools .finder__icon, .finder__tools .finder__sep { display: none; }
  .sheet { padding: 24px 20px 28px; }
  .sheet__grid { grid-template-columns: 1fr; }
  .sheet__submit { flex-direction: column; align-items: stretch; }
  .sheet__send { width: 100%; }
}

/* faq */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent); transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* contact */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 40px 28px;
  text-align: center;
}
.contact__art { width: 240px; height: auto; }
.contact__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--primary);
}
.contact__lede { max-width: 380px; margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact__list { width: 360px; max-width: 100%; margin: 28px 0 0; }
.contact__list div { display: flex; align-items: baseline; padding: 7px 0; }
.contact__list dt { width: 130px; flex-shrink: 0; text-align: right; font-size: 14px; line-height: 20px; color: var(--muted); }
.contact__list dd { margin: 0; padding-left: 16px; text-align: left; font-size: 14px; line-height: 20px; color: var(--ink); }
.contact__list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact__cta {
  margin-top: 28px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  border-radius: 23px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background .15s ease, translate .15s ease;
}
.contact__cta:hover { background: var(--primary); translate: 0 -1px; }
.contact__legal { display: flex; gap: 10px; margin-top: 24px; font-size: 12px; line-height: 16px; color: var(--muted); }
.contact__legal a { color: var(--muted); text-decoration: underline 1px; text-underline-position: from-font; }

/* concept work (Finder-style window) */
.window--project { width: min(900px, calc(100vw - 32px)); background: var(--white); }
.window__bar--finder { height: 44px; display: flex; justify-content: space-between; padding: 0 16px; }
.finder__left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.finder__nav { display: flex; align-items: center; gap: 4px; margin: 0 -4px; }
.finder__step {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #3A3F3C;
  font: 16px/16px system-ui, sans-serif;
  cursor: pointer;
}
.finder__step:hover:not(:disabled) { background: #F0F2F1; }
.finder__step:disabled { color: #C7CCC9; cursor: default; }
.finder__title { font: 700 14px/18px system-ui, sans-serif; color: var(--ink); }
.project {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--white);
}
.project__img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; animation: tile-in .5s var(--ease) both; }
.project__text { padding: 36px 40px 32px; align-self: start; }
.project__count { color: var(--muted); font-weight: 500; margin-left: 6px; }
.project__desc { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); }
@keyframes tile-in { from { opacity: 0; translate: 0 12px; } }
.work__tag--client { color: var(--white); background: var(--primary); }

/* client work: "Live website" + "Start a project" side by side */
/* title and "Live website" on one row */
.project__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.project__head .win-h { flex: 1 1 200px; }
.project__live { flex-shrink: 0; gap: 6px; margin-top: 0; background: var(--primary); }
.project__live:hover { background: var(--accent); }
.project__live[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.project__live[aria-disabled="true"]:hover { background: var(--primary); translate: none; }
/* a cut-out icon instead of a cover photo: show it whole on a soft panel */
.project.is-icon .project__img { object-fit: contain; padding: 48px; background: #EEF2EF; }


/* project details: facts, summary, highlights */
.project__meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 20px 0 0; padding: 14px 0; border-block: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.project__meta div { display: contents; }
.project__meta dt { color: var(--muted); }
.project__meta dd { margin: 0; color: var(--ink); }
.project__summary { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.project__sub { margin: 20px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project__highlights { margin: 0; padding: 0; list-style: none; }
.project__highlights li { position: relative; padding: 4px 0 4px 18px; font-size: 14px; line-height: 1.5; color: var(--text); }
.project__highlights li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.project__note:empty { display: none; }
.project__details [hidden] { display: none; }   /* empty optional fields */

/* too long for the window: clamp with a fade, "Read more" opens it up */
.project__details.is-clamped {
  max-height: var(--clamp);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
}
.project__more {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 600 14px/1.4 var(--font-body);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.project__more:hover { color: var(--primary); }
.project__more[hidden] { display: none; }
/* expanded details scroll; the cover stays put at window height beside them */
@media (min-width: 761px) {
  .window--finder .project__img {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 0;
    height: calc(min(600px, 100dvh - 32px) - 44px);   /* window height minus the title bar */
  }
}

/* a11y: visible 2px focus ring on every window control */
.window button:focus-visible,
.window a:focus-visible,
.window summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the heading takes focus on open (so no control lights up); it isn't a control */
.window [tabindex="-1"]:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .project__img { animation: none; }
}
@media (max-width: 760px) {
  .pad, .doc-body { padding: 24px 20px 28px; }
  .win-h { font-size: 32px; }
  .trio { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .row img { width: 56px; height: 56px; }
  .row h3 { font-size: 19px; }
  .step { grid-template-columns: 44px 1fr; }
  .step__n { font-size: 28px; }
  /* Stack as plain blocks, not a one-column grid: iOS WebKit can size the grid row
     before the cover loads, and the image then covers the title and first details. */
  .project { display: block; }
  .project__img { display: block; min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .project__text { padding: 24px 20px 28px; }
}
@media (max-width: 480px) {
  .contact { padding: 24px 20px; }
  .contact__art { width: 180px; }
  .contact__title { font-size: 34px; }
  .contact__list dt { width: 96px; }
}
