/* Syte.ro V2 — colour chapters
   Direction: colour-chapters (seed 452121383), type redraw to General Sans.
   Brand palette kept: paper, ink, orange, olive, sand. */

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f7f2;
  --sand: #e8e2d4;
  --olive: #d9e6be;
  --ink: #20221f;
  --ink-2: #2b2e29;
  --ink-deep: #171812;
  --orange: #ec542b;
  --muted: #62675e;
  --muted-on-dark: #b9bdb2;
  --font: 'General Sans', 'Helvetica Neue', Arial, sans-serif;

  --step-display: clamp(44px, 6vw, 88px);
  --step-head: clamp(34px, 3.8vw, 58px);
  --step-lead: clamp(19px, 1.45vw, 23px);
  --step-body: clamp(17px, 1.15vw, 19px);
  --step-small: 13px;

  --margin: clamp(16px, 3.1vw, 48px);
  --gutter: clamp(16px, 2vw, 32px);
  --section-pad: clamp(72px, 10vw, 136px);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-hover: 180ms;
  --t-ui: 260ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: none;
}
h1 { font-size: var(--step-display); line-height: 0.9; }
h2 { font-size: var(--step-head); line-height: 0.95; }
h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; }
p { max-width: 62ch; text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.chapter { position: relative; }
.chapter--paper { background: var(--paper); color: var(--ink); }
.chapter--olive { background: var(--olive); color: var(--ink); }
.chapter--sand { background: var(--sand); color: var(--ink); }
.chapter--orange { background: var(--orange); color: var(--ink-deep); }
.chapter--ink { background: var(--ink); color: var(--paper); }

.chapter-inner {
  margin: 0 auto;
  padding: var(--section-pad) var(--margin);
}

/* ---------- header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--ink);
}
.site-header--ink { color: var(--paper); }
.site-header--orange { color: var(--ink-deep); }
.header-inner {
  margin: 0 auto;
  padding: 26px var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; text-decoration: none; }
.brand img { width: 154px; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  font-size: 14px;
  font-weight: 600;
}
.site-nav a { text-decoration: none; transition: color var(--t-hover) ease; }
.site-nav a:not(.button):hover { color: var(--orange); }
.site-header--ink .site-nav a:not(.button):hover { color: var(--orange); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.menu-toggle__icon {
  position: relative;
  width: 22px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { height: 2px; border-bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 140ms var(--ease-out);
}
.button__arrow { font-size: 18px; line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.button:hover .button__arrow { transform: translate(3px, -3px); }
.button:active { transform: scale(0.98); }
.button--orange { background: var(--orange); color: var(--ink-deep); }
.button--orange:hover { background: #d8451f; color: var(--paper); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--ink:hover { background: var(--ink-2); }
.button--paper { background: var(--paper); color: var(--ink); }
.button--paper:hover { background: var(--olive); }
.button--header { min-height: 44px; padding: 0 16px; font-size: 14px; }
.site-header--ink .button--header { background: var(--paper); color: var(--ink); }
.site-header--ink .button--header:hover { background: var(--olive); }
.site-header--orange .button--header { background: var(--ink-deep); color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  transition: color var(--t-hover) ease;
}
.text-link:hover { color: var(--orange); }
.chapter--ink .text-link:hover { color: var(--orange); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding: 0 0 24px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) var(--margin) 0;
  flex: 1;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 660px; }
.hero-title { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title [data-line] { display: block; }
.hero-lead {
  margin-top: clamp(22px, 3vh, 34px);
  max-width: 46ch;
  font-size: var(--step-lead);
  line-height: 1.4;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--muted);
}
.hero-disc {
  position: absolute;
  z-index: 1;
  left: 87%;
  top: 55%;
  width: 110vh;
  height: 110vh;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange);
  clip-path: circle(150% at 50% 50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20%;
}
.hero-arrow {
  width: 22%;
  height: auto;
  margin-left: 0;
  fill: var(--ink-deep);
  transform: translateY(1%);
}
.hero-disc__label { display: none; font-size: 13px; font-weight: 600; color: var(--ink-deep); }
.hero-foot {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--margin) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: var(--step-small);
  color: var(--muted);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.scroll-cue span { transition: transform var(--t-ui) var(--ease-out); }
.scroll-cue:hover span { transform: translateY(4px); }

/* ---------- showcase ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.showcase-field {
  padding: clamp(48px, 7vw, 96px) var(--margin) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-width: 0;
}
.showcase-field--ink { background: var(--ink); color: var(--paper); }
.showcase-field--paper { background: var(--paper); color: var(--ink); }
.showcase-inner { min-width: 0; }
.showcase-inner--browser {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 0;
}
.showcase-word {
  font-size: clamp(38px, 4.8vw, 74px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.showcase-word--left { align-self: flex-start; margin-top: 48px; }
.showcase-word--right { align-self: flex-end; text-align: right; }
.showcase-close { position: relative; }
.showcase-all { position: absolute; right: 0; bottom: 6px; font-size: 14px; font-weight: 600; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.showcase-all:hover { color: var(--orange); }

.portfolio-list { display: grid; gap: 2px; max-height: min(52vh, 420px); overflow-y: auto; scrollbar-width: thin; }
.portfolio-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  grid-template-areas:
    "dot name year"
    "dot type year";
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  padding: 14px 0;
  color: var(--muted-on-dark);
  text-align: left;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, padding var(--t-hover) ease;
}
.portfolio-item__dot { grid-area: dot; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.portfolio-item__name { grid-area: name; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; color: var(--paper); }
.portfolio-item__type { grid-area: type; font-size: var(--step-small); }
.portfolio-item__year { grid-area: year; align-self: start; padding-top: 4px; font-size: var(--step-small); opacity: 0.8; }
.portfolio-item:hover { color: var(--paper); }
.portfolio-item.is-active { padding-inline: 14px; margin-inline: -14px; background: var(--ink-2); color: var(--paper); }
.portfolio-item.is-active .portfolio-item__dot { background: var(--orange); opacity: 1; }
.portfolio-item.is-active .portfolio-item__year { opacity: 0.9; }
.portfolio-item:focus-visible { outline-color: var(--orange); }

.portfolio-detail { margin-top: 28px; margin-bottom: 48px; max-width: 520px; background: var(--ink-2); padding: clamp(20px, 2.2vw, 28px); }
.portfolio-detail__meta { font-size: var(--step-small); color: var(--muted-on-dark); }
.portfolio-detail__title { margin-top: 10px; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.portfolio-detail__text { margin-top: 10px; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--muted-on-dark); }
.portfolio-tags { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-tags li { padding: 6px 9px; background: var(--ink); color: var(--paper); font-size: 13px; }
.portfolio-link { display: inline-flex; margin-top: 18px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.portfolio-link:hover { color: var(--orange); }

.project-shot { height: 100%; background: var(--ink-2); }
.project-shot img { width: 100%; height: 100%; object-fit: cover; }

.browser { width: min(100%, 560px); background: var(--paper); color: var(--ink); }
.browser-bar {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e6e2d7;
  font-size: 13px;
  color: #5c6057;
}
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #b9b5a9; }
.browser-url { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-tag { font-weight: 600; }
.browser-body { container-type: inline-size; aspect-ratio: 4 / 3; overflow: clip; background: #fff; }
.demo-note { font-size: var(--step-small); color: var(--muted); text-align: center; max-width: 56ch; }
.demo[hidden], .project-shot[hidden], .portfolio-detail__panel[hidden] { display: none; }

/* demo mini-sites */
.demo { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding: 3.6cqw 4.2cqw;
  font-size: max(13px, 2.4cqw);
  font-weight: 500;
}
.demo-nav b { font-size: max(13px, 3.4cqw); font-weight: 700; letter-spacing: -0.05em; }
.demo-hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4cqw;
  padding: 0 4.2cqw;
  align-items: center;
}
.demo-copy { min-width: 0; padding: 1cqw 0; }
.demo-title { margin-top: 1.4cqw; font-size: max(22px, 6.3cqw); line-height: 0.93; letter-spacing: -0.045em; font-weight: 700; max-width: 12ch; }
.demo-text { margin-top: 2cqw; font-size: max(13px, 2.5cqw); line-height: 1.35; max-width: 25ch; opacity: 0.78; }
.demo-button {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  margin-top: 2.6cqw;
  padding: 1.55cqw 2.3cqw;
  background: var(--demo-ink);
  color: var(--demo-bg);
  font-size: max(13px, 2.4cqw);
  font-weight: 600;
}
.demo-photo { height: 45cqw; overflow: clip; margin: 0; background: var(--demo-sand); }
.demo-photo img { width: 100%; height: 100%; object-fit: cover; }
.demo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding: 2.6cqw 4.2cqw;
  background: var(--demo-accent);
  color: var(--demo-ink);
  font-size: max(13px, 2.4cqw);
}
.demo-strip b { font-size: max(14px, 2.9cqw); }
.demo--verde { --demo-bg: #eef0e3; --demo-ink: #24301f; --demo-sand: #dfe6cf; --demo-accent: #d9e6be; background: var(--demo-bg); color: var(--demo-ink); }
.demo--forma { --demo-bg: #f3ece3; --demo-ink: #2c241c; --demo-sand: #e7dac9; --demo-accent: #e8dccb; background: var(--demo-bg); color: var(--demo-ink); }
.demo--forma .demo-hero { grid-template-columns: 0.95fr 1.05fr; }
.demo--forma .demo-title { max-width: 11ch; }
.demo--forma .demo-photo { height: 41cqw; }
.demo-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; padding: 2.4cqw 4.2cqw 3cqw; background: var(--demo-accent); }
.demo-products span { display: flex; flex-direction: column; gap: 0.5cqw; font-size: max(13px, 2.4cqw); }
.demo-products b { font-weight: 600; }
.demo-products i { font-style: normal; opacity: 0.7; }
.demo--cadou { --demo-bg: #f8f7f2; --demo-ink: #20221f; --demo-sand: #e8e2d4; --demo-accent: #ec542b; background: var(--demo-bg); color: var(--demo-ink); }
.demo--cadou .demo-title { max-width: 12ch; }
.demo--cadou .demo-photo { height: 48cqw; }
.demo--cadou .demo-button { background: var(--orange); color: var(--ink-deep); }
.demo--cadou .demo-strip { color: var(--ink-deep); }

/* ---------- section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 { max-width: 620px; }
.section-head p { max-width: 420px; justify-self: end; color: var(--muted); }
.chapter--olive .section-head p { color: #4d5346; }

/* ---------- services ---------- */
.services { overflow: clip; }
.service-list { margin: 0; padding: 0; list-style: none; }
.service-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 180px 24px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  transition: background-color var(--t-hover) ease;
}
.service-row:hover { background: var(--paper); }
.service-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); transition: transform var(--t-ui) var(--ease-out); }
.service-row:hover .service-row__dot { transform: scale(1.5); }
.service-row__body { min-width: 0; }
.service-row__name { display: block; font-size: clamp(21px, 2vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.service-row__desc { display: block; margin-top: 7px; font-size: 16px; color: #4d5346; }
.service-row__thumb { width: 180px; height: 120px; overflow: clip; background: var(--paper); }
.service-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-soft); }
.service-row:hover .service-row__thumb img { transform: scale(1.06); }
.service-row__arrow { font-size: 22px; line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.service-row:hover .service-row__arrow { transform: translate(3px, -3px); }

/* ---------- process ---------- */
.section-head--process { align-items: start; }
.section-head--process h2 { max-width: 480px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-step { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.process-step:nth-child(1) { grid-column: span 2; }
.process-step:nth-child(2) { grid-column: span 3; }
.process-step:nth-child(3) { grid-column: span 3; }
.process-step:nth-child(4) { grid-column: span 4; }
.process-tile {
  height: clamp(190px, calc(var(--h) * 1svh), 520px);
  padding: clamp(12px, 1.6vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  container-type: inline-size;
}
.process-tile--sand { background: var(--sand); }
.process-tile--olive { background: var(--olive); }
.process-tile--orange { background: var(--orange); }
.process-tile--ink { background: var(--ink); }
.process-text { min-height: 108px; padding-top: 16px; }
.process-text h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
.process-text p { margin-top: 7px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 30ch; }
.process-cta { margin-top: 44px; }

.ui-chat { width: 100%; max-width: 250px; background: var(--paper); padding: clamp(10px, 4cqw, 18px); color: var(--ink); }
.ui-chat__head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ui-chat__head .dot { width: 6px; height: 6px; }
.ui-chat p { margin-top: 10px; font-size: 13px; line-height: 1.4; }
.ui-chat__meta { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

.ui-doc { width: 100%; max-width: 260px; background: var(--paper); padding: clamp(10px, 3.6cqw, 18px); color: var(--ink); }
.ui-doc__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ui-doc__title { margin-top: 6px; font-size: 17px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.ui-doc ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.ui-doc__row { margin-top: 10px; display: flex; justify-content: space-between; font-size: 13px; }
.ui-doc__row b { font-weight: 700; }

.ui-canvas { width: 100%; max-width: 300px; background: var(--paper); color: var(--ink); }
.ui-canvas__bar { display: flex; align-items: center; gap: 4px; padding: 7px 9px; background: var(--sand); font-size: 13px; }
.ui-canvas__bar span { width: 6px; height: 6px; border-radius: 50%; background: #b9b5a9; }
.ui-canvas__bar b { margin-left: auto; font-size: 13px; font-weight: 600; }
.ui-canvas__frame { height: 86px; overflow: clip; background: var(--sand); }
.ui-canvas__frame img { width: 100%; height: 100%; object-fit: cover; }
.ui-canvas__swatches { display: flex; gap: 4px; padding: 7px 9px; }
.ui-canvas__swatches i { width: 12px; height: 12px; background: var(--c); }

.ui-live { width: 100%; max-width: 360px; background: var(--ink-2); color: var(--paper); padding: 12px; }
.ui-live__bar { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ui-live__bar .dot { width: 7px; height: 7px; }
.ui-live__browser { margin-top: 10px; background: var(--paper); color: var(--ink); }
.ui-live__url { padding: 6px 10px; background: #e6e2d7; font-size: 13px; color: var(--muted); }
.ui-live__browser img { width: 100%; height: 150px; object-fit: cover; }
.ui-live__row { margin-top: 10px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-on-dark); }
.ui-live__row b { color: var(--paper); }

/* ---------- approach ---------- */
.approach { overflow: clip; }
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--gutter);
  align-items: center;
  min-height: 80svh;
}
.approach-copy h2 { font-size: clamp(46px, 6vw, 90px); }
.approach-lead { margin-top: 26px; font-size: var(--step-lead); line-height: 1.4; color: var(--muted-on-dark); max-width: 44ch; }
.principle-list { margin: 48px 0 0; padding: 0; list-style: none; display: grid; gap: 26px; }
.principle-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 18px; }
.principle-list .dot { margin-top: 7px; }
.principle-list h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; }
.principle-list p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--muted-on-dark); max-width: 44ch; }
.approach-disc {
  width: min(72vh, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  justify-self: center;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-deep);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding: 24px;
}
.approach-disc span { max-width: 12ch; }

/* ---------- faq ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-intro { position: sticky; top: 40px; }
.faq-intro h2 { max-width: 540px; }
.faq-intro p { margin-top: 24px; max-width: 340px; color: var(--muted); }
.faq-intro .text-link { margin-top: 22px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--sand); transition: background-color var(--t-hover) ease; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-ui) var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] { background: var(--orange); color: var(--ink-deep); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 24px 24px; }
.faq-answer p { font-size: 16px; line-height: 1.55; max-width: 56ch; }

/* ---------- cta ---------- */
.cta { overflow: clip; }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  min-height: 90svh;
}
.cta-copy h2 { font-size: var(--step-display); line-height: 0.88; }
.cta-copy p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; color: var(--ink-deep); }
.cta-steps { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.cta-steps .dot { background: var(--ink-deep); }
.brief-card {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  align-self: center;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 2.6vw, 36px);
  box-shadow: 0 28px 70px rgba(23, 24, 18, 0.22);
}
.brief-card__head { margin-bottom: 8px; }
.brief-card__title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.brief-card__note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.field-row { margin-top: 16px; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.field {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: #eae7dd;
  color: var(--ink);
  font-size: 16px;
}
.field--area { height: 96px; padding: 12px 14px; resize: vertical; }
.field:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.brief-card__button { width: 100%; margin-top: 20px; }
.brief-card__small { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.brief-card__small a { text-decoration: underline; text-underline-offset: 2px; }
.brief-status { min-height: 18px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { overflow: clip; }
.site-footer .chapter-inner { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 32px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.brand--footer img { width: 154px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 32px); font-size: 14px; font-weight: 600; }
.footer-nav a { text-decoration: none; transition: color var(--t-hover) ease; }
.footer-nav a:hover { color: var(--orange); }
.footer-line {
  margin-top: clamp(64px, 8vw, 120px);
  font-size: var(--step-display);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--paper);
}
.footer-bottom {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-on-dark);
}
.footer-tagline { display: inline-flex; align-items: center; gap: 9px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--orange); }

/* ---------- service pages ---------- */
.page-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  padding: 130px 0 64px;
}
.page-hero-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--margin);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; opacity: 0.72; margin-bottom: clamp(28px, 4vw, 56px); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); opacity: 1; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.page-hero-copy h1 { font-size: clamp(40px, 5.2vw, 104px); line-height: 0.92; }
.page-lead { margin-top: 26px; font-size: var(--step-lead); line-height: 1.4; max-width: 48ch; }
.page-hero-copy .button { margin-top: 30px; }
.page-hero-foot { margin-top: clamp(28px, 4vh, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.page-hero-foot > span { display: inline-flex; align-items: center; gap: 9px; }
.page-hero-foot a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.page-hero-foot a span { transition: transform var(--t-ui) var(--ease-out); }
.page-hero-foot a:hover span { transform: translateY(4px); }
.chapter--orange .page-hero-foot .dot { background: var(--ink-deep); }
.page-hero-media { margin: 0; }
.page-hero-media__frame { display: block; aspect-ratio: 3 / 2; max-height: 560px; overflow: clip; background: var(--sand); }
.page-hero-media__frame img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media figcaption { margin-top: 10px; font-size: 13px; color: inherit; }
.chapter--ink .page-lead { color: var(--muted-on-dark); }
.chapter--orange .page-lead { color: var(--ink-deep); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.detail-main h2 { font-size: clamp(30px, 3.2vw, 46px); }
.check-list { margin: 26px 0 52px; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 18px; line-height: 1.45; }
.check-list .dot { margin-top: 9px; }
.detail-subtitle { margin-top: 0; }
.detail-main p { max-width: 62ch; font-size: var(--step-body); }
.aside-card { background: var(--sand); padding: clamp(24px, 2.5vw, 36px); position: sticky; top: 32px; }
.aside-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
.aside-card h2 { font-size: clamp(22px, 2vw, 28px); }
.aside-card p { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.aside-card .text-link { margin-top: 24px; }

.directions { overflow: clip; }
.section-head--directions { align-items: start; }
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.direction-card { margin: 0; }
.direction-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.direction-card figcaption { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.direction-card figcaption .dot { width: 6px; height: 6px; }
.direction-card p { margin-top: 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }

.next-services { overflow: clip; }
.next-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.next-link {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: start;
  padding: 22px 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color var(--t-hover) ease;
}
.next-link .dot { margin-top: 10px; transition: transform var(--t-ui) var(--ease-out); }
.next-link:hover .dot { transform: scale(1.5); }
.next-link__arrow { margin-left: 0; justify-self: end; font-size: 22px; transition: transform var(--t-ui) var(--ease-out); }
.next-link:hover .next-link__arrow { transform: translate(3px, -3px); }

/* ---------- legal ---------- */
.legal-main { padding: 150px 0 var(--section-pad); }
.legal-inner { max-width: 820px; margin: 0 auto; padding: 0 var(--margin); }
.legal-inner h1 { font-size: clamp(42px, 5vw, 76px); line-height: 0.92; }
.legal-lead { margin-top: 22px; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); max-width: 48ch; }
.legal-prose { margin-top: 56px; }
.legal-prose h2 { font-size: clamp(24px, 2.2vw, 30px); margin-top: 44px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin-top: 12px; font-size: 17px; line-height: 1.6; max-width: 68ch; }
.legal-back { margin-top: 56px; }
.error-code { font-size: clamp(80px, 14vw, 180px); line-height: 0.78; letter-spacing: -0.06em; font-weight: 700; color: var(--orange); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js [data-hero-fade] { opacity: 0; transform: translateY(18px); animation: rise-in 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
  .js .hero-disc { clip-path: circle(0% at 50% 50%); animation: disc-in 1150ms var(--ease-expo) 60ms forwards; }
  .js .page-hero-media img { animation: media-in 1200ms var(--ease-soft) both; }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }

  .service-row, .process-step, .principle-list li, .faq-item { --i: 0; }
  .js .service-row[data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

  @supports (animation-timeline: view()) {
    .service-row__thumb img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes drift {
      from { transform: translateY(-4%) scale(1.08); }
      to { transform: translateY(4%) scale(1.08); }
    }
  }
}

@keyframes line-up { to { transform: none; } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes media-in { from { transform: scale(1.06); } to { transform: none; } }
@keyframes disc-in {
  from { clip-path: circle(0% at 50% 50%); }
  to { clip-path: circle(150% at 50% 50%); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { min-height: 100svh; padding-bottom: 0; }
  .hero-inner { padding-top: 120px; padding-bottom: 40px; align-items: flex-start; flex: none; }
  .hero-disc {
    position: static;
    order: 2;
    width: calc(100% + var(--margin) * 2);
    height: 58vw;
    margin: 0 calc(var(--margin) * -1) 0;
    margin-top: auto;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: none;
    clip-path: inset(0);
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-left: 0;
  }
  .hero-disc__label { display: block; order: -1; margin-bottom: 2px; }
  .js .hero-disc { clip-path: inset(100% 0 0 0); animation: disc-rise 1100ms var(--ease-expo) 60ms forwards; }
  @keyframes disc-rise { to { clip-path: inset(0); } }
  .hero-foot { display: none; }
  .approach-grid { grid-template-columns: 1fr; min-height: auto; }
  .approach-disc { justify-self: end; margin-top: 48px; width: min(64vw, 480px); transform: translateX(10%); }
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    background: var(--paper);
  }
  .site-header--ink { background: var(--ink); }
  .site-header--orange { background: var(--orange); }
  .site-header--olive { background: var(--olive); }
  .site-header--sand { background: var(--sand); }
  .header-inner { padding: 18px var(--margin); }
  .brand img { width: 132px; }
  .menu-toggle { display: none; }
  .js .menu-toggle { display: flex; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 4px var(--margin) 22px;
    background: inherit;
    font-size: 18px;
  }
  .site-nav a:not(.button) { width: 100%; padding: 11px 0; }
  .site-nav .button { width: 100%; margin-top: 10px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }

  .service-row { grid-template-columns: 12px minmax(0, 1fr) 200px; }
  .service-row__arrow { display: none; }
  .service-row__thumb { width: 200px; height: 133px; }

  .showcase-word--left { margin-top: 72px; }

  .hero-inner { padding-top: 44px; }
  .page-hero { padding-top: 40px; }
  .legal-main { padding-top: 56px; }

  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .portfolio-list { max-height: none; overflow: visible; }
  .showcase-close { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .showcase-all { position: static; }

  .showcase-field { padding: 64px var(--margin) 48px; gap: 32px; }
  .showcase-field--paper { padding-top: 48px; }
  .showcase-word--right { align-self: flex-start; text-align: left; order: -1; margin-bottom: 8px; }
  .showcase-inner--browser { justify-content: flex-start; }
  .demo-brief { margin-top: 32px; max-width: none; }

  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head p { justify-self: start; }

  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-step { grid-column: auto !important; }
  .process-step:nth-child(1) .process-tile { height: 210px; }
  .process-step:nth-child(2) .process-tile { height: 250px; }
  .process-step:nth-child(3) .process-tile { height: 300px; }
  .process-step:nth-child(4) .process-tile { height: 360px; }
  .process-text { min-height: 0; }

  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .faq-intro p { max-width: 52ch; }

  .cta-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; align-items: start; }
  .brief-card { justify-self: start; max-width: 560px; }

  .page-hero { min-height: 0; padding: 40px 0 72px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-height: none; }
  .page-hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .detail-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .next-grid { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; }
  .footer-line { font-size: clamp(56px, 15vw, 104px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 700px) {
  .hero-title { font-size: clamp(42px, 11vw, 64px); }
  .hero-disc { height: 58vw; }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }

  .demo-switcher { gap: 4px; }
  .demo-tab { padding: 10px 12px; font-size: 13px; }
  .showcase-word { font-size: clamp(36px, 10.5vw, 56px); }
  .browser-bar { font-size: 13px; }

  .service-row { grid-template-columns: 10px minmax(0, 1fr) 84px; gap: 12px; padding: 18px 0; }
  .service-row__name { font-size: 21px; }
  .service-row__desc { font-size: 15px; }
  .service-row__thumb { width: 84px; height: 64px; }
  .service-row__arrow { display: none; }

  .approach-disc { width: 82vw; }
  .faq-item summary { padding: 18px 20px; font-size: 16px; }
  .faq-answer { padding: 0 20px 20px; }

  .cta-copy h2 { font-size: clamp(48px, 15vw, 76px); }
  .brief-card { padding: 22px; }
  .brief-card__title { font-size: 23px; }

  .footer-nav { flex-direction: column; gap: 10px; }
  .footer-line { font-size: clamp(52px, 17vw, 88px); }
  .footer-legal { flex-wrap: wrap; }

  .page-hero-copy h1 { font-size: clamp(38px, 11vw, 56px); }
  .page-lead { font-size: 18px; }
  .check-list li { font-size: 17px; }
  .direction-grid { grid-template-columns: 1fr; gap: 32px; }
  .next-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- portfolio page ---------- */
.portfolio-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 28px;
}
.portfolio-cats a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-hover) ease;
}
.portfolio-cats a > span:last-child {
  font-weight: 400;
  opacity: 0.55;
}
.portfolio-cats a:hover { color: var(--orange); }

.portfolio-category__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.portfolio-category__head h2 { grid-column: 1; }
.portfolio-category__count {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-bottom: 6px;
  font-size: var(--step-small);
  opacity: 0.65;
}
.portfolio-category__head p {
  grid-column: 1 / -1;
  max-width: 56ch;
  font-size: var(--step-lead);
  line-height: 1.35;
  opacity: 0.85;
}

.portfolio-projects { display: grid; gap: clamp(32px, 5vw, 64px); }

.portfolio-project__link {
  display: grid;
  grid-template-columns: 5fr 6fr;
  column-gap: var(--gutter);
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.portfolio-project__media {
  margin: 0;
  overflow: clip;
  background: var(--ink-2);
}
.portfolio-project__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.portfolio-project__link:hover .portfolio-project__media img { transform: scale(1.02); }
.portfolio-project__body { position: relative; padding-right: 48px; }
.portfolio-project__body h3 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color var(--t-hover) ease;
}
.portfolio-project__link:hover h3 { color: var(--orange); }
.portfolio-project__meta {
  margin-top: 12px;
  font-size: var(--step-small);
  opacity: 0.65;
}
.portfolio-project__text {
  margin-top: 18px;
  max-width: 52ch;
  font-size: var(--step-body);
  line-height: 1.5;
  opacity: 0.9;
}
.portfolio-project__services {
  margin-top: 16px;
  font-size: var(--step-small);
  opacity: 0.65;
}
.portfolio-project__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: var(--step-small);
}
.portfolio-project__arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 22px;
  transition: transform var(--t-ui) var(--ease-out);
}
.portfolio-project__link:hover .portfolio-project__arrow { transform: translate(4px, -4px); }

/* demo project pages */
.demo-hero__copy { max-width: 900px; }
.demo-hero__copy .page-lead { margin-top: 24px; }
.demo-hero__copy .project-meta { margin-top: 20px; }
.demo-hero__copy .project-services { margin-top: 10px; }
.demo-hero__copy .text-link { display: inline-flex; margin-top: 28px; }
.project-meta,
.project-services { font-size: var(--step-small); opacity: 0.7; }
.demo-stage .chapter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.demo-browser { width: min(100%, 720px); }
.demo-stage .demo-note { color: var(--muted-on-dark); text-align: center; }

.demo-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(32px, 4vw, 48px);
}
.demo-more__card { color: inherit; text-decoration: none; }
.demo-more__card figure { margin: 0; overflow: clip; background: var(--ink-2); }
.demo-more__card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.demo-more__card:hover img { transform: scale(1.02); }
.demo-more__card h3 {
  margin-top: 14px;
  font-size: clamp(18px, 1.6vw, 24px);
}
.demo-more__card p { margin-top: 4px; font-size: var(--step-small); opacity: 0.7; }

.portfolio-cta .chapter-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.portfolio-cta h2 { max-width: 18ch; }
.portfolio-cta .button { margin-top: 0; }
.showcase-all { align-self: flex-start; }

@media (max-width: 900px) {
  .portfolio-project__link { grid-template-columns: 1fr; row-gap: 24px; }
  .portfolio-project__body { padding-right: 0; }
  .portfolio-project__arrow { position: static; display: inline-block; margin-top: 18px; }
  .portfolio-category__head { grid-template-columns: 1fr; }
  .portfolio-category__count { grid-column: 1; grid-row: auto; padding-bottom: 0; }
  .demo-browser { width: 100%; }
  .demo-more__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .demo-more__grid { grid-template-columns: 1fr; }
}

/* Full-size, browsable portfolio previews on the homepage. */
.showcase{grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr)}
.portfolio-list{overflow-x:hidden}
.portfolio-item,.portfolio-item.is-active{padding:14px;margin-inline:0;min-width:0}
.showcase-field--paper{padding:24px clamp(16px,2vw,36px) 32px;justify-content:flex-start}
.showcase-inner--browser{flex:1;align-items:stretch;gap:12px}
.showcase .browser{width:100%;display:flex;flex-direction:column}
.showcase .browser-body{aspect-ratio:auto;height:clamp(580px,80svh,960px);overflow:hidden}
.project-live{height:100%;min-width:0;background:var(--paper)}
.project-live[hidden]{display:none}
.project-live iframe{display:block;width:100%;height:100%;border:0;background:var(--paper)}
.browser-open{font-size:12px;font-weight:600;white-space:nowrap;text-underline-offset:3px;min-height:36px;display:flex;align-items:center}
.browser-open:hover{text-decoration:underline}
.preview-hint{font-size:13px;color:var(--ink);text-align:center}
.showcase .demo-note{max-width:none;font-size:13px}
.showcase-field--paper>.showcase-word--right{display:none}
@media(max-width:980px){
 .showcase{grid-template-columns:1fr}
 .showcase-field--paper{padding:20px var(--margin) 42px}
 .portfolio-list{max-height:340px;overflow:auto;overflow-x:hidden}
 .showcase .browser-body{height:clamp(520px,75svh,780px)}
}
@media(max-width:560px){
 .showcase-field--paper{padding:16px 12px 32px}
 .showcase .browser-bar{padding:0 10px;gap:8px}
 .showcase .browser-dots{display:none}
 .showcase .browser-tag{display:none}
 .browser-open{min-height:44px}
 .showcase .browser-body{height:70svh;min-height:480px}
 .showcase .demo-note,.preview-hint{padding-inline:10px;text-align:left}
}
