/* Shiyara Yousuff portfolio
   Direction: warm, editorial, quiet. Palette taken from her own service diagrams
   (cream paper, sand, blush, one olive accent, clay only for pain points).
   Type: Newsreader (display, light and large) + Hanken Grotesk (reading and labels). */

:root {
  --paper: #f3eee6;
  --sand: #e9e0d3;
  --blush: #ead9d1;
  --card: #fbf8f3;
  --ink: #25221c;
  --ink-2: #5d564a;
  --line: #d2c8b9;
  --olive: #565c3c;
  --olive-soft: #d9dcc3;
  --clay: #96472c;

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1360px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ui); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--olive); color: var(--card); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--card); padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* Type */
.label { font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; }
h1 em, h2 em, h3 em { font-style: italic; }
h1 { font-size: clamp(42px, 6.2vw, 92px); letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-size: clamp(31px, 3.9vw, 56px); letter-spacing: -0.025em; }
h3 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.12; }
h4 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }

/* Links and buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
  font-family: var(--ui); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}

@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--ink); color: var(--card); } }

.btn:active { transform: translateY(1px); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(243, 238, 230, .93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a { font-size: 14.5px; font-weight: 500; text-decoration: none; padding: 12px 0; position: relative; white-space: nowrap; }

.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }

@media (max-width: 700px) {
  .brand span, .nav .nav__home { display: none; }
  .nav a { font-size: 13.5px; }
  
}

/* Sections */

.gallery > * { min-width: 0; }

/* Hero */

/* Intro */

.note { margin-top: clamp(32px, 4vw, 52px); font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 52em; }
.note b { font-weight: 600; color: var(--ink); }

/* Selected work: large editorial previews */

/* Native tiles used as pictures for confidential projects */

/* Capabilities as running text */

/* Portrait slot */

/* Index list (Work page) */

/* Steps, ticks, areas, tags */

/* Experience timeline */

/* Contact block and footer */

/* ---------- Case study pages ---------- */

.fig { margin: 0; }
.fig img, .fig video { width: 100%; border-radius: var(--r); background: var(--card); }
.fig figcaption { margin-top: 12px; }
.fig--pad img { padding: clamp(12px, 2vw, 28px); }
.gallery { display: grid; gap: 24px; }
@media (min-width: 860px) { .gallery { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .gallery--one { grid-template-columns: 1fr; } }

/* Ecosystem diagram */
.eco { background: var(--card); border-radius: var(--r); padding: clamp(18px, 3vw, 44px); display: grid; gap: 14px; }
.eco__band { border: 1px solid var(--line); border-radius: 22px; padding: 16px clamp(18px, 3vw, 36px); display: grid; gap: 8px; }
.eco__band ul { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15.5px; font-weight: 500; }
.eco__mid { display: grid; gap: 14px; }
.eco__side { background: var(--blush); border-radius: 14px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.eco__side--b { background: var(--sand); }
.eco__side :is(h3, h4) { font-size: 25px; }
.eco__side p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.eco__side li { font-size: 15.5px; font-weight: 600; line-height: 1.3; padding: 10px 0; border-top: 1px solid rgba(37, 34, 28, .16); }
.eco__side li small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.eco__core { background: var(--olive); color: var(--card); border-radius: 14px; display: grid; place-content: center; text-align: center; padding: 28px 18px; gap: 6px; }
.eco__core strong { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 84px); letter-spacing: -0.03em; line-height: 1; }
.eco__core span { font-size: 15px; opacity: .9; }
@media (min-width: 900px) {
  .eco__mid { grid-template-columns: minmax(0, 1fr) minmax(200px, .8fr) minmax(0, 1fr); }
  .eco__core { border-radius: 50%; aspect-ratio: 1; align-self: center; }
}

/* Journey table: stages as columns on desktop, stacked on phones */
.journey { background: var(--card); border-radius: var(--r); padding: clamp(16px, 2.6vw, 36px); }
.journey__stage { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.journey__stage:first-of-type { border-top: 0; padding-top: 0; }
.journey__head { display: flex; align-items: baseline; gap: 12px; }
.journey__head :is(h3, h4) { font-size: 22px; }
.journey__head .label { color: var(--olive); }
.journey__cell { font-size: 15.5px; line-height: 1.45; }
.journey__cell::before { content: attr(data-row); display: block; font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.journey__cell--pain::before { color: var(--clay); }
.journey__cell--opp::before { color: var(--olive); }
.journey__cell ul li { padding-left: 14px; position: relative; }
.journey__cell ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: currentColor; }
.journey__rows, .journey__mood { display: none; }
@media (min-width: 1000px) {
  .journey__grid { display: grid; grid-template-columns: 132px repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; grid-auto-flow: column; }
  .journey--mood .journey__grid { grid-template-rows: auto auto auto auto auto; }
  .journey__rows, .journey__stage { display: contents; }
  .journey__rows > * { padding: 16px 12px 16px 0; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
  .journey__rows > *:first-child { border-top: 0; }
  .journey__rows .is-pain { color: var(--clay); }
  .journey__rows .is-opp { color: var(--olive); }
  .journey__head { flex-direction: column; gap: 6px; padding: 14px 18px 16px 16px; background: var(--sand); margin-right: 4px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); min-height: 100px; }
  .journey__stage.is-on .journey__head { background: var(--olive); color: var(--card); }
  .journey__stage.is-on .journey__head .label { color: var(--card); }
  .journey__head :is(h3, h4) { font-size: 20px; line-height: 1.15; }
  .journey__cell { padding: 16px 16px 16px 14px; border-top: 1px solid var(--line); font-size: 15px; }
  .journey__cell::before { content: none; }
  .journey--mood .journey__mood { display: block; grid-column: 2 / -1; grid-row: 2; padding: 10px 0; border-top: 1px solid var(--line); position: relative; }
  .journey--mood .journey__rows > *:nth-child(2) { grid-row: 2; }
  .journey__mood svg { width: 100%; height: 110px; overflow: visible; }
  .journey__mood path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .journey__mood .dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--clay); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--card); }
}

/* Service blueprint */
.bp-scroll { overflow-x: auto; background: var(--card); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.bp { display: grid; grid-template-columns: 128px repeat(9, minmax(0, 1fr)); gap: 6px; min-width: 1180px; padding: clamp(16px, 2.4vw, 32px); font-size: 13.5px; line-height: 1.34; }
.bp > * { min-width: 0; }
.bp__label { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; align-self: center; padding-right: 8px; }
.bp__ev { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--ink); align-self: end; }
.bp__c { padding: 12px 10px; border-radius: 3px; display: flex; align-items: center; min-height: 96px; }
.bp__c--cust { background: var(--ink); color: var(--card); }
.bp__c--front { background: var(--olive); color: var(--card); }
.bp__c--back { background: var(--sand); }
.bp__c--sup { border: 1px solid var(--line); }
.bp__rule { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-block: 3px; }
.bp__rule::after { content: ""; flex: 1; border-top: 1px dashed var(--ink); }
.bp__rule--solid::after { border-top: 1.5px solid var(--ink); }
.scroll-hint { margin-top: 10px; }
@media (min-width: 1300px) { .scroll-hint { display: none; } }

/* Lifecycle, sectors, step grid */
.cycle { display: grid; gap: 6px; }
.cycle li { background: var(--card); padding: 20px 20px 22px; border-radius: var(--r); display: grid; gap: 6px; align-content: start; }
.cycle li .label { color: var(--olive); }
.cycle :is(h3, h4) { font-size: 26px; }
.cycle p:not(.label) { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 760px) { .cycle { grid-template-columns: repeat(4, 1fr); } }

.grid-steps { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: gs; }
.grid-steps li { background: var(--card); border-radius: var(--r); padding: 16px 16px 20px; font-family: var(--display); font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.grid-steps li::before { content: counter(gs, decimal-leading-zero); counter-increment: gs; font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--olive); }
@media (min-width: 860px) { .grid-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Previous / next */

/* Motion: one entrance and one drawn line. Everything rests fully visible. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  
  @keyframes draw { from { stroke-dashoffset: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Section label stays put where full-width media follows */

.brand { min-width: 44px; }

/* =====================================================================
   Layout layer built to Shiyara's page mockups.
   Cream paper, deep green accent, soft sand cards, organic hero shape.
   ===================================================================== */
:root {
  --paper: #f8f1e8;
  --sand: #e9dccb;
  --blush: #efe3d3;
  --card: #f2e8da;
  --ink: #1c1b17;
  --ink-2: #5a554b;
  --line: #e1d6c5;
  --olive: #1f4636;
  --olive-soft: #cdd9cc;
  --gold: #b3945f;
  --clay: #96472c;
  --r: 14px;
  --head: 72px;
}
body { font-size: 16.5px; }
h1 { font-size: clamp(40px, 5.1vw, 74px); line-height: 1.02; }
h1 em, h2 em, h3 em { color: var(--olive); }
h2 { font-size: clamp(29px, 3.2vw, 46px); line-height: 1.08; }

/* Eyebrow: small caps label with a short gold rule */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.eyebrow b { color: var(--gold); font-weight: 600; }

/* Icons */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-box { width: 46px; height: 46px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; flex: none; color: var(--olive); }

/* Buttons */
.btn { border-radius: 8px; min-height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn--green { background: var(--olive); border-color: var(--olive); color: #fbf8f3; }
@media (hover: hover) and (pointer: fine) { .btn--green:hover { background: var(--ink); border-color: var(--ink); } }

.btn .arr, .arr { display: inline-block; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { a:hover > .arr, .btn:hover .arr { transform: translate(2px, -2px); } }

/* Header: sits over the hero art, turns solid once you scroll */
.site-head { background: rgba(248, 241, 232, .94); border-bottom-color: var(--line); transition: background-color .3s ease, border-color .3s ease; }
.site-head.is-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-head .wrap { min-height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; }
.brand { font-size: 22px; gap: 0; }
.site-head .btn { justify-self: end; min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.nav { gap: clamp(18px, 3.6vw, 52px); }
.nav a { font-size: 14.5px; }
.nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 760px) {
  .site-head .wrap { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand { font-size: 18px; }
  .brand span { display: inline; }
  .nav { justify-content: flex-end; gap: 14px; }
  .nav a { font-size: 13px; }
  .site-head .btn { padding: 0 12px; font-size: 12.5px; min-height: 36px; }
  .site-head .btn i { display: none; }
}
@media (max-width: 480px) { .brand span { display: none; } .brand::before { content: "SY"; font-family: var(--display); font-size: 21px; } }
.site-head .btn i { font-style: normal; }

/* Hero with organic art */
.hero2 { position: relative; }

.hero2__text { padding-top: clamp(28px, 5vw, 60px); padding-bottom: clamp(28px, 4vw, 56px); display: grid; gap: clamp(18px, 2vw, 26px); justify-items: start; position: relative; z-index: 1; }
.hero2__text p.sub { max-width: 30em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; }

@media (min-width: 900px) {
  .hero2 { min-height: clamp(440px, 41vw, 600px); display: flex; align-items: center; }
  .hero2 > .wrap { width: 100%; }
  .hero2__text { max-width: 47%; }
  
}
.back { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; text-decoration: none; padding: 10px 0; }
@media (hover: hover) and (pointer: fine) { .back:hover { color: var(--olive); } }

/* Stats row */
.stats4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; padding-block: clamp(28px, 3.4vw, 44px); }
.stats4 > div { padding-right: 18px; }
.stats4 dt { font-family: var(--display); font-size: clamp(38px, 3.6vw, 50px); letter-spacing: -0.02em; line-height: 1; }
.stats4 dd { margin-top: 10px; font-size: 14.5px; line-height: 1.45; max-width: 15em; }
.stats4 .ic { width: 30px; height: 30px; margin-bottom: 4px; }
@media (min-width: 900px) {
  .stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats4 > div + div { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
}
@media (max-width: 899px) { .stats4 > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); } }

/* Blocks */
.blk { padding-block: clamp(40px, 5vw, 76px); }
.blk--tight { padding-block: clamp(24px, 3vw, 40px); }
.blk__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2vw, 28px); }
.more { font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; padding: 10px 0; }
@media (hover: hover) and (pointer: fine) { .more:hover { color: var(--olive); } }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Featured work: image cards with the title on the picture */
.cards4 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: #fbf8f3; background: var(--sand); }
.pcard > img, .pcard > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { .pcard:hover > img, .pcard:hover > svg { transform: scale(1.035); } }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 30, 18, .82) 0%, rgba(40, 30, 18, .35) 42%, rgba(40, 30, 18, 0) 68%); }
.pcard__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(14px, 1.6vw, 22px); z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: end; }
.pcard__txt strong { font-family: var(--ui); font-weight: 600; font-size: clamp(16px, 1.35vw, 19px); grid-column: 1 / -1; }
.pcard__txt span { font-size: 13px; line-height: 1.4; }
@media (min-width: 1000px) { .cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } .pcard { aspect-ratio: 16 / 10; } }

/* Work page: 2 x 2 cards, picture left, text right */
.cards2 { display: grid; gap: 16px; }
.wcard { display: grid; grid-template-columns: minmax(0, 1fr); background: #fbf6ee; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { .wcard:hover { border-color: var(--olive); transform: translateY(-2px); } }
.wcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.wcard__img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { .wcard:hover .wcard__img > * { transform: scale(1.035); } }
.wcard__txt { padding: 20px 20px 18px; display: grid; gap: 8px; align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.wcard__txt .num { font-size: 13px; color: var(--gold); font-weight: 500; }
.wcard__txt h3 { font-size: clamp(27px, 2.4vw, 34px); letter-spacing: -0.02em; }
.wcard__txt .kind { font-size: 13.5px; color: var(--ink-2); }
.wcard__txt p.desc { font-size: 15px; line-height: 1.5; margin-top: 6px; }
.wcard__txt .arr { justify-self: end; font-size: 20px; }
@media (min-width: 620px) { .wcard { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); } .wcard__img { aspect-ratio: auto; min-height: 220px; } }
@media (min-width: 1000px) { .cards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Approach: five steps */

.split { display: grid; gap: 28px clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } .split--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--rule > :first-child { padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line); } }
.split > * { min-width: 0; }
.intro-col { display: grid; gap: 18px; align-content: start; }
.intro-col p:not(.eyebrow) { font-size: 15.5px; line-height: 1.6; max-width: 24em; }

/* About teaser */
.teaser { display: grid; gap: 28px clamp(32px, 5vw, 64px); align-items: center; }

.teaser__txt { display: grid; gap: 16px; justify-items: start; }
.teaser__txt p:not(.eyebrow) { max-width: 36em; }
@media (min-width: 900px) { .teaser { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* CTA band */
.band { position: relative; overflow: hidden; border-radius: 18px; background: var(--olive); color: #fbf8f3; padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; }
.band > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.band > :not(svg) { position: relative; }
.band h2 { font-size: clamp(27px, 2.9vw, 40px); max-width: 15em; }
.band p { font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); margin-top: 6px; opacity: .92; }
.band-wrap { padding-block: clamp(16px, 2vw, 28px); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(16px, 2vw, 28px); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 76px; padding-block: 14px; }
.site-foot .brand { font-size: 19px; }
.site-foot nav { display: flex; gap: clamp(18px, 3.4vw, 44px); }
.site-foot nav a { font-size: 14px; text-decoration: none; padding: 10px 0; }
@media (hover: hover) and (pointer: fine) { .site-foot nav a:hover, .site-foot .soc a:hover { color: var(--olive); } }
.site-foot .soc { display: flex; gap: 10px; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); }
.site-foot .soc a { width: 44px; height: 44px; display: grid; place-items: center; }
.site-foot small { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 700px) { .site-foot .soc { border-left: 0; padding-left: 0; } }

/* About page */
.tline { position: relative; display: grid; gap: 26px; margin-top: clamp(22px, 3vw, 40px); }
.tline::before { content: ""; position: absolute; left: 4.5px; top: 12px; bottom: 30px; width: 1px; background: var(--ink); opacity: .7; }
.tline li { position: relative; padding-left: 30px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.tline li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.tline li.is-now::before { background: var(--olive); border-color: var(--olive); }
.tline h3 { font-family: var(--ui); font-weight: 600; font-size: 17px; letter-spacing: 0; line-height: 1.35; }
.tline .when { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; padding-top: 3px; }
.tline .role { grid-column: 1 / -1; font-weight: 500; font-size: 14.5px; }

.tline .now { justify-self: start; grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); margin-bottom: 4px; }
.xcards { display: grid; gap: 12px; margin-top: clamp(22px, 3vw, 40px); }
.xcard { background: var(--card); border-radius: var(--r); padding: 20px 18px 22px; display: grid; gap: 14px; align-content: start; }
.xcard h3 { font-family: var(--ui); font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1.3; }
.xcard li { font-size: 14px; line-height: 1.45; padding-left: 14px; position: relative; }
.xcard li + li { margin-top: 7px; }
.xcard li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.xcard .ic { width: 30px; height: 30px; }
@media (min-width: 620px) { .xcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.edu { display: grid; gap: 26px; margin-top: 22px; }
.edu li { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.edu h3 { font-family: var(--ui); font-weight: 600; font-size: 17px; letter-spacing: 0; }
.edu p { font-size: 15px; line-height: 1.5; grid-column: 2; }
.edu .ic-box { grid-row: span 3; }
.strip { background: var(--card); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px) clamp(20px, 3vw, 40px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--sand); }
.langs { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 16px; }
.langs li { display: grid; gap: 6px; justify-items: center; font-size: 13.5px; }
.langs b { font-weight: 600; font-size: 13.5px; padding: 5px 16px; border-radius: 999px; background: var(--sand); }
.recog { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(100deg, #e3dbc6 0%, #e9dccb 45%, #d9c3a3 100%); display: grid; }
.recog__txt { padding: clamp(24px, 3.4vw, 44px) clamp(22px, 4vw, 52px); display: grid; gap: 14px; justify-items: start; align-content: center; }
.recog__txt p:not(.eyebrow) { font-size: 15px; line-height: 1.55; max-width: 34em; }

@media (min-width: 900px) { .recog { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }  }

/* Contact page */
.touch { display: grid; }
.touch li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.touch li:last-child { border-bottom: 0; }
.touch a { text-decoration: none; display: contents; }
.touch b { font-weight: 600; font-size: 16px; display: block; }
.touch span.v { font-size: 15px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .touch a:hover .v { color: var(--olive); } }
.form { display: grid; gap: 22px 28px; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
.form label { display: grid; gap: 9px; font-weight: 600; font-size: 15px; }
.form label i { color: var(--clay); font-style: normal; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 15.5px; color: var(--ink); background: #fbf6ee; border: 1px solid #a89f8f; border-radius: 8px; padding: 13px 16px; width: 100%; min-height: 50px; transition: border-color .2s ease, box-shadow .2s ease; }
.form textarea { min-height: 132px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(31, 70, 54, .16); }
.form ::placeholder { color: #6d675b; }
.form .wide, .form button, .form .hint { grid-column: 1 / -1; }
.form button { justify-self: start; cursor: pointer; font-family: var(--ui); }
.form .hint { font-size: 13.5px; color: var(--ink-2); margin-top: -8px; }
@media (min-width: 620px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.closing { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(100deg, #efe4d6 0%, #ead9c5 55%, #d8bf9d 100%); padding: clamp(32px, 5vw, 72px) clamp(24px, 4.4vw, 60px); display: grid; gap: 12px; }
.closing > svg { position: absolute; right: 0; top: 0; height: 100%; width: 52%; }
.closing > :not(svg) { position: relative; }
.closing h2 { font-size: clamp(34px, 4.4vw, 62px); max-width: 9em; }
.closing .sig { font-family: var(--display); font-size: 26px; margin-top: 18px; }

/* Case studies */
.meta5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; padding-block: 22px; border-bottom: 1px solid var(--line); }
.meta5 > div { display: flex; gap: 14px; align-items: center; padding-right: 12px; }
.meta5 dt { font-weight: 600; font-size: 13.5px; }
.meta5 dd { font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.meta5 .ic { width: 26px; height: 26px; }
@media (min-width: 1000px) { .meta5 { grid-template-columns: repeat(5, auto); justify-content: space-between; } .meta5 > div + div { padding-left: clamp(16px, 2.6vw, 40px); border-left: 1px solid var(--line); } }
.cs { padding-block: clamp(30px, 3.6vw, 52px); border-bottom: 1px solid var(--line); }
.cs__grid { display: grid; gap: 24px clamp(28px, 4vw, 60px); align-items: start; }
.cs__grid > * { min-width: 0; }
.cs__intro { display: grid; gap: 14px; align-content: start; }
.cs__intro p:not(.eyebrow) { font-size: 15px; line-height: 1.6; max-width: 32em; }
.cs__intro h2 { font-size: clamp(28px, 2.8vw, 40px); }
@media (min-width: 1000px) { .cs__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .cs__grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cs__full { margin-top: clamp(22px, 3vw, 36px); }
.goal { padding-left: clamp(0px, 3vw, 48px); }
.goal h3 { font-style: italic; color: var(--olive); font-size: clamp(24px, 2.2vw, 30px); }
.goal p { margin-top: 10px; max-width: 30em; font-size: 15.5px; }
@media (min-width: 1000px) { .goal { border-left: 1px solid var(--line); } }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.nums div { border-top: 1px solid var(--ink); padding-top: 12px; }
.nums dt { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1; color: var(--olive); }
.nums dd { font-size: 13.5px; line-height: 1.4; margin-top: 8px; max-width: 14em; }
.ccards { display: grid; gap: 10px; }
.ccard { background: var(--card); border-radius: var(--r); padding: 20px 18px 22px; display: grid; gap: 10px; align-content: start; }
.ccard h3 { font-family: var(--ui); font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1.25; }
.ccard p { font-size: 14px; line-height: 1.5; }
.ccard .ic { width: 28px; height: 28px; }
@media (min-width: 620px) { .ccards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ccards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ccards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
.methods li { display: grid; gap: 8px; align-content: start; padding-right: 16px; }
.methods h3 { font-family: var(--ui); font-weight: 600; font-size: 15px; letter-spacing: 0; line-height: 1.25; }
.methods p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.methods .ic { width: 28px; height: 28px; }
@media (min-width: 760px) { .methods { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); } .methods li + li { padding-left: 18px; border-left: 1px solid var(--line); } }
.pills3 { display: grid; gap: 10px; }
.pills3 li { background: var(--sand); border-radius: 12px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; font-size: 15px; line-height: 1.4; }
.pills3 .ic { width: 28px; height: 28px; color: var(--olive); }
@media (min-width: 760px) { .pills3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chev { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 12px; }
.chev li { background: var(--sand); padding: 18px 14px 18px 26px; min-height: 104px; display: grid; gap: 8px; justify-items: center; align-content: center; text-align: center; font-weight: 600; font-size: clamp(11px, 1.05vw, 14.5px); line-height: 1.25; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); margin-left: -8px; }
.chev li:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); margin-left: 0; padding-left: 14px; }
.chev li:nth-child(2) { background: #e3d6c1; } .chev li:nth-child(3) { background: #dccfb8; } .chev li:nth-child(4) { background: #d3c9b2; }
.chev li:last-child { background: var(--olive); color: #fbf8f3; }
.chev .ic { width: 24px; height: 24px; }
@media (max-width: 700px) { .chev { grid-template-columns: 1fr; gap: 4px; } .chev li, .chev li:first-child { clip-path: none; margin: 0; min-height: 0; padding: 14px 16px; grid-template-columns: auto 1fr; justify-items: start; text-align: left; font-size: 15px; border-radius: 8px; } }
.reflect { display: grid; gap: 22px 0; }
.reflect li { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-content: start; }
.reflect h3 { font-family: var(--ui); font-weight: 600; font-size: 15.5px; letter-spacing: 0; align-self: center; }
.reflect p { grid-column: 2; font-size: 14px; line-height: 1.55; max-width: 26em; }
.reflect .ic { width: 28px; height: 28px; }
@media (min-width: 760px) { .reflect { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } .reflect li { padding-right: 20px; } .reflect li + li { padding-left: 24px; border-left: 1px solid var(--line); } }
.csnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 18px; font-size: 14.5px; }
.csnav a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; }
@media (hover: hover) and (pointer: fine) { .csnav a:hover { color: var(--olive); } }
.csnav a:last-child { justify-self: end; }
@media (max-width: 620px) { .csnav { grid-template-columns: 1fr 1fr; } .csnav a:nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }
.fig figcaption, .cap { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.journey, .eco, .bp-scroll { border-radius: var(--r); background: #fbf6ee; }
.eco__side { background: var(--card); } .eco__side--b { background: var(--sand); }
.note { font-size: 13.5px; }
.pcard::after { background: linear-gradient(to top, rgba(34, 26, 16, .92) 0%, rgba(34, 26, 16, .72) 30%, rgba(34, 26, 16, 0) 66%); }
.wcard__txt .num, .eyebrow b { color: #7d5f2f; }

/* ---------- Motion added by assets/site.js ---------- */
/* Rotating phrase in the home headline */
.rot { display: block; transition: transform .42s cubic-bezier(.3, 0, .2, 1), opacity .42s ease, filter .42s ease; will-change: transform, opacity; }
.rot.is-out { transform: translateY(-38%); opacity: 0; filter: blur(6px); }
.rot.is-in { transform: translateY(38%); opacity: 0; filter: blur(6px); transition: none; }
/* Rise-in for blocks reached while scrolling */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .wcard.rv.in:hover { transform: translateY(-2px); transition-delay: 0s; } }
/* Small touches */
.ic-box { transition: background-color .3s ease, color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.ccard, .xcard, .pills3 li { transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .3s ease; }
.chips li { transition: background-color .25s ease, color .25s ease; }

@media (prefers-reduced-motion: no-preference) {
  
  @keyframes art-in { from { opacity: 0; transform: scale(1.06); } }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* Client logo cards */
.pcard--logo { background: #fbf6ee; border: 1px solid var(--line); color: var(--ink); transition: border-color .3s ease; }
@media (hover: hover) and (pointer: fine) { .pcard--logo:hover { border-color: var(--olive); } }
.pcard--logo::after { content: none; }
.pcard--logo > img { inset: 10% 16% auto 16%; width: 68%; height: 46%; object-fit: contain; mix-blend-mode: multiply; }
.pcard--logo .pcard__txt { border-top: 1px solid var(--line); margin-inline: clamp(14px, 1.6vw, 22px); padding-inline: 0; padding-top: 14px; }
.wcard__img--logo { background: #fbf6ee; border-right: 1px solid var(--line); border-radius: 0; }
.wcard__img--logo > img { inset: 16%; width: 68%; height: 68%; object-fit: contain; mix-blend-mode: multiply; }
.pcard--logo > img { inset: 9% 18% auto 18%; width: 64%; height: 36%; }
@media (min-width: 1000px) { .cards4 .pcard { aspect-ratio: 5 / 4; } }
img[src*="logo-maf"] { filter: brightness(1.04); }

/* ---------- Photos, centred logos, phone, extra motion ---------- */
/* Logo cards: the logo sits in the middle of the space above the text */
.pcard--logo { display: flex; flex-direction: column; }
.pcard--logo > img { position: static; inset: auto; flex: 1 1 0; min-height: 0; width: 100%; height: auto; object-fit: contain; padding: 9% 22% 7%; mix-blend-mode: multiply; }
.pcard--logo > img[src*="logo-cma"] { padding: 6% 26% 4%; }
.pcard--logo > img[src*="logo-maf"] { padding: 9% 14% 7%; }
.pcard--logo .pcard__txt { position: static; flex: none; padding-bottom: clamp(14px, 1.6vw, 22px); }
.wcard__img--logo > img { inset: 0; width: 100%; height: 100%; padding: 18% 20%; }
.wcard__img--logo > img[src*="logo-maf"] { padding: 18% 12%; }

/* Photo in the hero shape settles with a slow zoom */

@media (prefers-reduced-motion: no-preference) {
  
  @keyframes settle { from { transform: scale(1.14); } }
}

/* CTA band and closing card with photography */
.band { background: #3a2f25; }

.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38, 28, 20, .82) 0%, rgba(38, 28, 20, .55) 55%, rgba(38, 28, 20, .3) 100%); }
.band > div, .band > a { position: relative; z-index: 1; }

/* Reading progress line */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--olive); transform: scaleX(0); transform-origin: 0 50%; z-index: 30; pointer-events: none; }

/* Capabilities ticker */

@media (prefers-reduced-motion: no-preference) {
  
  
  @keyframes marq { to { transform: translateX(-50%); } }
}

/* Pictures wipe open as they are reached */
.rv-wipe { overflow: hidden; }
.rv-wipe > img, .rv-wipe > .fig__zoom > img { clip-path: inset(0 0 100% 0); transform: scale(1.06); transition: clip-path 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.rv-wipe.in > img, .rv-wipe.in > .fig__zoom > img { clip-path: inset(0); transform: none; }
.rv-wipe > figcaption { opacity: 0; transition: opacity .6s ease .5s; }
.rv-wipe.in > figcaption { opacity: 1; }

/* Timeline line draws downward */
.tline.rv-line::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.6s cubic-bezier(.3, .6, .2, 1); }
.tline.rv-line.in::before { transform: scaleY(1); }

/* Cards tilt slightly toward the pointer */

/* Page-to-page cross-fade in browsers that support it */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .28s ease both; }
  ::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) { .rv-wipe > img, .rv-wipe > .fig__zoom > img { clip-path: none; transform: none; } .rv-wipe > figcaption { opacity: 1; } .tline.rv-line::before { transform: none; } }

.pcard--logo > img[src*="logo-khda"] { padding: 10% 27% 8%; }
@media (min-width: 900px) { .hero2__text p.sub { max-width: 25em; } }

/* ---------- Round of her feedback: text-only heroes, calmer pages ---------- */
/* Heroes: no picture, text centred */
.hero2 { min-height: 0; display: block; text-align: center; }
.hero2__text { max-width: 60rem; margin-inline: auto; justify-items: center; padding-top: clamp(52px, 8vw, 120px); padding-bottom: clamp(36px, 5vw, 72px); }
.hero2__text p.sub { max-width: 38em; }
.hero2__text h1 { max-width: 14em; }
.hero2 .back { justify-self: center; }
.site-head.is-top { background: rgba(248, 241, 232, .94); border-bottom-color: var(--line); }
.stats4 { border-top: 1px solid var(--line); }

/* Note runs the full width of the section */
.note--wide { max-width: none; margin: clamp(16px, 2vw, 24px) 0; }

/* Project cards: logo area on top, text below, all four built the same way */
.cards4 .pcard, .pcard { aspect-ratio: auto; }
.pcard--logo { min-height: 268px; }
.pcard__top { flex: 1 1 auto; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 22px 16px 16px; text-align: center; }
.pcard--logo .pcard__top > img, .pcard--logo > img { position: static; width: auto; height: auto; max-width: 62%; max-height: 92px; padding: 0; flex: none; mix-blend-mode: multiply; object-fit: contain; }
.pcard__top > img[src*="logo-maf"] { max-width: 78%; }
.pcard__top > img[src*="logo-dispeco"] { max-width: 70%; max-height: 54px; }
.pcard__top > img[src*="logo-cma"] { max-height: 104px; }
.award { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; padding: 6px 12px; border-radius: 999px; background: #efe1c6; color: #5c4514; }
.award .ic { width: 15px; height: 15px; stroke-width: 1.6; }
.award__sub { font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.wcard__txt .award { justify-self: start; margin-top: 4px; }
.wcard__txt .award__sub { margin-top: -2px; }
.wcard__img--logo > img[src*="logo-dispeco"] { padding: 18% 14%; }
.wcard__txt { grid-template-rows: none; }
.wcard__txt .arr { align-self: end; }

/* Expertise row on the home page */
.exprow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; margin-top: 22px; }
.exprow li { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; line-height: 1.3; padding-inline: 10px; }
.exprow .ic { width: 28px; height: 28px; color: var(--ink); transition: color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.exprow span { max-width: 9em; }
@media (min-width: 620px) { .exprow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .exprow { grid-template-columns: repeat(7, minmax(0, 1fr)); } .exprow li + li { border-left: 1px solid var(--line); } }

/* Call-to-action band: light sand, dark text */
.band { background: #eee2d0; color: var(--ink); }
.band::after { background: linear-gradient(90deg, #f1e7d8 0%, rgba(241, 231, 216, .93) 42%, rgba(241, 231, 216, .35) 100%); }

.band p { opacity: 1; color: var(--ink-2); }

/* Approach: four phases with their activities */
.phases { display: grid; gap: 0; margin-top: clamp(26px, 3vw, 44px); border-top: 1px solid var(--ink); }
.phases > li { padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.phase__n { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.phase__n b { color: #7d5f2f; font-weight: 600; margin-right: 8px; }
.phases h3 { font-size: clamp(23px, 2.1vw, 29px); max-width: 17em; }
.phase__d { font-size: 15px; line-height: 1.6; max-width: 34em; }
.phase__k { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }
.phases ul li { font-size: 14.5px; line-height: 1.45; padding: 7px 0 7px 16px; position: relative; border-top: 1px solid var(--line); }
.phases ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); }
@media (min-width: 900px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(36px, 5vw, 80px); }
}
@media (min-width: 1280px) {
  .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-bottom: 1px solid var(--line); }
  .phases > li { border-bottom: 0; padding-right: 26px; }
  .phases > li + li { padding-left: 26px; border-left: 1px solid var(--line); }
}

/* About: experience written out as in the CV */

.split--rule > :last-child { padding-left: 0; }
@media (min-width: 1000px) { #cvgrid > :last-child { padding-left: clamp(4px, 1vw, 16px); } }

/* Recognition highlights */

.recog--plain { grid-template-columns: minmax(0, 1fr); background: linear-gradient(100deg, #efe4d2 0%, #ecdcc4 100%); }
.recog--plain .nums--band { margin: 0; padding: 0 clamp(22px, 4vw, 52px) clamp(24px, 3.4vw, 44px); align-self: center; }
.recog--plain h2 { font-size: clamp(26px, 2.8vw, 40px); max-width: 16em; }
@media (min-width: 1000px) { .recog--plain { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .recog--plain .nums--band { padding: clamp(24px, 3.4vw, 44px) clamp(22px, 4vw, 52px) clamp(24px, 3.4vw, 44px) 0; } }
.cs:has(.recog--plain) { border-bottom: 0; padding-bottom: 0; }

/* No decorative photography: text-only teaser, plain band and closing card */
.teaser--text { grid-template-columns: minmax(0, 1fr); }
.teaser--text .teaser__txt { max-width: 52rem; }
@media (min-width: 900px) {
  .teaser--text .teaser__txt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 72px); max-width: none; align-items: start; }
  .teaser--text .teaser__txt > .eyebrow, .teaser--text .teaser__txt > h2 { grid-column: 1; }
  .teaser--text .teaser__txt > p:not(.eyebrow), .teaser--text .teaser__txt > .btn { grid-column: 2; }
  .teaser--text .teaser__txt > p:not(.eyebrow) { grid-row: 2; }
  .teaser--text .teaser__txt > .btn { grid-row: 3; }
}
.band::after { content: none; }
.band { background: var(--card); border: 1px solid var(--line); }
.closing { background: var(--card); border: 1px solid var(--line); }

/* Approach phases: every part lines up across the four columns */
.phases > li { grid-template-rows: subgrid; grid-row: span 5; row-gap: 10px; }
.phases { row-gap: 0; }
.phases > li > ul { align-self: start; }
.phase__k { align-self: end; }

/* About timeline with the CV's full detail */
.tline { gap: 30px; }
.tline .tsub { grid-column: 1 / -1; margin-top: 14px; }
.tline h4 { font-family: var(--ui); font-weight: 600; font-size: 15px; letter-spacing: 0; line-height: 1.35; }
.tline .torg { font-size: 13.5px; font-style: italic; color: var(--ink-2); }
.tline ul { grid-column: 1 / -1; margin-top: 8px; display: grid; gap: 6px; }
.tline ul li { padding-left: 14px; font-size: 14.5px; line-height: 1.55; display: block; }
.tline ul li::before { left: 0; top: .72em; width: 5px; height: 1px; border: 0; border-radius: 0; background: var(--ink); }
.tline::before { bottom: 12px; }
@media (min-width: 900px) and (max-width: 1100px) { .split--half .xcards { grid-template-columns: 1fr; } }

/* Approach, final form: one row per phase. Name on the left, what it means in the
   middle, activities on the right in two even columns. Nothing depends on the
   length of a neighbouring column, so every row lines up. */
.phases, .phases > li { grid-template-rows: none; }
.phases { grid-template-columns: minmax(0, 1fr) !important; column-gap: 0; border-bottom: 0; }
.phases > li { grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: clamp(24px, 3vw, 40px) 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
.phases h3 { font-size: clamp(22px, 2vw, 28px); max-width: 18em; }
.phase__n { align-self: start; padding-top: 6px; }
.phase__k { align-self: start; margin-top: 12px; }
.phases ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; align-self: start; }
.phases ul li { border-top: 0; padding: 5px 0 5px 16px; }
.phases ul li::before { top: .95em; }
@media (min-width: 620px) { .phases ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .phases > li { grid-template-columns: 150px minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 4vw, 64px); row-gap: 12px; }
  .phase__n { grid-column: 1; grid-row: 1 / span 2; }
  .phases h3 { grid-column: 2; grid-row: 1; }
  .phase__d { grid-column: 2; grid-row: 2; }
  .phase__k { grid-column: 3; grid-row: 1; margin-top: 0; padding-top: 9px; }
  .phases ul { grid-column: 3; grid-row: 2; }
}
@media (min-width: 620px) { .phases ul { display: block; columns: 2; column-gap: 36px; } .phases ul li { break-inside: avoid; } }
@media (min-width: 1000px) { .phases ul { grid-row: 1 / span 2; padding-top: 38px; } }
@media (min-width: 1000px) { .phases > li { grid-template-rows: auto 1fr; } .phase__d { align-self: start; } }

/* ---------- Review pass: phone behaviour, accessibility, polish ---------- */
/* Phones: no grey tap flash, no double-tap delay, fields that do not trigger zoom */
html { -webkit-tap-highlight-color: transparent; }
a, button, .btn, select, input, textarea { touch-action: manipulation; }
.btn, .nav a, .site-foot nav a, .more, .back, .csnav a { -webkit-user-select: none; user-select: none; }
.form input, .form select, .form textarea { font-size: 16px; border-color: #8a8170; }
.site-head { padding-top: env(safe-area-inset-top, 0px); background: var(--paper); backdrop-filter: none; }
.site-head.is-top { background: var(--paper); }
.site-foot { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 760px) { .site-head .btn { min-height: 40px; } }

/* Press feedback for every input type */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .14s cubic-bezier(.23, 1, .32, 1); }
.btn:active { transform: scale(.97); }
.pcard, .wcard { transition: border-color .3s ease, transform .16s cubic-bezier(.23, 1, .32, 1); }
.pcard:active, .wcard:active { transform: scale(.985); }
.nav a:active, .more:active, .back:active, .csnav a:active, .site-foot a:active, .touch a:active { opacity: .6; }

/* Type */
.eyebrow { font-family: var(--ui); line-height: 1.5; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.award { font-size: 11px; letter-spacing: .05em; white-space: nowrap; }
.bp__label, .bp__ev { font-size: 11px; }
.bp__rule { font-size: 11px; letter-spacing: .1em; }
.journey__cell::before, .journey__rows > * { font-size: 12px; letter-spacing: .1em; }
.eyebrow, .phase__n, .phase__k { font-size: 12px; }
@media (min-width: 1000px) {
  .cs__intro p:not(.eyebrow), .phase__d, .tline ul li, .tline .role, .goal p, .recog__txt p:not(.eyebrow) { font-size: 16px; }
  .ccard p, .xcard li, .phases ul li, .reflect p, .wcard__txt p.desc, .pcard__txt span { font-size: 15px; }
  .methods p, .nums dd, .stats4 dd { font-size: 14.5px; }
}
@media (max-width: 999px) { .phases h3 { max-width: none; } }

/* Home headline: the changing phrase never changes the layout */
.rot { white-space: nowrap; }
.rot.is-out, .rot.is-in { filter: none; }
@media (max-width: 420px) { .hero2__text h1 { font-size: clamp(31px, 9.4vw, 40px); } }

/* Case-study summary strip: term and value sit directly in each group */
.meta5 > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.meta5 > div > .ic { grid-row: span 2; }
.meta5 dt { align-self: end; }
.meta5 dd { align-self: start; margin-top: 0; }

/* Contact rows: the whole row is the link and shows keyboard focus */
.touch li { padding: 0; display: block; }
.touch li > a, .touch li:not(:has(a)) { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 20px; align-items: center; padding: 22px 0; text-decoration: none; }
.touch li > a { border-radius: 6px; }
@media (min-width: 900px) { #touch { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
@media (max-width: 899px) { #touch { grid-template-columns: minmax(0, 1fr); } }

/* About: columns keep their own rhythm */
.about-grid { row-gap: clamp(48px, 8vw, 72px); }
/* The side column follows the reader only on screens tall enough to show all of it */
@media (min-width: 900px) and (min-height: 1080px) { .about-grid > :last-child { position: sticky; top: 96px; align-self: start; } }
@media (max-width: 480px) { .nums dt { font-size: clamp(22px, 7vw, 30px); } .nums { gap: 8px; } }
@media (max-width: 619px) { .exprow li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Figures open full size; phone mock-ups sit on the paper instead of a grey box */
.fig__zoom { display: block; border-radius: var(--r); cursor: zoom-in; }
.fig img[src*="moe-"] { mix-blend-mode: multiply; background: transparent !important; }
.gallery--even { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
@media (min-width: 860px) { .gallery--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } .gallery--even .fig img { height: clamp(300px, 34vw, 480px); object-fit: cover; } }
.ccard:not(:has(.ic)) { border-top: 2px solid var(--olive); border-radius: 0 0 var(--r) var(--r); }

/* Printing and "Save as PDF" show everything */
@media print {
  .rv, .rv-wipe > figcaption { opacity: 1 !important; transform: none !important; }
  .rv-wipe > img, .rv-wipe .fig__zoom > img { clip-path: none !important; transform: none !important; }
  .rise { animation: none !important; }
  .site-head, .progress, .skip { display: none !important; }
  .bp-scroll { overflow: visible; }
}
.meta5 > div { align-content: center; }
.meta5 dt, .meta5 dd { align-self: auto; }
.hero2 .eyebrow { white-space: nowrap; }
.meta5 > div { row-gap: 2px; }


/* ---------- Impeccable pass ---------- */
/* Labels stand on their own: no decorative lines beside them */
.eyebrow { display: block; }
.eyebrow b { margin-right: 8px; }
.recog__meta { font-size: 14px; color: var(--ink-2); margin-top: -4px; }
.closing .sig { margin-top: 26px; }

/* The parts the browser draws carry the palette too */
:root { accent-color: var(--olive); caret-color: var(--olive); }
::selection { background: var(--olive); color: #fbf8f3; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.bp-scroll { scrollbar-color: var(--olive) var(--sand); scrollbar-width: thin; }
.bp-scroll::-webkit-scrollbar { height: 8px; }
.bp-scroll::-webkit-scrollbar-track { background: var(--sand); }
.bp-scroll::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 8px; }
.stats4 dt, .nums dt, .hl b, .tline .when, .wcard__txt .num { font-variant-numeric: tabular-nums lining-nums; }

/* Reduced motion: state changes stay (colour, opacity), movement goes */
@media (prefers-reduced-motion: reduce) {
  .btn, .pcard, .wcard, .arr, .link::after, .nav a::after, .band > .band__bg { transition-property: color, background-color, border-color, opacity; }
  .btn:active, .pcard:active, .wcard:active { transform: none; }
}
@media (min-width: 900px) {
  .teaser--text .teaser__txt > h2 { grid-column: 1; grid-row: 1 / span 2; }
  .teaser--text .teaser__txt > p:not(.eyebrow) { grid-column: 2; grid-row: 1; padding-top: 8px; }
  .teaser--text .teaser__txt > .btn { grid-column: 2; grid-row: 2; }
}

/* Case studies: the way back sits quietly at the top-left, out of the headline's way */
.crumb { padding-top: clamp(14px, 2vw, 24px); }
.crumb .back { font-size: 14px; color: var(--ink-2); padding: 12px 0; }
.crumb .back span { transition: transform .3s cubic-bezier(.2, .7, .2, 1); display: inline-block; }
@media (hover: hover) and (pointer: fine) { .crumb .back:hover { color: var(--olive); } .crumb .back:hover span { transform: translateX(-4px); } }
.hero2--case .hero2__text { padding-top: clamp(28px, 5vw, 72px); }

/* ---------- Last oddities, fixed rather than removed ---------- */
/* Case studies: the project name lives in the breadcrumb, so the headline stands alone */
.crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.crumb__sep { color: var(--line); }
.crumb__here { font-weight: 600; color: var(--ink); }
.hero2--case .hero2__text { padding-top: clamp(36px, 6vw, 88px); }

/* Contact card: heading on the left, sign-off on the right, nothing left empty */
.closing { align-items: end; }
.closing__line { font-size: 18px; }
.closing .sig { margin-top: 14px; }
@media (min-width: 860px) {
  .closing { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px); }
  .closing__sign { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); padding-block: 6px; }
}
@media (max-width: 859px) { .closing__sign { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); } }

/* Phone mock-ups: on small screens they keep a readable size and you swipe across them */
.swipe { display: none; }
@media (max-width: 700px) {
  .fig--wide .fig__zoom { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: default; scrollbar-color: var(--olive) var(--sand); scrollbar-width: thin; border-radius: var(--r); }
  .fig--wide .fig__zoom img { width: 760px; max-width: none; }
  .fig--wide .fig__zoom::-webkit-scrollbar { height: 6px; }
  .fig--wide .fig__zoom::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 6px; }
  .fig--wide .fig__zoom::-webkit-scrollbar-track { background: var(--sand); }
  .swipe { display: inline; }
  .rv-wipe.fig--wide > .fig__zoom > img { clip-path: none; transform: none; }
}

/* Client logos: one slow, continuous row. Two copies of the list sit side by side and
   each slides left by exactly its own width, so the loop has no visible seam. */
.clients { display: flex; overflow: hidden; margin-top: clamp(36px, 5vw, 64px); padding-block: clamp(22px, 2.6vw, 32px); border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.clients__track { flex: none; display: flex; align-items: center; gap: clamp(44px, 6vw, 84px); padding-right: clamp(44px, 6vw, 84px); margin: 0; list-style: none; animation: clients-slide 48s linear infinite; }
.clients__track li { flex: none; display: flex; }
.clients__track img { display: block; height: var(--h); width: auto; max-width: none; opacity: .5; }
@keyframes clients-slide { to { transform: translateX(-100%); } }
@media (max-width: 640px) { .clients__track img { height: calc(var(--h) * .8); } .clients__track { animation-duration: 38s; } }
@media (hover: hover) and (pointer: fine) { .clients:hover .clients__track { animation-play-state: paused; } }
/* The strip keeps moving when a device has animations switched off (it is slow and small),
   only slower. Shiyara's own device has that setting on and the still version read as broken. */
@media (prefers-reduced-motion: reduce) { .clients__track { animation-duration: 80s; } }
