/* CARVED — prototype styles. Black, greige and a light beige accent. */

@font-face { font-family: "Metropolis"; src: url("../assets/fonts/Metropolis-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/Metropolis-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/Metropolis-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/Metropolis-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../assets/fonts/Metropolis-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1f1f1f;
  --paper: #e6e2da;           /* very light beige, leaning grey */
  --paper-2: #d6d1c7;
  --mute: #8c8880;
  --mute-dark: #5e5a53;
  --line: rgba(230, 226, 218, .14);
  --line-dark: rgba(10, 10, 10, .14);
  --accent: #d9cebb;           /* light beige accent */
  --accent-ink: #0a0a0a;

  --font: "Metropolis", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; inset-inline-start: -999px; inset-block-start: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip:focus { inset-inline-start: 8px; }

/* Logo: black PNG on white → white on dark via invert + screen */
.header__logo img, .intro__logo, .footer__logo { filter: sepia(.22) brightness(.92); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  block-size: var(--h); padding-inline: 24px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
/* "Get a quote": clear glass with a beige edge */
.btn--accent {
  background: rgba(217, 206, 187, .10);
  color: var(--paper);
  border-color: rgba(217, 206, 187, .42);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .25);
}
.btn--accent::before { background: rgba(217, 206, 187, .2); }
.btn--accent:hover { border-color: rgba(217, 206, 187, .7); }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
.btn--sm { --h: 40px; padding-inline: 18px; font-size: 14px; }
.btn--lg { --h: 60px; padding-inline: 34px; font-size: 17px; }

.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- Intro ---------- */
/* Frosted black glass over the site: the wordmark arrives, then the © icon, then the glass clears */
.intro { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; cursor: pointer; }
.intro__glass {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, .64);
  -webkit-backdrop-filter: blur(30px) saturate(130%); backdrop-filter: blur(30px) saturate(130%);
}
.intro__glass::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, transparent 35%, transparent 65%, rgba(255, 255, 255, .04) 100%);
}
.intro__stage { position: relative; display: grid; place-items: center; }
.intro__mark { grid-area: 1 / 1; position: relative; visibility: hidden; }
.intro__mark--logo { inline-size: min(64vw, 440px); }
.intro__mark--icon { inline-size: min(30vw, 132px); aspect-ratio: 1; color: var(--accent); filter: drop-shadow(0 0 28px rgba(217, 206, 187, .28)); }
.intro__mark img, .intro__mark svg { display: block; inline-size: 100%; block-size: auto; }
.intro__mark--logo img { filter: sepia(.22) brightness(.92); }
/* glass glint, clipped to the shape of each mark */
.intro__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 150% 0;
  mix-blend-mode: screen;
  -webkit-mask: var(--shape) center / 100% 100% no-repeat; mask: var(--shape) center / 100% 100% no-repeat;
}
.intro__mark--logo .intro__shine { --shape: url("../assets/logo/carved-logo.png"); }
.intro__mark--icon .intro__shine { --shape: url("../assets/logo/carved-icon.svg"); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  block-size: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.header { border-block-end: 1px solid transparent; transition: background-color .5s var(--ease), border-color .5s, box-shadow .5s; }
.header.is-scrolled {
  background: rgba(14, 14, 14, .42);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-block-end-color: rgba(217, 206, 187, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .18);
}
.header__logo img { inline-size: 118px; block-size: auto; }
.header__nav { display: flex; gap: 32px; margin-inline: auto; }
.header__nav a, .lang { font-size: 15px; position: relative; }
.header__nav a::after, .lang::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px; block-size: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.header__nav a:hover::after, .lang:hover::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 22px; }
.lang { font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header__nav, .header__actions > .lang { display: none; }
  .header__actions { margin-inline-start: auto; gap: 14px; }
  .menu-btn {
    display: grid; gap: 6px; place-content: center; inline-size: 40px; block-size: 40px;
    background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; padding: 0;
  }
  .menu-btn span { display: block; inline-size: 16px; block-size: 1.5px; background: var(--paper); transition: transform .4s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding-inline: var(--gutter);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: clamp(32px, 9vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.mobile-menu .lang { font-size: 22px; margin-block-start: 24px; color: var(--mute); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-block-size: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(32px, 6vh, 64px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -6%; z-index: -1; overflow: hidden; background: var(--ink); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,0) 35%, rgba(10,10,10,.92) 100%); }
.hero__bg { background: radial-gradient(120% 90% at 70% 20%, #2a2723 0%, #121110 45%, var(--ink) 80%); }
.grain {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__eyebrow { display: flex; justify-content: space-between; margin-block-end: clamp(24px, 4vh, 48px); max-inline-size: 1600px; }
.hero__title {
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 92px);
  line-height: 1;
  letter-spacing: -.045em;
}
.line { display: block; overflow: hidden; padding-block-end: .06em; }
.line > span { display: inline-block; will-change: transform; }
.dot { font-style: normal; color: var(--accent); }
.hero__foot {
  display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-end;
  margin-block-start: clamp(28px, 5vh, 56px);
  padding-block-start: 8px;
}
.hero__lede { max-inline-size: 420px; color: #c4c0b7; font-size: 15px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; inset-inline-end: var(--gutter); inset-block-start: 50%;
  display: none; align-items: center; gap: 12px; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
}
.hero__scroll i { display: block; inline-size: 1px; block-size: 64px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 1100px) { .hero__scroll { display: flex; } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(96px, 18vh, 200px) var(--gutter); }
.manifesto__text {
  max-inline-size: 1280px;
  font-size: clamp(22px, 2.6vw, 42px);
  line-height: 1.08; letter-spacing: -.035em; font-weight: 400;
}
.manifesto__text .w { opacity: .14; transition: opacity .2s; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px;
  padding-block-end: clamp(32px, 5vw, 64px);
}
.section-title { font-size: clamp(26px, 3vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.section-title sup { font-size: .3em; letter-spacing: 0; vertical-align: top; color: var(--mute); margin-inline-start: .3em; }
.link-arrow { font-size: 15px; display: inline-flex; gap: 10px; align-items: center; border-block-end: 1px solid var(--line); padding-block-end: 6px; transition: border-color .4s; }
.link-arrow::after { content: "→"; transition: transform .5s var(--ease); }
.link-arrow:hover { border-color: var(--paper); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Work ---------- */
.work { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.work__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 32px);
}

.card { display: block; }
.card__media { position: relative; overflow: hidden; background: var(--ink-3); aspect-ratio: 8 / 7; clip-path: inset(0 0 0 0); }
.card__img {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .7s var(--ease);
}
.card__img--alt { opacity: 0; }
.card:hover .card__img { transform: scale(1.02); }
.card:hover .card__img--alt { opacity: 1; }
.card__meta {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline;
  padding-block-start: 18px;
}
.card__meta h3 { font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; letter-spacing: .02em; }
.card__meta p { grid-column: 1 / -1; color: var(--mute); max-inline-size: 46ch; }
.tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* Phones: projects become a swipeable row (next card peeks in) */
@media (max-width: 700px) {
  .work__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .card__meta p { font-size: 15px; }
}

/* ---------- Archive strip ---------- */
.archive { overflow: hidden; padding-block: clamp(24px, 4vw, 48px); border-block: 1px solid var(--line); }
.archive__track { display: flex; inline-size: max-content; will-change: transform; }
.archive__row { display: flex; gap: clamp(10px, 1.4vw, 20px); padding-inline-end: clamp(10px, 1.4vw, 20px); }
.archive__row img { block-size: clamp(180px, 26vw, 380px); inline-size: auto; aspect-ratio: 1600 / 1416; object-fit: cover; }

/* ---------- Proof ---------- */
.proof { padding: clamp(96px, 14vw, 180px) var(--gutter) 0; }
.proof__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block-end: clamp(40px, 5vw, 72px); }
.draft { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px dashed var(--mute); color: var(--mute); padding: 4px 10px; border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block-start: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 10px; }
.stat + .stat { padding-inline-start: 24px; }
.stat:last-child { border-inline-end: 0; }
.stat dt { color: var(--mute); font-size: 15px; }
.stat dd { font-size: clamp(36px, 4vw, 64px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  /* the year across the full width, the two counts side by side under it */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px 24px 0; border-block-end: 1px solid var(--line); }
  .stat + .stat { padding-inline-start: 0; }
  .stat:first-child { grid-column: 1 / -1; border-inline-end: 0; }
  .stat:nth-child(2) { border-inline-end: 1px solid var(--line); }
  .stat:nth-child(3) { padding-inline-start: 16px; border-inline-end: 0; }
}
/* ---------- Clients band: white strip under the hero, logos in their own colours ---------- */
.clients-band {
  background: #fff;
  padding-block: clamp(20px, 2.6vw, 36px);
  display: grid; gap: clamp(8px, 1.2vw, 16px);
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; inline-size: max-content; animation: marquee 90s linear infinite; will-change: transform; backface-visibility: hidden; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 100s; }
@media (hover: hover) { .clients-band:hover .marquee__track { animation-play-state: paused; } }   /* on phones a tap would "stick" and stop it */
.marquee__row { display: flex; align-items: center; gap: clamp(28px, 3.6vw, 56px); padding-inline-end: clamp(28px, 3.6vw, 56px); margin: 0; padding-inline-start: 0; list-style: none; }
.marquee__row img {
  block-size: clamp(56px, 5.6vw, 84px); inline-size: auto; max-inline-size: 220px; object-fit: contain;
  mix-blend-mode: multiply;   /* lets the white crops sit cleanly on the band */
}
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Services (paper) ---------- */
.services {
  position: relative;
  background: var(--paper); color: var(--ink);
  margin-block-start: clamp(96px, 14vw, 180px);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.services__intro, .approach__intro { max-inline-size: 360px; color: var(--mute-dark); font-size: 17px; }
.svc { border-block-start: 1px solid var(--line-dark); }
.svc__item a {
  display: grid; grid-template-columns: 80px 1fr 1.3fr 40px; gap: 16px 32px; align-items: center;
  padding-block: clamp(24px, 3vw, 40px);
  border-block-end: 1px solid var(--line-dark);
  position: relative;
}
.svc__item a::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--ink); z-index: 0;
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.svc__item a > * { position: relative; z-index: 1; transition: color .4s var(--ease), transform .6s var(--ease); }
.svc__item a:hover::before { transform: scaleY(1); }
.svc__item a:hover > * { color: var(--paper); }
.svc__item a:hover .svc__title { transform: translateX(12px); }
.svc__num { font-size: 14px; color: var(--mute-dark); font-variant-numeric: tabular-nums; }
.svc__title { font-size: clamp(20px, 1.9vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.svc__desc { color: var(--mute-dark); max-inline-size: 48ch; } /* wider since the descriptions grew (13 Oct): three lines at most on desktop */
.svc__item a:hover .svc__desc, .svc__item a:hover .svc__num { color: #b5b4ae; }
.svc__arrow { font-size: 28px; justify-self: end; }
.svc__item a:hover .svc__arrow { color: var(--accent); transform: translateX(6px); }
.pill { font-style: normal; display: inline-block; vertical-align: middle; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; background: var(--ink); color: var(--accent); padding: 5px 10px; border-radius: 999px; margin-inline-start: 10px; transform: translateY(-4px); }
@media (max-width: 860px) {
  .svc__item a { grid-template-columns: 32px 1fr 28px; column-gap: 16px; }
  .svc__desc { grid-column: 2 / 3; }
  /* the arrow spans title + description, so it stays in the middle of the row */
  .svc__arrow { grid-row: 1 / span 2; grid-column: 3; align-self: center; }
}

/* ---------- Approach ---------- */
/* Seven stages as in the credentials: orange dots joined by dashed arcs, stage names under each dot */
.approach { --journey-dot: #c2571f; padding: clamp(96px, 14vw, 180px) var(--gutter); }
.approach__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 48px;
  margin-block-end: clamp(48px, 7vw, 104px);
}
.approach .approach__intro { max-inline-size: 440px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: #c4c0b7; }
.journey { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.journey::-webkit-scrollbar { display: none; }
.journey__inner { min-inline-size: 880px; }
.journey__arcs { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.journey .arc { fill: none; stroke: rgba(230, 226, 218, .38); stroke-width: 1.4; stroke-dasharray: 6 7; }
.journey .dot { fill: var(--journey-dot); }
.journey .ring { fill: none; stroke: var(--journey-dot); stroke-width: 1.5; opacity: 0; }
.journey__steps { display: grid; grid-template-columns: repeat(7, 1fr); margin: clamp(18px, 2.4vw, 32px) 0 0; padding: 0; list-style: none; }
.journey__steps li {
  padding-inline-start: 10%;          /* lines the label up with its dot (dot sits 20 of every 200 units in) */
  font-size: clamp(15px, 1.3vw, 20px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em;
}
.journey__steps span { display: block; margin-block-end: 8px; font-size: clamp(13px, 1vw, 15px); font-weight: 400; color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  border-block-start: 1px solid var(--line);
  text-align: start;
}
.cta .eyebrow { margin-block-end: 28px; }
.cta__title { font-size: clamp(36px, 6vw, 104px); font-weight: 500; letter-spacing: -.055em; line-height: .92; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: clamp(36px, 5vw, 64px); }
.cta__note { margin-block-start: 18px; color: var(--mute); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 8vw, 96px) var(--gutter) 28px; border-block-start: 1px solid var(--line); background: var(--ink); }
.footer__logo { inline-size: clamp(150px, 16vw, 240px); block-size: auto; margin-block-end: clamp(40px, 5vw, 64px); }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__grid h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-block-end: 14px; }
.footer__grid a, .footer__grid p { display: block; font-size: 16px; line-height: 1.8; }
.footer__grid a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-block-start: 64px; padding-block-start: 20px; border-block-start: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.proto-note { border: 1px dashed var(--mute-dark); padding: 2px 10px; border-radius: 4px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 70;
  inline-size: 56px; block-size: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.wa-float svg { inline-size: 26px; block-size: 26px; }
.wa-float:hover { transform: scale(1.08); background: var(--accent); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; inset-inline-start: 20px; inset-block-end: 20px; z-index: 70;
  display: flex; align-items: center; gap: 16px;
  max-inline-size: calc(100vw - 112px);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 20px; font-size: 13px; color: #c4c0b7;
  transition: transform .6s var(--ease), opacity .4s;
}
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__ok { background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.cookie.is-gone { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 120; pointer-events: none;
  inline-size: 10px; block-size: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--paper); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: inline-size .45s var(--ease), block-size .45s var(--ease), margin .45s var(--ease), background-color .3s;
}
.cursor span { font-size: 13px; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-view { inline-size: 92px; block-size: 92px; margin: -46px 0 0 -46px; background: var(--accent); mix-blend-mode: normal; }
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Reveal helpers (JS adds .is-in) ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .intro { display: none; }
  .manifesto__text .w { opacity: 1; }
  .cursor { display: none; }
}

/* Touch screens: no sticky hover on the service rows; the tag sits under the title */
@media (hover: none) {
  .svc__item a:hover::before { transform: scaleY(0); }
  .svc__item a:hover .svc__title { color: var(--ink); transform: none; }
  .svc__item a:hover .svc__desc, .svc__item a:hover .svc__num { color: var(--mute-dark); }
  .svc__item a:hover .svc__arrow { color: var(--ink); transform: none; }
}
@media (max-width: 860px) {
  .pill { display: table; margin: 10px 0 0; transform: none; }
}

/* ---------- Moments: the photos glide past, full width, under a glass gradient with the credentials line ---------- */
.moments {
  position: relative; overflow: hidden;
  block-size: clamp(380px, 44vw, 640px);
  margin: clamp(64px, 8vw, 112px) calc(-1 * var(--gutter)) 0;
  background: var(--ink);
}
.moments__track { position: absolute; inset: 0; }
.moment {
  position: absolute; inset-block: 0; inset-inline-start: 0; margin: 0;
  inline-size: clamp(300px, 34vw, 520px);     /* each photo moves on its own (js/main.js), so no wide layer for phones */
  will-change: transform;
}
.moment img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
/* frosted glass rising from the bottom edge */
.moments__glass {
  position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 62%; pointer-events: none;
  -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
  background: linear-gradient(0deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, 0) 100%);
  -webkit-mask-image: linear-gradient(0deg, #000 50%, transparent 100%); mask-image: linear-gradient(0deg, #000 50%, transparent 100%);
}
.moments__copy {
  position: absolute; inset-inline: var(--gutter); inset-block-end: clamp(28px, 4vw, 56px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 48px;
}
.moments__copy h3 { margin: 0; font-size: clamp(26px, 3.2vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; max-inline-size: 14ch; }
.moments__copy p { margin: 0; max-inline-size: 440px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: #d6d2ca; }
@media (max-width: 700px) {
  .moments { block-size: 460px; }
  .moment { inline-size: 72vw; }
  .moments__glass { block-size: 72%; }
}


/* Hero stone: the original image, untouched, with a steady camera move (zoom + pan).
   14s each way (was 26s) and a wider zoom and pan, so the motion reads without feeling restless (Ali, 17 Oct) */
.hero__img {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover;
  transform-origin: 60% 40%;
  animation: camera 14s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes camera {
  from { transform: scale(1.04) translate3d(1.5%, -1%, 0); }
  to   { transform: scale(1.3) translate3d(-4%, 3%, 0); }
}

.intro__mark--icon svg { overflow: visible; }

/* Phones: a smaller wordmark and icon in the intro, and a smaller header logo */
@media (max-width: 700px) {
  .intro__mark--logo { inline-size: 46vw; }
  .intro__mark--icon { inline-size: 20vw; }
  .header__logo img { inline-size: 96px; }
}

.intro[hidden] { display: none; }

/* Clients band: black strip, logos in their brand colours, glass at both ends */
.clients-band { gap: 0; }
.clients-band .marquee { --band: clamp(96px, 9.5vw, 150px); block-size: var(--band); display: flex; align-items: center; }
.clients-band {
  position: relative;
  background: var(--ink);
  border-block: 0;
  padding-block: clamp(20px, 2.4vw, 32px) clamp(6px, 1vw, 12px);
}
.clients-band__title { text-align: center; margin: 0; color: var(--mute); line-height: 1.7; }
.clients-band .marquee { -webkit-mask-image: none; mask-image: none; position: relative; }
/* frosted glass edges: logos blur and fade as they enter and leave */
.clients-band .marquee::before,
.clients-band .marquee::after {
  content: ""; position: absolute; inset-block: 0; inline-size: clamp(96px, 22vw, 340px); z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
}
.clients-band .marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(10, 10, 10, .55) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent);
  border-inline-end: 1px solid rgba(217, 206, 187, .08);
}
.clients-band .marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, var(--ink) 0%, rgba(10, 10, 10, .55) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent); mask-image: linear-gradient(270deg, #000 40%, transparent);
}

/* The strip: one screen-wide element with the logo image repeating as a background that js/main.js slides.
   (A long moving track becomes a layer too wide for iPhones to draw, so it showed black.)
   The tile is 150% of the band's height: logos read bigger and the file's empty top/bottom is cropped. */
.clients-band .marquee .clients-strip {
  inline-size: 100%; block-size: var(--band);
  background: url("../assets/clients/clients-strip-tile-dark.jpg") repeat-x 0 50% / auto 150%;
}

/* Glass: floating WhatsApp button and the cookie bar (same treatment as the "Get a quote" buttons) */
.wa-float, .cookie {
  background: rgba(217, 206, 187, .10);
  border: 1px solid rgba(217, 206, 187, .38);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .3);
}
.wa-float { color: var(--paper); }
.wa-float:hover { background: rgba(217, 206, 187, .22); border-color: rgba(217, 206, 187, .7); }
.cookie { color: #d6d2ca; }
.cookie__ok {
  background: rgba(217, 206, 187, .16); color: var(--paper);
  border: 1px solid rgba(217, 206, 187, .45);
  transition: background-color .3s, border-color .3s;
}
.cookie__ok:hover { background: rgba(217, 206, 187, .3); border-color: rgba(217, 206, 187, .8); }

/* Strip drawn into a canvas by js/main.js (smooth on phones); the CSS background stays as the no-JS fallback */
.clients-band .marquee .clients-strip.is-canvas { background: none; }
.clients-strip canvas { display: block; inline-size: 100%; block-size: 100%; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { block-size: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Project photos: a light frosted glass that clears in one go when each card arrives (--frost set by js/main.js) */
.card__media { --frost: 0; }
.card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--frost);
  -webkit-backdrop-filter: blur(14px) saturate(115%); backdrop-filter: blur(14px) saturate(115%);
  background: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .02) 40%, rgba(10, 10, 10, .18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ======================================================================
   Case study panel: slides up over the page, scrolls on its own
   ====================================================================== */
body.case-open { overflow: hidden; }
.case {
  position: fixed; inset: 0; z-index: 120;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--ink);
  clip-path: inset(100% 0% 0% 0%);
  transition: clip-path .9s var(--ease);
}
.case.is-open { clip-path: inset(0% 0% 0% 0%); }
.case[hidden] { display: none; }
.case__bar {
  position: sticky; inset-block-start: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px;
  background: rgba(14, 14, 14, .45);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-block-end: 1px solid rgba(217, 206, 187, .14);
}
.case__close {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 500 14px/1 var(--font); color: var(--paper);
  padding: 11px 18px; border-radius: 999px;
  background: rgba(217, 206, 187, .10); border: 1px solid rgba(217, 206, 187, .38);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .3s, border-color .3s;
}
.case__close:hover { background: rgba(217, 206, 187, .22); border-color: rgba(217, 206, 187, .7); }
.case__body { transition: opacity .35s ease; }
.case__body.is-swapping { opacity: 0; }

/* hero */
.case__hero { position: relative; block-size: min(78vh, 780px); min-block-size: 420px; overflow: hidden; }
.case__cover { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.case.is-open .case__cover { transform: scale(1); }
.case__hero-glass {
  position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 60%;
  -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
  background: linear-gradient(0deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .5) 45%, rgba(10, 10, 10, 0) 100%);
  -webkit-mask-image: linear-gradient(0deg, #000 50%, transparent); mask-image: linear-gradient(0deg, #000 50%, transparent);
}
.case__hero-copy { position: absolute; inset-inline: var(--gutter); inset-block-end: clamp(24px, 4vw, 56px); display: grid; gap: 10px; }
.case__hero-copy h2 { margin: 0; font-size: clamp(56px, 10vw, 168px); font-weight: 500; letter-spacing: -.045em; line-height: .9; }
.case__hero-copy .case__loc { margin: 0; color: #c4c0b7; font-size: clamp(15px, 1.2vw, 18px); }

/* intro: facts on the left, the challenge on the right */
.case__intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(32px, 6vw, 96px);
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(40px, 6vw, 80px);
}
.case__meta { margin: 0; display: grid; gap: 22px; align-content: start; }
.case__meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-block-end: 6px; }
.case__meta dd { margin: 0; font-size: 16px; }
.case__meta ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.case__meta li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: #d6d2ca; }
.case__lead .eyebrow, .case__idea .eyebrow, .case__outcome .eyebrow { margin-block-end: 16px; }
.case__challenge, .case__outcome p:last-child { margin: 0; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.25; letter-spacing: -.02em; max-inline-size: 30ch; }
.case__challenge.is-draft { color: var(--mute); font-size: clamp(18px, 1.6vw, 24px); }

/* the brand line */
.case__line { margin: 0; padding: clamp(40px, 7vw, 110px) var(--gutter); border-block: 1px solid var(--line); text-align: center; }
.case__line p { margin: 0; font-size: clamp(32px, 5.4vw, 88px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; color: var(--accent); }
.case__line p[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; letter-spacing: 0; }
.case__line cite { display: block; margin-block-start: 14px; font-style: normal; color: var(--mute); font-size: 15px; }

/* the idea */
.case__idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(32px, 6vw, 96px); padding: clamp(56px, 8vw, 120px) var(--gutter); }
.case__idea-text { display: grid; gap: 1.1em; max-inline-size: 64ch; }
.case__idea-text p { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: #c4c0b7; }
.case__idea-text p:first-child { color: var(--paper); }

/* gallery: every third image runs full width */
.case__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-inline: var(--gutter); }
.case__gallery figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.case__gallery figure.is-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.case__gallery img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }

.case__outcome { padding: clamp(56px, 8vw, 120px) var(--gutter) 0; }

/* next case + request */
.case__end { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; padding: clamp(56px, 8vw, 120px) var(--gutter) calc(clamp(40px, 6vw, 80px) + env(safe-area-inset-bottom, 0px)); }
.case__next { position: relative; display: block; overflow: hidden; min-block-size: 280px; border-radius: 2px; }
.case__next img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case__next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, .85), rgba(10, 10, 10, .15)); }
.case__next:hover img { transform: scale(1.04); }
.case__next-copy { position: absolute; inset-inline: 24px; inset-block-end: 22px; z-index: 1; display: grid; gap: 6px; }
.case__next-copy strong { font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.case__cta { display: grid; align-content: end; gap: 18px; padding: 24px; border: 1px solid var(--line); }
.case__cta p { margin: 0; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.2; }
.case__cta .btn { justify-self: start; }

/* rise-in as the panel scrolls */
.case-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.case-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .case__intro, .case__idea, .case__end { grid-template-columns: 1fr; }
  .case__gallery { grid-template-columns: 1fr; }
  .case__gallery figure, .case__gallery figure.is-wide { grid-column: auto; aspect-ratio: 4 / 5; }
  .case__hero { block-size: 72vh; }
}
@media (prefers-reduced-motion: reduce) {
  .case, .case__cover { transition: none; clip-path: none; transform: none; }
  .case-reveal { opacity: 1; transform: none; }
}

/* "Most requested": a small glass label sitting above the service title (same on every screen) */
.svc__item--key .svc__title { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
.svc__title .pill {
  margin: 0; transform: none; display: inline-block;
  font-size: 11px; letter-spacing: .1em; font-weight: 600; padding: 6px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(10, 10, 10, .14);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 4px 14px rgba(0, 0, 0, .06);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
/* when the row turns black on hover, the glass turns dark too */
.svc__item a:hover .svc__title .pill { color: var(--paper); background: rgba(217, 206, 187, .12); border-color: rgba(217, 206, 187, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
@media (max-width: 860px) { .svc__title .pill { margin: 0; } }

/* ======================================================================
   Client area (prototype): login → code → welcome → files tree / progress diagram
   ====================================================================== */
body.portal-open { overflow: hidden; }
.portal {
  position: fixed; inset: 0; z-index: 130;
  overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 80% at 80% 0%, #1b1916 0%, var(--ink) 55%);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.portal.is-open { opacity: 1; transform: none; }
.portal[hidden] { display: none; }
.portal__bar {
  position: sticky; inset-block-start: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px;
  background: rgba(14, 14, 14, .45);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-block-end: 1px solid rgba(217, 206, 187, .14);
}
.portal__brand { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.portal__brand img { inline-size: 96px; block-size: auto; filter: sepia(.22) brightness(.92); }
.portal__bar-actions { display: flex; gap: 8px; }
.portal__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 14px/1 var(--font); color: var(--paper);
  padding: 11px 16px; border-radius: 999px;
  background: rgba(217, 206, 187, .10); border: 1px solid rgba(217, 206, 187, .38);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.portal__btn:hover { background: rgba(217, 206, 187, .22); }
.portal__btn[hidden] { display: none; }
.portal__view { padding: clamp(32px, 6vw, 80px) var(--gutter) calc(64px + env(safe-area-inset-bottom, 0px)); transition: opacity .22s ease, transform .3s var(--ease); }
.portal__view.is-leaving { opacity: 0; transform: translateY(10px); }
.portal h2 { margin: 0; font-size: clamp(32px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.portal h3 { margin: 0; font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.portal__sub { margin: 0; color: #c4c0b7; font-size: 16px; line-height: 1.5; }
.portal .eyebrow { margin: 0 0 12px; }

/* login + code card */
.portal__card {
  max-inline-size: 480px; margin: clamp(16px, 6vh, 72px) auto 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: rgba(217, 206, 187, .06); border: 1px solid rgba(217, 206, 187, .2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .35);
  display: grid; gap: 10px;
}
.portal__form { display: grid; gap: 12px; margin-block-start: 18px; }
.portal__label { font-size: 13px; color: var(--mute); }
.portal__phone {
  display: flex; align-items: center; border-radius: 14px;
  background: rgba(10, 10, 10, .5); border: 1px solid rgba(217, 206, 187, .25);
  transition: border-color .3s;
}
.portal__phone:focus-within { border-color: var(--accent); }
.portal__cc { padding-inline: 16px 12px; color: var(--mute); border-inline-end: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.portal__phone input {
  flex: 1; min-inline-size: 0; border: 0; background: none; color: var(--paper);
  font: 500 20px/1 var(--font); letter-spacing: .04em; padding: 16px 14px; outline: none; font-variant-numeric: tabular-nums;
}
.portal__error { min-block-size: 1.2em; margin: 0; color: #e4a07a; font-size: 14px; }
.portal__submit { inline-size: 100%; }
.portal__otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.portal__otp input {
  inline-size: 100%; aspect-ratio: 4 / 5; text-align: center;
  font: 500 clamp(22px, 5vw, 30px)/1 var(--font); color: var(--paper);
  background: rgba(10, 10, 10, .5); border: 1px solid rgba(217, 206, 187, .25); border-radius: 12px; outline: none;
  transition: border-color .3s, background-color .3s;
}
.portal__otp input:focus { border-color: var(--accent); background: rgba(217, 206, 187, .08); }
.portal__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.portal__link { background: none; border: 0; padding: 4px 0; color: #c4c0b7; font: 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.portal__link:disabled { cursor: default; text-decoration: none; color: var(--mute); }
.portal__proto { margin: 14px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--mute); }

/* welcome */
.portal__welcome { max-inline-size: 1100px; margin-inline: auto; display: grid; gap: 10px; }
.portal__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: clamp(28px, 4vw, 48px); }
.portal__choice {
  position: relative; text-align: start; cursor: pointer; color: var(--paper);
  display: grid; gap: 8px; padding: clamp(24px, 3vw, 40px); min-block-size: 260px; align-content: end;
  border-radius: 20px; font: inherit;
  background: rgba(217, 206, 187, .06); border: 1px solid rgba(217, 206, 187, .2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .6s var(--ease);
}
.portal__choice:hover { background: rgba(217, 206, 187, .12); border-color: rgba(217, 206, 187, .45); transform: translateY(-3px); }
.portal__choice-icon { position: absolute; inset-block-start: clamp(24px, 3vw, 36px); inset-inline-start: clamp(24px, 3vw, 40px); inline-size: 64px; color: var(--accent); }
.portal__choice-icon svg { inline-size: 100%; block-size: auto; fill: currentColor; overflow: visible; }
.portal__choice-icon .is-hot { fill: #c2571f; }
.portal__choice-title { font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.portal__choice-meta { color: #c4c0b7; font-size: 15px; }
.portal__choice-arrow { position: absolute; inset-block-start: clamp(24px, 3vw, 36px); inset-inline-end: clamp(24px, 3vw, 40px); font-size: 26px; transition: transform .5s var(--ease); }
.portal__choice:hover .portal__choice-arrow { transform: translateX(6px); }
.portal__update { margin: clamp(24px, 3vw, 40px) 0 0; display: grid; gap: 4px; padding-block-start: 20px; border-block-start: 1px solid var(--line); color: #d6d2ca; font-size: 16px; max-inline-size: 70ch; }

/* sections */
.portal__section { max-inline-size: 1240px; margin-inline: auto; display: grid; gap: clamp(24px, 3vw, 40px); }
.portal__back { justify-self: start; background: none; border: 0; padding: 0; color: #c4c0b7; font: 15px var(--font); cursor: pointer; }
.portal__back:hover { color: var(--paper); }
.portal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }

/* files: tree diagram — root on top, a rail to each group, files hanging under each group */
.tree { --rail: rgba(217, 206, 187, .28); }
.tree__root {
  display: inline-grid; gap: 2px; padding: 14px 20px 14px 40px; position: relative;
  border-radius: 14px; background: rgba(217, 206, 187, .1); border: 1px solid rgba(217, 206, 187, .35);
  font-size: 18px; font-weight: 500;
}
.tree__root small { color: var(--mute); font-size: 13px; font-weight: 400; }
.tree__dot { position: absolute; inset-inline-start: 16px; inset-block-start: 50%; inline-size: 10px; block-size: 10px; margin-block-start: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217, 206, 187, .15); }
.tree__groups {
  list-style: none; margin: 0; padding: 28px 0 0; position: relative;
  display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px;
}
.tree__groups::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 28px; block-size: 28px; border-inline-start: 1px solid var(--rail); }
.tree__group { position: relative; padding-block-start: 22px; display: grid; gap: 10px; align-content: start; }
.tree__group::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: -8px; border-block-start: 1px solid var(--rail); }
.tree__group:first-child::before { inset-inline-start: 28px; }
.tree__group:last-child::before { inset-inline-end: calc(100% - 16px); }
.tree__group::after { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 16px; block-size: 22px; border-inline-start: 1px solid var(--rail); }
.tree__group-name {
  display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px;
  background: rgba(217, 206, 187, .07); border: 1px solid rgba(217, 206, 187, .22);
  font-size: 16px; font-weight: 500;
}
.tree__group-name small { color: var(--mute); font-size: 12px; font-weight: 400; }
.tree__files { list-style: none; margin: 0; padding: 0 0 0 16px; display: grid; gap: 10px; border-inline-start: 1px solid var(--rail); margin-inline-start: 16px; }
.tree__file {
  position: relative; display: grid; gap: 4px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.tree__file::before { content: ""; position: absolute; inset-inline-start: -17px; inset-block-start: 22px; inline-size: 16px; border-block-start: 1px solid var(--rail); }
.tree__file.is-soon { opacity: .55; }
.tree__file-name { font-size: 15px; font-weight: 500; }
.tree__file-meta { font-size: 12px; color: var(--mute); }
.tree__file-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block-start: 4px; }
.portal__status { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); }
.portal__status.is-ready { color: var(--accent); border-color: rgba(217, 206, 187, .45); }
.portal__status.is-review { color: #e0a87f; border-color: rgba(194, 87, 31, .55); }
.tree__dl {
  inline-size: 34px; block-size: 34px; display: grid; place-items: center; cursor: pointer; color: var(--paper);
  border-radius: 50%; background: rgba(217, 206, 187, .12); border: 1px solid rgba(217, 206, 187, .4);
  transition: background-color .3s, transform .4s var(--ease);
}
.tree__dl svg { inline-size: 18px; block-size: 18px; }
.tree__dl:hover { background: rgba(217, 206, 187, .28); transform: translateY(1px); }
@media (max-width: 980px) {
  /* stack the groups; the rail runs down the left */
  .tree__groups { grid-template-columns: 1fr; padding: 16px 0 0 28px; gap: 18px; border-inline-start: 1px solid var(--rail); margin-inline-start: 28px; }
  .tree__groups::before { display: none; }
  .tree__group { padding-block-start: 0; }
  .tree__group::before { inset-block-start: 22px; inset-inline: -28px auto; inline-size: 26px; }
  .tree__group:first-child::before, .tree__group:last-child::before { inset-inline: -28px auto; }
  .tree__group::after { display: none; }
}

/* progress: the seven stages with status */
.prog__meter { display: flex; align-items: center; gap: 14px; min-inline-size: 220px; }
.prog__meter span { flex: 1; block-size: 6px; border-radius: 6px; background: rgba(217, 206, 187, .15); position: relative; overflow: hidden; }
.prog__meter span::after { content: ""; position: absolute; inset: 0; inline-size: var(--p); background: linear-gradient(90deg, var(--accent), #c2571f); border-radius: inherit; }
.prog__meter b { font-weight: 500; font-variant-numeric: tabular-nums; }
.prog__track { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.prog__track::-webkit-scrollbar { display: none; }
.prog__inner { min-inline-size: max(880px, calc(var(--n, 7) * 126px)); }
.prog__svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.prog__arc { fill: none; stroke-width: 1.5; }
.prog__arc.is-done { stroke: var(--accent); }
.prog__arc.is-todo { stroke: rgba(230, 226, 218, .3); stroke-dasharray: 6 7; }
.prog__node.is-done .prog__dot { fill: var(--accent); }
.prog__node.is-current .prog__dot { fill: #c2571f; }
.prog__node.is-todo .prog__dot { fill: var(--ink); stroke: rgba(230, 226, 218, .45); stroke-width: 1.5; }
.prog__tick { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prog__halo { fill: none; stroke: #c2571f; stroke-width: 1.5; opacity: 0; }
.prog__node.is-current .prog__halo { transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-out infinite; }
@keyframes halo { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
.prog__labels { display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); margin: 18px 0 0; padding: 0; list-style: none; }
.prog__labels li { padding-inline-start: 10%; font-size: clamp(14px, 1.15vw, 17px); font-weight: 500; line-height: 1.25; display: grid; gap: 4px; }
.prog__labels li span { font-size: 13px; font-weight: 400; color: var(--mute); }
.prog__labels li small { font-size: 12px; font-weight: 400; color: var(--mute); }
.prog__labels li.is-todo { color: var(--mute); }
.prog__labels li.is-current small { color: #e0a87f; }
.prog__now {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; padding: clamp(24px, 3vw, 36px);
  border-radius: 20px; background: rgba(217, 206, 187, .06); border: 1px solid rgba(217, 206, 187, .2);
}
.prog__tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prog__tasks li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-block-end: 1px solid var(--line); font-size: 16px; }
.prog__tasks small { font-size: 13px; color: var(--mute); }
.prog__task-dot { inline-size: 10px; block-size: 10px; border-radius: 50%; border: 1.5px solid rgba(230, 226, 218, .45); }
.prog__tasks .is-done .prog__task-dot { background: var(--accent); border-color: var(--accent); }
.prog__tasks .is-review .prog__task-dot { background: #c2571f; border-color: #c2571f; }
.prog__tasks .is-doing .prog__task-dot { border-color: #c2571f; }
.prog__tasks .is-review small { color: #e0a87f; }

.portal__toast {
  position: fixed; inset-inline: 0; inset-block-end: calc(24px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; inline-size: max-content; max-inline-size: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; color: var(--paper);
  background: rgba(20, 20, 20, .85); border: 1px solid rgba(217, 206, 187, .3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.portal__toast.is-on { opacity: 1; transform: none; }

/* Invoices & payments */
.portal__status.is-paid { color: var(--accent); border-color: rgba(217, 206, 187, .45); }
.portal__status.is-due { color: #e0a87f; border-color: rgba(194, 87, 31, .55); }
.bill__sum { display: grid; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: rgba(217, 206, 187, .06); border: 1px solid rgba(217, 206, 187, .2); }
.bill__meter { display: flex; gap: 4px; block-size: 8px; }
.bill__meter span { border-radius: 999px; }
.bill__meter .is-paid { background: var(--accent); }
.bill__meter .is-due { background: #c2571f; }
.bill__meter .is-upcoming { background: rgba(230, 226, 218, .16); }
.bill__figs { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.bill__figs dt { font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.bill__figs .is-paid dt::before, .bill__figs .is-due dt::before, .bill__figs .is-upcoming dt::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--accent); }
.bill__figs .is-due dt::before { background: #c2571f; }
.bill__figs .is-upcoming dt::before { background: rgba(230, 226, 218, .3); }
.bill__figs dd { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bill__figs small, .bill__amt small { font-size: .5em; letter-spacing: .08em; color: var(--mute); vertical-align: .35em; }
.bill__list { list-style: none; margin: 0; padding: 0; }
.bill__row { display: grid; grid-template-columns: auto minmax(0, 1fr) 160px 150px auto; align-items: center; gap: 12px 24px; padding: 18px 0; border-block-end: 1px solid var(--line); }
.bill__dot { inline-size: 10px; block-size: 10px; border-radius: 50%; border: 1.5px solid rgba(230, 226, 218, .45); }
.bill__row.is-paid .bill__dot { background: var(--accent); border-color: var(--accent); }
.bill__row.is-due .bill__dot { background: #c2571f; border-color: #c2571f; box-shadow: 0 0 0 5px rgba(194, 87, 31, .18); }
.bill__what { display: grid; gap: 4px; }
.bill__what b { font-weight: 500; font-size: 17px; }
.bill__what small, .bill__when { font-size: 13px; color: var(--mute); }
.bill__row.is-due .bill__when { color: #e0a87f; }
.bill__amt { font-size: 20px; font-variant-numeric: tabular-nums; text-align: end; }
.bill__row.is-upcoming .bill__amt, .bill__row.is-upcoming b { color: #a9a59d; }
.bill__act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-inline-size: 220px; }
/* room for the icon above the title, whatever the title length */
.portal__choice { min-block-size: 0; padding-block-start: calc(clamp(24px, 3vw, 36px) + 92px); }
@media (max-width: 1000px) {
  .portal__choices { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bill__figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill__row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bill__when { grid-column: 2; grid-row: 2; }
  .bill__amt { grid-column: 3; grid-row: 1; font-size: 17px; }
  .bill__act { grid-column: 2 / -1; justify-content: flex-start; min-inline-size: 0; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .portal__choices, .prog__now { grid-template-columns: 1fr; }
  .portal__brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portal, .portal__view { transition: none; transform: none; }
  .prog__node.is-current .prog__halo { animation: none; }
}

/* Phones: a smaller "Client Login" button in the header */
@media (max-width: 700px) {
  .header__actions .btn--sm { --h: 32px; padding-inline: 13px; font-size: 12.5px; }
  .menu-btn { inline-size: 34px; block-size: 34px; }
}

/* Phones: a compact login / code card */
@media (max-width: 700px) {
  .portal__view:has(.portal__card) { padding-block-start: 28px; }
  .portal__card { max-inline-size: 308px; margin-block-start: 6vh; padding: 20px 18px; gap: 6px; border-radius: 16px; }
  .portal__card h2 { font-size: 25px; }
  .portal__card h2 { font-size: 28px; }
  .portal__card .eyebrow { margin-block-end: 6px; font-size: 11px; }
  .portal__card .portal__sub { font-size: 14px; }
  .portal__form { margin-block-start: 12px; gap: 10px; }
  .portal__phone input { font-size: 17px; padding: 12px 12px; }
  .portal__cc { padding-inline: 12px 10px; font-size: 14px; }
  .portal__otp { gap: 6px; }
  .portal__otp input { font-size: 20px; border-radius: 10px; aspect-ratio: 5 / 6; }
  .portal__card .btn { --h: 44px; font-size: 14px; }
  .portal__proto { margin-block-start: 8px; font-size: 12px; }
  .portal__link { font-size: 13px; }
}

/* Client Login entrance / exit.
   Open: frosted page (same colour as the client area) → © icon turns in with a glint → the area grows out of the icon.
   Close: the reverse. */
.portal-flash {
  position: fixed; inset: 0; z-index: 129; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 0%, rgba(27, 25, 22, .9) 0%, rgba(10, 10, 10, .94) 55%);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  opacity: 0; transition: opacity .2s ease;
}
.portal-flash[hidden] { display: none; }
.portal-flash.is-in { opacity: 1; }
.portal-flash__icon {
  position: relative; inline-size: clamp(72px, 9vw, 110px); aspect-ratio: 1; color: var(--accent);
  opacity: 0; transform: scale(.55) rotate(-90deg); filter: blur(6px);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .25s ease, filter .35s ease;
}
.portal-flash__icon svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.portal-flash.is-in .portal-flash__icon { opacity: 1; transform: none; filter: drop-shadow(0 0 24px rgba(217, 206, 187, .28)); }
.portal-flash__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: url("../assets/logo/carved-icon.svg") center / 100% 100% no-repeat; mask: url("../assets/logo/carved-icon.svg") center / 100% 100% no-repeat;
}
.portal-flash.is-in:not(.is-hold) .portal-flash__shine { animation: flash-glint .5s .15s ease-in-out forwards; }
@keyframes flash-glint { to { background-position: -50% 0; } }
/* open: the icon gives way while the circle grows from it */
.portal-flash.is-out .portal-flash__icon { opacity: 0; transform: scale(1.08); transition-duration: .3s; }
/* close: the icon is already in place under the shrinking circle, then turns away as the frost lifts */
.portal-flash.is-hold .portal-flash__icon { transition: none; }
.portal-flash.is-leave { opacity: 0; transition: opacity .38s ease .05s; }
.portal-flash.is-leave .portal-flash__icon { opacity: 0; transform: scale(.55) rotate(-90deg); transition: transform .38s cubic-bezier(.7, 0, .84, 0), opacity .3s ease; }
/* the client area as a circle, the size of the icon, growing to full screen (and back on close) */
.portal.is-iris {
  clip-path: circle(var(--iris-r, 48px) at 50% 50%); opacity: 1; transform: none;
  transition: clip-path .62s cubic-bezier(.7, 0, .2, 1);
}
.portal.is-iris.is-open { clip-path: circle(150% at 50% 50%); }

/* ======================================================================
   Team workspace (prototype, #admin): projects, workflow, payments, files
   ====================================================================== */
body.admin-open { overflow: hidden; }
.adm { z-index: 125; } /* the client view opens above it */
.adm__input, .adm__bare {
  inline-size: 100%; min-inline-size: 0; font: 16px/1.3 var(--font); color: var(--paper);
  padding: 12px 14px; border-radius: 12px;
  background: rgba(10, 10, 10, .5); border: 1px solid rgba(217, 206, 187, .22);
}
.adm__bare { background: none; border: 0; }
.adm__input:focus { outline: none; border-color: var(--accent); background: rgba(217, 206, 187, .06); }
.adm__input::placeholder, .adm__bare::placeholder { color: #6f6b64; }
select.adm__input { appearance: none; cursor: pointer; padding-inline-end: 34px;
  background: rgba(10, 10, 10, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d9cebb' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 11px; }
textarea.adm__input { resize: vertical; }
.adm__code { font-size: 22px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

/* dashboard */
.adm__projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adm__project {
  inline-size: 100%; text-align: start; cursor: pointer; font: inherit; color: var(--paper);
  display: grid; gap: 22px; padding: clamp(20px, 2.4vw, 30px); border-radius: 20px;
  background: rgba(217, 206, 187, .06); border: 1px solid rgba(217, 206, 187, .2);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .6s var(--ease);
}
.adm__project:hover { background: rgba(217, 206, 187, .11); border-color: rgba(217, 206, 187, .45); transform: translateY(-2px); }
.adm__project-top { display: flex; justify-content: space-between; gap: 16px; }
.adm__project-top b { display: block; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.adm__project-top small { color: #c4c0b7; font-size: 15px; }
.adm__project .portal__choice-arrow { position: static; font-size: 22px; }
.adm__project-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #c4c0b7; }
.adm__mini { display: flex; align-items: center; }
.adm__mini i { flex: 1; display: flex; align-items: center; }
.adm__mini i::before { content: ""; flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--ink); border: 1.5px solid rgba(230, 226, 218, .45); }
.adm__mini i::after { content: ""; flex: 1; block-size: 1.5px; background: rgba(230, 226, 218, .2); }
.adm__mini i:last-child { flex: none; }
.adm__mini i:last-child::after { display: none; }
.adm__mini i.is-done::before { background: var(--accent); border-color: var(--accent); }
.adm__mini i.is-done::after { background: var(--accent); }
.adm__mini i.is-current::before { background: #c2571f; border-color: #c2571f; box-shadow: 0 0 0 4px rgba(194, 87, 31, .2); }
.adm__reset, .adm__danger { margin: 0; }
.portal__link.is-armed { color: #e4a07a; }

/* project */
.adm__head-actions { display: flex; align-items: center; gap: 14px; }
.adm__saved { font-size: 13px; color: var(--accent); opacity: 0; transition: opacity .3s; }
.adm__saved.is-on { opacity: 1; }
.adm__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-block-end: 1px solid var(--line); }
.adm__tab { flex: none; cursor: pointer; font: 500 15px var(--font); color: var(--mute); background: none; border: 0; padding: 12px 14px; border-block-end: 2px solid transparent; margin-block-end: -1px; }
.adm__tab:hover { color: var(--paper); }
.adm__tab.is-on { color: var(--paper); border-color: #c2571f; }
.adm__pane { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.adm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-inline-size: 900px; }
.adm__field { display: grid; gap: 8px; align-content: start; }
.adm__field > span:first-child { font-size: 13px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.adm__field em { font-style: normal; color: #6f6b64; }
.adm__wide { grid-column: 1 / -1; }
.adm__hint { min-block-size: 1.2em; font-size: 13px; color: #e4a07a; }
.adm__panel {
  display: grid; gap: 16px; justify-items: start; padding: clamp(20px, 2.6vw, 32px); border-radius: 20px;
  background: rgba(217, 206, 187, .05); border: 1px solid rgba(217, 206, 187, .18);
}
.adm__panel > .adm__rows, .adm__panel > .adm__group, .adm__panel > .portal__sub { justify-self: stretch; }
.adm__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm__row { display: grid; align-items: center; gap: 8px; }
.adm__row--stage { grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 150px auto; }
.adm__row--task { grid-template-columns: minmax(0, 1fr) 200px 180px auto; }   /* task · status · assigned to · remove */
.adm__row--pay { grid-template-columns: 76px minmax(0, 1.2fr) minmax(0, 1fr) 120px minmax(0, 1fr) 130px auto; }
.adm__row--file { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 100px 150px auto; }
.adm__row--group { grid-template-columns: minmax(0, 1fr) auto; }
.adm__num { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.adm__amt { text-align: end; font-variant-numeric: tabular-nums; }
.adm__row--pay.is-due .adm__num { color: #e0a87f; }
.adm__move { display: flex; gap: 4px; }
.adm__x {
  inline-size: 36px; block-size: 36px; flex: none; display: grid; place-items: center; cursor: pointer;
  font: 14px var(--font); color: #c4c0b7; border-radius: 50%;
  background: none; border: 1px solid var(--line);
}
.adm__x:hover:not(:disabled) { color: var(--paper); border-color: rgba(217, 206, 187, .45); }
.adm__x:disabled { opacity: .3; cursor: default; }
.adm__group { display: grid; gap: 10px; justify-items: start; padding-block: 14px; border-block-start: 1px solid var(--line); }
.adm__group > * { justify-self: stretch; }
.adm__group > .portal__btn { justify-self: start; }
.adm__group-name { font-weight: 500; }
.adm__group .adm__rows { padding-inline-start: 18px; border-inline-start: 1px solid rgba(217, 206, 187, .28); }
/* the diagram is editable: tap a stage to make it current */
.adm__node { cursor: pointer; }
.adm__hit { fill: transparent; }
.adm__node:hover .prog__dot { stroke: var(--accent); stroke-width: 3; }

@media (max-width: 900px) {
  .adm__projects, .adm__grid { grid-template-columns: 1fr; }
  /* name + arrows on one line, date + status under it */
  .adm__row--stage { grid-template-columns: 24px minmax(0, 1.5fr) minmax(0, 1fr) auto; padding-block: 10px; border-block-end: 1px solid var(--line); }
  .adm__row--stage > :nth-child(2) { grid-column: 2 / 4; }
  .adm__row--stage > .adm__move { grid-column: 4; grid-row: 1; }
  .adm__row--stage > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .adm__row--stage > :nth-child(4) { grid-column: 3 / -1; grid-row: 2; }
  .adm__move .adm__x { inline-size: 32px; block-size: 32px; }
  .adm__row--pay, .adm__row--file { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; padding-block: 10px; border-block-end: 1px solid var(--line); }
  .adm__row--pay > :first-child { grid-column: 1 / -1; }
  .adm__row--pay > :nth-child(2), .adm__row--file > :first-child { grid-column: 1 / 3; }
  .adm__row--task { grid-template-columns: minmax(0, 1fr) auto; }
  .adm__row--task select { grid-column: 1; }
  .adm__row--task .adm__x { grid-row: 1; grid-column: 2; }
}
.portal__phone .adm__bare { font: 16px/1.3 var(--font); letter-spacing: normal; padding: 12px 14px; }
.adm__field .portal__phone { border-radius: 12px; border-color: rgba(217, 206, 187, .22); }

/* Orange touch: glass buttons with a thin orange edge and a warm glow (workspace + the footer's Team workspace) */
.team-btn, .adm .btn--accent, .adm .portal__btn {
  border-color: rgba(194, 87, 31, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 18px rgba(194, 87, 31, .12), 0 8px 24px rgba(0, 0, 0, .25);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.team-btn:hover, .adm .btn--accent:hover, .adm .portal__btn:hover {
  border-color: rgba(226, 120, 64, .9); background: rgba(194, 87, 31, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 22px rgba(194, 87, 31, .22), 0 0 24px rgba(194, 87, 31, .22);
}
.adm .btn--accent::before { background: rgba(194, 87, 31, .25); }
.adm .adm__x:hover:not(:disabled) { border-color: rgba(194, 87, 31, .7); color: #e0a87f; }
.footer__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.team-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  font: 500 13px/1 var(--font); color: var(--paper); text-decoration: none;
  background: rgba(217, 206, 187, .08); border: 1px solid rgba(194, 87, 31, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.team-btn i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #c2571f; box-shadow: 0 0 0 3px rgba(194, 87, 31, .22); }
.footer__bottom { padding-inline-end: 76px; } /* keep the Team workspace button clear of the WhatsApp float */

/* Workflow: Diagram / List switch, and the diagram of stage cards */
.adm__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.adm__switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(217, 206, 187, .06); border: 1px solid rgba(217, 206, 187, .2); }
.adm__switch button { cursor: pointer; font: 500 14px/1 var(--font); color: var(--mute); padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; background: none; }
.adm__switch button:hover { color: var(--paper); }
.adm__switch button.is-on { color: var(--paper); background: rgba(194, 87, 31, .16); border-color: rgba(194, 87, 31, .55); }
.adm__grid--3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); max-inline-size: none; inline-size: 100%; }
.adm__sub { display: grid; gap: 12px; justify-items: start; inline-size: 100%; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.adm__sub > .adm__rows, .adm__sub > .portal__sub { justify-self: stretch; }
.adm__sub .eyebrow { margin: 0; }

.wf { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 14px; scrollbar-width: thin; scrollbar-color: rgba(217, 206, 187, .25) transparent; }
.wf__flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; inline-size: max-content; }
.wf__step { display: flex; }
.wf__card {
  inline-size: 196px; display: grid; gap: 6px; align-content: start; text-align: start; cursor: pointer;
  padding: 16px; border-radius: 16px; font: inherit; color: var(--paper);
  background: rgba(217, 206, 187, .05); border: 1px dashed rgba(217, 206, 187, .28);
  transition: border-color .3s, background-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.wf__card:hover { background: rgba(217, 206, 187, .1); transform: translateY(-2px); }
.wf__step.is-done .wf__card { border-style: solid; border-color: rgba(217, 206, 187, .4); }
.wf__step.is-current .wf__card { border-style: solid; border-color: rgba(194, 87, 31, .75); background: rgba(194, 87, 31, .08); }
.wf__step.is-sel .wf__card { box-shadow: 0 0 0 3px rgba(194, 87, 31, .35), 0 16px 40px rgba(0, 0, 0, .35); }
.wf__top { display: flex; justify-content: space-between; align-items: center; }
.wf__no { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.wf__dot { inline-size: 10px; block-size: 10px; border-radius: 50%; border: 1.5px solid rgba(230, 226, 218, .45); }
.wf__step.is-done .wf__dot { background: var(--accent); border-color: var(--accent); }
.wf__step.is-current .wf__dot { background: #c2571f; border-color: #c2571f; box-shadow: 0 0 0 4px rgba(194, 87, 31, .22); }
.wf__name { font-size: 17px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.wf__date { font-size: 13px; color: var(--mute); }
.wf__step.is-current .wf__date { color: #e0a87f; }
.wf__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block-start: 8px; }
.wf__foot small { font-size: 12px; color: var(--mute); }
.portal__status.is-upcoming { color: var(--mute); }
/* the connector between two cards, with a + on it */
.wf__gap { position: relative; inline-size: 44px; display: grid; place-items: center; }
.wf__gap::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; border-block-start: 1.5px solid rgba(217, 206, 187, .3); }
.wf__gap:first-child, .wf__gap:last-child { inline-size: 36px; }
.wf__gap:first-child::before { inset-inline-start: 50%; }
.wf__gap:last-child::before { inset-inline-end: 50%; }
.wf__ins {
  position: relative; inline-size: 28px; block-size: 28px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font: 400 18px/1 var(--font); color: #e0a87f;
  background: var(--ink); border: 1px solid rgba(194, 87, 31, .55);
  opacity: .55; transition: opacity .25s, transform .3s var(--ease), background-color .25s;
}
.wf__gap:hover .wf__ins, .wf__ins:focus-visible { opacity: 1; transform: scale(1.12); background: #1d130d; }
.wf__edit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; inline-size: 100%; }
.wf__edit { scroll-margin-block-start: 90px; }

@media (max-width: 900px) {
  /* stages run down the screen */
  .wf { overflow: visible; margin-inline: 0; padding: 0; }
  .wf__flow { flex-direction: column; inline-size: auto; }
  .wf__card { inline-size: 100%; }
  .wf__step { display: block; }
  .wf__gap, .wf__gap:first-child, .wf__gap:last-child { inline-size: auto; block-size: 40px; }
  .wf__gap::before { inset-inline: auto; inset-inline-start: 50%; inset-block: 0; border-block-start: 0; border-inline-start: 1.5px solid rgba(217, 206, 187, .3); }
  .wf__gap:first-child::before { inset-inline-start: 50%; inset-block-start: 50%; }
  .wf__gap:last-child::before { inset-block-end: 50%; }
  .wf__ins { opacity: .8; }
  .adm__grid--3 { grid-template-columns: 1fr; }
}
.wf__card { display: flex; flex-direction: column; }
.wf__foot { margin-block-start: auto; padding-block-start: 8px; }

/* ======================================================================
   Workspace: projects board (columns by status), cards you can drag or move
   ====================================================================== */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.adm__dash .portal__head { align-items: center; }
.kb { --todo: #8c8880; --progress: #c2571f; --client: #e0a87f; --done: var(--accent);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kb__col {
  display: grid; gap: 10px; padding: 12px; border-radius: 18px;
  background: rgba(217, 206, 187, .035); border: 1px solid rgba(217, 206, 187, .1);
  transition: background-color .25s, border-color .25s;
}
.kb__col.is-over { background: rgba(194, 87, 31, .08); border-color: rgba(194, 87, 31, .55); border-style: dashed; }
.kb__head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 4px; }
.kb__pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 8px;
  font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--paper);
  background: rgba(217, 206, 187, .08);
}
.kb__pill svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.kb__pill .kb__fill { fill: currentColor; stroke: none; }
.kb__pill .kb__tick { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kb__col.is-todo .kb__pill { color: #c4c0b7; }
.kb__col.is-progress .kb__pill { background: rgba(194, 87, 31, .9); color: #fff6ef; }
.kb__col.is-client .kb__pill { background: rgba(224, 168, 127, .18); color: #f0c7a6; }
.kb__col.is-done .kb__pill { background: var(--accent); color: var(--ink); }
.kb__col.is-done .kb__pill .kb__fill { fill: var(--ink); }
.kb__col.is-done .kb__pill .kb__tick { stroke: var(--accent); }
.kb__count { font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }
.kb__col.is-progress .kb__count { color: #e0a87f; }
.kb__list { display: grid; gap: 10px; }
.kb__empty { margin: 0; padding: 18px 12px; text-align: center; font-size: 13px; color: #6f6b64; border: 1px dashed rgba(217, 206, 187, .14); border-radius: 14px; }

.kb__card {
  position: relative; display: grid; gap: 12px; padding: 14px; border-radius: 14px; cursor: grab;
  background: #171615; border: 1px solid rgba(217, 206, 187, .14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 20px rgba(0, 0, 0, .25);
  transition: border-color .25s, transform .3s var(--ease), opacity .2s;
}
.kb__card:hover { border-color: rgba(217, 206, 187, .35); transform: translateY(-1px); }
.kb__card.is-dragging { opacity: .45; cursor: grabbing; }
.kb__card.is-done { opacity: .78; }
.kb__open { display: grid; gap: 3px; text-align: start; padding: 0; border: 0; background: none; color: var(--paper); font: inherit; cursor: pointer; }
.kb__open small { font-size: 12px; letter-spacing: .04em; color: var(--mute); }
.kb__open b { font-size: 17px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.kb__card.is-done .kb__open b { text-decoration: line-through; text-decoration-color: rgba(217, 206, 187, .4); }
.kb__card .adm__mini i::before { inline-size: 8px; block-size: 8px; }
.kb__stage { margin: -4px 0 0; font-size: 12px; color: var(--mute); }
.kb__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kb__chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; block-size: 30px; min-inline-size: 30px; padding-inline: 7px;
  justify-content: center; border-radius: 8px; font-size: 12px; color: #8c8880;
  border: 1px solid rgba(217, 206, 187, .14);
}
.kb__chip svg { inline-size: 15px; block-size: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kb__chip.is-set { color: var(--paper); border-color: rgba(217, 206, 187, .25); }
.kb__chip--owner.is-set { padding: 0; }
.kb__chip--owner i { inline-size: 28px; block-size: 28px; display: grid; place-items: center; border-radius: 7px; font: 600 11px/1 var(--font); color: var(--ink); background: var(--accent); }
.kb__chip--urgent.is-set { color: #f2b089; border-color: rgba(194, 87, 31, .6); background: rgba(194, 87, 31, .12); }
.kb__chip--urgent svg { fill: #c2571f; stroke: #c2571f; }
.kb__chip--high.is-set { color: #e0c9a8; }
.kb__chip--high svg { fill: rgba(224, 168, 127, .5); }
.kb__chip--due { color: #f2b089; border-color: rgba(194, 87, 31, .45); }
.kb__move { margin-inline-start: auto; cursor: pointer; }
.kb__move:hover { color: var(--paper); border-color: rgba(194, 87, 31, .6); }
.kb__move select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.kb__subs { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; border: 0; background: none; cursor: pointer; font: 500 13px var(--font); color: #c4c0b7; }
.kb__subs:hover { color: var(--paper); }
.kb__caret { display: inline-block; font-size: 11px; transition: transform .25s var(--ease); }
.kb__subs[aria-expanded="true"] .kb__caret { transform: rotate(90deg); }
.kb__tasks { list-style: none; margin: -4px 0 0; padding: 0 0 0 14px; display: grid; gap: 6px; border-inline-start: 1px solid rgba(217, 206, 187, .18); }
.kb__tasks li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); font-size: 13px; }
.kb__tasks small { grid-column: 2; font-size: 11px; color: var(--mute); }
.kb__tdot { inline-size: 8px; block-size: 8px; border-radius: 50%; border: 1.5px solid rgba(230, 226, 218, .45); }
.kb__tasks .is-done .kb__tdot { background: var(--accent); border-color: var(--accent); }
.kb__tasks .is-review .kb__tdot { background: #c2571f; border-color: #c2571f; }
.kb__tasks .is-doing .kb__tdot { border-color: #c2571f; }
.kb__tasks .is-review small { color: #e0a87f; }
.kb__add { justify-self: start; padding: 8px 6px; border: 0; background: none; cursor: pointer; font: 500 14px var(--font); color: var(--mute); }
.kb__add:hover { color: var(--paper); }
.kb__col.is-progress .kb__add { color: #e0a87f; }

@media (max-width: 1100px) {
  /* columns side by side, swiped */
  .kb { grid-template-columns: repeat(4, minmax(270px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .kb::-webkit-scrollbar { display: none; }
  .kb__col { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .kb { grid-template-columns: repeat(4, 84vw); }
}
.kb__tasks[hidden] { display: none; }
.adm__dash > *, .adm__board { min-inline-size: 0; } /* the board scrolls inside itself, the page never does */
.case__lead .draft { display: inline-block; margin-block-start: 18px; }

/* ======================================================================
   Service panels (#service-<slug>): same shell as the case-study panel
   ====================================================================== */
body.svc-open { overflow: hidden; }
.svcp__hero { display: grid; gap: 18px; justify-items: start; padding: clamp(72px, 12vw, 160px) var(--gutter) clamp(40px, 6vw, 80px); border-block-end: 1px solid var(--line); background: radial-gradient(90% 120% at 85% 0%, #1b1916 0%, var(--ink) 60%); }
.svcp__hero .eyebrow { margin: 0; }
.svcp__hero h2 { margin: 0; font-size: clamp(48px, 8.5vw, 140px); font-weight: 500; letter-spacing: -.045em; line-height: .92; text-wrap: balance; }
.svcp__lead { margin: 0; max-inline-size: 34ch; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.35; letter-spacing: -.01em; color: #d6d2ca; }
.svcp__ways, .svcp__covers, .svcp__steps, .svcp__work { padding: clamp(56px, 8vw, 112px) var(--gutter) 0; }
.svcp__ways > .eyebrow, .svcp__covers > .eyebrow, .svcp__steps > .eyebrow, .svcp__work > .eyebrow { margin: 0 0 clamp(20px, 3vw, 36px); }
.svcp__n { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.svcp__ways-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.svcp__ways-list li { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: 18px; background: rgba(217, 206, 187, .05); border: 1px solid rgba(217, 206, 187, .18); }
.svcp__ways-list h3, .svcp__steps-list h3 { margin: 0; font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.svcp__ways-list p, .svcp__steps-list p { margin: 0; color: #c4c0b7; line-height: 1.55; }
.svcp__blocks { display: grid; }
.svcp__block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(32px, 6vw, 96px); padding-block: clamp(28px, 3.4vw, 44px); border-block-start: 1px solid var(--line); }
.svcp__block h3 { margin: 0; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.svcp__block p { margin: 0 0 20px; max-inline-size: 64ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: #c4c0b7; }
.svcp__deliv { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svcp__deliv li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: #d6d2ca; }
/* steps: dots on one line, like the journey */
.svcp__steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 24px; position: relative; }
.svcp__steps-list::before { content: ""; position: absolute; inset-inline: 6px; inset-block-start: 6px; border-block-start: 1.5px dashed rgba(230, 226, 218, .3); }
.svcp__steps-list li { position: relative; display: grid; gap: 10px; align-content: start; padding-block-start: 34px; }
.svcp__dot { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 13px; block-size: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--ink); }
.svcp__steps-list li:last-child .svcp__dot { background: #c2571f; }
.svcp__work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svcp__case { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 2px; }
.svcp__case img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svcp__case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, .8), rgba(10, 10, 10, 0) 60%); }
.svcp__case:hover img { transform: scale(1.04); }
.svcp__case span { position: absolute; inset-inline: 18px; inset-block-end: 16px; z-index: 1; display: grid; gap: 2px; }
.svcp__case strong { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; }
.svcp__case small { font-size: 13px; color: #c4c0b7; }
.svcp__next { display: grid; align-content: end; gap: 8px; min-block-size: 220px; padding: 24px; border: 1px solid var(--line); position: relative; transition: background-color .4s var(--ease); }
.svcp__next:hover { background: rgba(217, 206, 187, .05); }
.svcp__next .eyebrow { margin: 0; }
.svcp__next strong { font-size: clamp(32px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.svcp__arrow { position: absolute; inset-block-start: 22px; inset-inline-end: 24px; font-size: 28px; transition: transform .5s var(--ease); }
.svcp__next:hover .svcp__arrow { transform: translateX(6px); }
@media (max-width: 860px) {
  .svcp__block { grid-template-columns: 1fr; }
  .svcp__work-grid { grid-template-columns: 1fr; }
  /* steps run down the screen, the dashed line on the left */
  .svcp__steps-list { grid-template-columns: 1fr; gap: 28px; padding-inline-start: 30px; }
  .svcp__steps-list::before { inset-inline: auto; inset-inline-start: 6px; inset-block: 6px 6px; border-block-start: 0; border-inline-start: 1.5px dashed rgba(230, 226, 218, .3); }
  .svcp__steps-list li { padding-block-start: 0; }
  .svcp__dot { inset-inline-start: -30px; inset-block-start: 4px; }
}
/* Team workspace button: the CARVED © icon in orange, in place of the dot */
.team-btn { white-space: nowrap; }
.team-btn__icon { inline-size: 16px; block-size: 16px; flex: none; color: #c2571f; filter: drop-shadow(0 0 6px rgba(194, 87, 31, .35)); transition: transform .5s var(--ease), color .3s; }
.team-btn:hover .team-btn__icon { color: #e27840; transform: rotate(-20deg); }
/* Service header: the same stone as the homepage hero, with the same slow camera move */
.svcp__hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.svcp__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.svcp__bg img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transform-origin: 60% 40%; animation: camera 14s ease-in-out infinite alternate; will-change: transform; }
.svcp__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .35) 55%, rgba(10, 10, 10, .15) 100%), linear-gradient(180deg, rgba(10, 10, 10, .2) 0%, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, .9) 100%); }
@media (prefers-reduced-motion: reduce) { .svcp__bg img { animation: none; } }
/* taller, like the homepage hero, so the stone reads; the copy sits at the bottom */
.svcp__hero { min-block-size: min(78vh, 780px); align-content: end; }
.svcp__bg::after { background: linear-gradient(90deg, rgba(10, 10, 10, .6) 0%, rgba(10, 10, 10, .15) 55%, rgba(10, 10, 10, 0) 100%), linear-gradient(180deg, rgba(10, 10, 10, .25) 0%, rgba(10, 10, 10, 0) 35%, rgba(10, 10, 10, .92) 100%); }
@media (max-width: 860px) { .svcp__hero { min-block-size: 72vh; } }

/* ======================================================================
   Brands we've carved: four logo strips (credentials p13) on the beige band,
   alternating direction, with the same frosted-glass ends as the clients strip
   ====================================================================== */
.made { position: relative; background: var(--paper); color: var(--ink); padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px); overflow: hidden; }
.made__title { text-align: center; margin: 0 0 clamp(16px, 2.4vw, 32px); color: var(--mute-dark); line-height: 1.7; }
.made__strips { display: grid; gap: 0; }
.made__marquee { --band: clamp(62px, 6.4vw, 104px); position: relative; block-size: var(--band); -webkit-mask-image: none; mask-image: none; }
.made-strip { inline-size: 100%; block-size: var(--band); }
.made-strip canvas { display: block; inline-size: 100%; block-size: 100%; }
.made__marquee::before, .made__marquee::after {
  content: ""; position: absolute; inset-block: 0; inline-size: clamp(80px, 20vw, 320px); z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
}
.made__marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(230, 226, 218, .55) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent);
}
.made__marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, var(--paper) 0%, rgba(230, 226, 218, .55) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent); mask-image: linear-gradient(270deg, #000 40%, transparent);
}
/* one glass edge down all four strips (per-strip edges showed as separate squares on phones) */
.made__marquee::before, .made__marquee::after { content: none; }
.made__strips { position: relative; }
.made__strips::before, .made__strips::after {
  content: ""; position: absolute; inset-block: 0; inline-size: clamp(80px, 20vw, 320px); z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
}
.made__strips::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(230, 226, 218, .55) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent);
}
.made__strips::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, var(--paper) 0%, rgba(230, 226, 218, .55) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent); mask-image: linear-gradient(270deg, #000 40%, transparent);
}
.made { padding-block: clamp(28px, 4vw, 56px); } /* no title above the strips (13 Oct) */
/* numbers: the line under the title — same size and width as the services line, light on the dark section */
.proof__head { flex-direction: column; align-items: flex-start; }
.proof__intro { margin: 0; max-inline-size: 360px; color: var(--mute); font-size: 17px; line-height: 1.5; }
.hero__eyebrow { flex-wrap: wrap; gap: 6px 16px; } /* "Branding consultancy" is longer: keep a gap, wrap on narrow phones */

/* ======================================================================
   Insight (13 Oct): one large sentence on the beige band, between the numbers and the services
   ====================================================================== */
.insight {
  background: var(--paper); color: var(--ink);
  margin-block-start: clamp(96px, 14vw, 180px);           /* the space that used to sit above the services */
  padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
}
.insight__label { margin: 0 0 clamp(18px, 2.4vw, 28px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dark); }
.insight__text {
  margin: 0; max-inline-size: 30em;
  font-size: clamp(22px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 400;
  padding-block-end: clamp(64px, 8vw, 112px); border-block-end: 1px solid var(--line-dark);
}
/* the services now continue the same band: no gap, the line above marks the change */
.insight + .services { margin-block-start: 0; }
/* the dividing line runs the full width inside the gutters, not just under the text */
.insight__text { padding-block-end: 0; border-block-end: 0; }
.insight::after { content: ""; display: block; block-size: 1px; background: var(--line-dark); margin-block-start: clamp(64px, 8vw, 112px); }

/* ======================================================================
   Insight pages (#insights, #insights-<group>): same shell as the case and service panels
   ====================================================================== */
body.insp-open { overflow: hidden; }
/* the homepage link under the Insight paragraph, on the beige band */
.insight__more { margin-block-start: clamp(24px, 3vw, 36px); color: var(--ink); border-color: var(--line-dark); }
.insight__more:hover { border-color: var(--ink); }

.insp__actions { display: flex; gap: 8px; }
.insp__back[hidden] { display: none; }
.insp__hero { display: grid; gap: 18px; justify-items: start; padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 72px); border-block-end: 1px solid var(--line); }
.insp__hero .eyebrow { margin: 0; }
.insp__lead { margin: 0; max-inline-size: 30em; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -0.02em; color: var(--paper); }
.insp__hero--group h2 { margin: 0; font-size: clamp(44px, 7vw, 112px); font-weight: 500; letter-spacing: -.045em; line-height: .95; text-wrap: balance; }
.insp__num { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* landing: four group cards, 2 × 2 */
.insp__cards { list-style: none; margin: 0; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 112px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.insp__card { position: relative; display: grid; gap: 14px; align-content: start; block-size: 100%; padding: clamp(22px, 2.6vw, 36px); border-radius: 18px; background: rgba(217, 206, 187, .05); border: 1px solid rgba(217, 206, 187, .18); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.insp__card:hover { background: rgba(217, 206, 187, .1); border-color: rgba(217, 206, 187, .4); }
.insp__card h3 { margin: 0; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; padding-inline-end: 40px; }
.insp__card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.insp__card li { font-size: 15px; color: #c4c0b7; }
.insp__arrow { position: absolute; inset-block-start: clamp(22px, 2.6vw, 36px); inset-inline-end: clamp(22px, 2.6vw, 36px); font-size: 26px; transition: transform .5s var(--ease); }
.insp__card:hover .insp__arrow { transform: translateX(6px); }

/* group: the index of theory names, then one block per theory at reading width */
.insp__index { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.insp__index a { display: inline-block; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; color: #d6d2ca; transition: border-color .3s, color .3s; }
.insp__index a:hover { border-color: rgba(217, 206, 187, .6); color: var(--paper); }
.insp__theory { padding: clamp(40px, 5vw, 72px) var(--gutter); border-block-end: 1px solid var(--line); scroll-margin-block-start: 80px; }
.insp__theory > * { max-inline-size: 65ch; }
.insp__theory h3 { margin: 0 0 20px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.insp__theory p { margin: 0 0 1em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: #c4c0b7; }
.insp__theory .insp__use { color: var(--paper); }
.insp__theory .insp__use strong { font-weight: 600; }
.insp__refs { margin-block-start: 22px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.insp__theory .insp__refs-label { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.insp__refs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.insp__refs a { font-size: 13px; line-height: 1.5; color: var(--mute); text-decoration: underline; text-decoration-color: rgba(140, 136, 128, .4); text-underline-offset: 3px; overflow-wrap: anywhere; transition: color .3s; }
.insp__refs a:hover { color: var(--paper); }
.insp__end { padding: clamp(40px, 6vw, 80px) var(--gutter) calc(clamp(40px, 6vw, 80px) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) {
  .insp__cards { grid-template-columns: 1fr; }
}
.insp .case__count { white-space: nowrap; }
@media (max-width: 420px) { .insp__back-text { display: none; } }   /* the arrow alone on narrow phones, so the bar stays on one line */

/* Insight with the founder (13 Oct): his cut-out portrait on the left, standing on the section's bottom line
   in front of a soft arch; the paragraph on the right as his quote, signed */
.insight { padding-block-start: clamp(64px, 8vw, 120px); }
.insight__grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: 24px clamp(32px, 6vw, 112px); align-items: end; }
.insight__founder { margin: 0; position: relative; align-self: end; }
.insight__photo { position: relative; isolation: isolate; }
.insight__photo::before {   /* the arch behind the portrait */
  content: ""; position: absolute; z-index: -1; inset: 14% 4% 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .07), rgba(10, 10, 10, .02));
}
.insight__photo img {
  display: block; inline-size: 100%; block-size: auto;
  filter: drop-shadow(0 18px 30px rgba(10, 10, 10, .14));
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.insight__body { padding-block-end: clamp(56px, 7vw, 104px); }
.insight__label span { margin-inline: 6px; }
.insight__quote { margin: 0; position: relative; }
.insight__quote::before {
  content: "“"; display: block; block-size: .5em; margin-block-end: .1em;
  font-size: clamp(88px, 10vw, 160px); line-height: 1; color: #c2571f; font-weight: 500;
}
.insight__quote .insight__text { color: var(--ink); }
.insight__sign { display: flex; align-items: center; gap: 14px; margin: clamp(22px, 2.6vw, 32px) 0 0; font-size: 15px; letter-spacing: .01em; color: var(--ink); }
.insight__dash { inline-size: 40px; block-size: 1px; background: var(--ink); flex: none; }
.insight::after { margin-block-start: 0; }   /* the portrait stands right on the line */
@media (max-width: 760px) {
  .insight__grid { grid-template-columns: 1fr; }
  .insight__founder { order: 2; justify-self: center; inline-size: min(78vw, 320px); margin-block-start: 8px; }
  .insight__body { padding-block-end: 0; }
}
/* founder (13 Oct, Ali): no arch behind the portrait, no dash before the name; name over role */
.insight__photo::before { content: none; }
.insight__sign { display: grid; gap: 4px; }
.insight__sign b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.insight__sign span { font-size: 14px; color: var(--mute-dark); }
/* Insight landing: the founder's note on the dark panel, the portrait standing on the line above the articles */
.insp__hero--founder { display: block; padding-block-end: 0; }
.insp .insight__grid { max-inline-size: 1240px; }
.insp .insight__label { margin: 0 0 clamp(18px, 2.4vw, 28px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.insp .insight__quote .insight__text { margin: 0; color: var(--paper); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -0.02em; max-inline-size: 30em; }
.insp .insight__sign { color: var(--paper); }
.insp .insight__sign span { color: var(--mute); }
.insp .insight__photo img { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
/* Insight landing (13 Oct, Ali): the articles first, the founder's note under them; the portrait ends the page */
.insp__hero--landing { padding-block: clamp(48px, 7vw, 96px) 0; border-block-end: 0; }
.insp__hero--landing + .insp__cards { padding-block-start: clamp(20px, 3vw, 32px); }
.insp__founder { padding: clamp(56px, 7vw, 104px) var(--gutter) 0; border-block-start: 1px solid var(--line); }
.insp__founder .insight__body { padding-block-end: clamp(56px, 7vw, 104px); }
@media (max-width: 760px) { .insp__founder .insight__body { padding-block-end: 0; } }

/* ======================================================================
   Insight pages in light (13 Oct, Ali): the beige of the services band, dark text
   ====================================================================== */
.insp { background: var(--paper); color: var(--ink); }
.insp .case__bar { background: rgba(230, 226, 218, .72); border-block-end-color: var(--line-dark); }
.insp .case__count, .insp .eyebrow { color: var(--mute-dark); }
.insp .case__close { color: var(--ink); background: rgba(10, 10, 10, .04); border-color: rgba(10, 10, 10, .22); }
.insp .case__close:hover { background: rgba(10, 10, 10, .09); border-color: rgba(10, 10, 10, .45); }
.insp .insp__num { color: var(--mute-dark); }
/* landing cards */
.insp .insp__card { background: rgba(10, 10, 10, .025); border-color: var(--line-dark); color: var(--ink); }
.insp .insp__card:hover { background: rgba(10, 10, 10, .05); border-color: rgba(10, 10, 10, .4); }
.insp .insp__card li { color: var(--mute-dark); }
/* group pages */
.insp .insp__hero { border-block-end-color: var(--line-dark); }
.insp .insp__index a { color: var(--ink); border-color: var(--line-dark); }
.insp .insp__index a:hover { border-color: var(--ink); }
.insp .insp__theory { border-block-end-color: var(--line-dark); }
.insp .insp__theory p { color: #3f3b35; }
.insp .insp__theory .insp__use { color: var(--ink); }
.insp .insp__refs { border-block-start-color: var(--line-dark); }
.insp .insp__theory .insp__refs-label { color: var(--mute-dark); }
.insp .insp__refs a { color: var(--mute-dark); text-decoration-color: rgba(94, 90, 83, .4); }
.insp .insp__refs a:hover { color: var(--ink); }
.insp .svcp__next { border-color: var(--line-dark); color: var(--ink); }
.insp .svcp__next:hover { background: rgba(10, 10, 10, .04); }
/* founder note on light */
.insp .insp__founder { border-block-start-color: var(--line-dark); }
.insp .insight__label { color: var(--mute-dark); }
.insp .insight__quote .insight__text { color: var(--ink); }
.insp .insight__sign { color: var(--ink); }
.insp .insight__sign span { color: var(--mute-dark); }
.insp .insight__photo img { filter: drop-shadow(0 18px 30px rgba(10, 10, 10, .14)); }

/* phones: photo on the left, the words beside it (as on desktop), not stacked */
@media (max-width: 760px) {
  .insp .insight__grid { grid-template-columns: 40% minmax(0, 1fr); gap: 0 16px; align-items: end; }
  .insp .insight__founder { order: 0; justify-self: stretch; inline-size: auto; margin: 0; }
  .insp .insight__body { padding-block-end: 28px; }
  .insp .insight__quote::before { font-size: 56px; }
  .insp .insight__quote .insight__text { font-size: clamp(14px, 4vw, 18px); line-height: 1.4; }
  .insp .insight__sign { margin-block-start: 14px; }
  .insp .insight__sign b { font-size: 14px; }
  .insp .insight__sign span { font-size: 12px; }
}
/* the CARVED logo in the Insight bar: the white logo turned black for the light panel */
.insp__brand { display: flex; align-items: center; gap: 18px; min-inline-size: 0; }
.insp__logo { display: block; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.insp__logo img { inline-size: clamp(88px, 8vw, 120px); block-size: auto; filter: brightness(0); opacity: .9; }
@media (max-width: 480px) { .insp .insp__brand .case__count { display: none; } }   /* the logo takes its place on phones */
/* phones: the portrait sits level with the words (not down at the bottom) */
@media (max-width: 760px) {
  .insp .insight__grid { align-items: center; }
  .insp .insight__body { padding-block-end: 0; }
  .insp .insp__founder { padding-block-end: clamp(40px, 10vw, 56px); }
  .insp .insight__photo img { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
}
@media (max-width: 760px) { .insp .insight__founder { align-self: center; } }   /* override the desktop "stand on the line" alignment */

/* ======================================================================
   Workspace: team & permissions (admins), and view-only state for members without edit access
   ====================================================================== */
.adm__readonly { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c4c0b7; }
.adm__pane.is-readonly :is([data-act$="-add"], [data-act$="-del"], [data-act="stage-insert"], [data-act="stage-up"], [data-act="stage-down"], .adm__move, .wf__ins) { display: none !important; }
.adm__pane.is-readonly .adm__input:disabled, .adm__pane.is-readonly .adm__bare:disabled { opacity: .85; color: var(--paper); cursor: default; }
.adm__members .adm__row--member { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.2fr) 150px auto 36px; padding-block: 8px; border-block-end: 1px solid var(--line); }
.adm__email { font-size: 14px; color: #c4c0b7; overflow-wrap: anywhere; }
.adm__email small { color: var(--mute); }
.adm__perms { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.adm__perm { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #d6d2ca; cursor: pointer; white-space: nowrap; }
.adm__perm input { accent-color: #c2571f; inline-size: 15px; block-size: 15px; margin: 0; }
.adm__perm.is-locked { color: var(--mute); cursor: default; }
.adm__row--member.is-admin .kb__chip--owner i { background: #c2571f; color: #fff6ef; }
.adm__x.is-armed { inline-size: auto; padding-inline: 10px; border-radius: 999px; color: #f2b089; border-color: rgba(194, 87, 31, .7); font-size: 12px; }
.adm__invite { justify-items: start; }
.adm__invite .adm__grid { justify-self: stretch; }
@media (max-width: 900px) {
  .adm__members .adm__row--member { grid-template-columns: 30px minmax(0, 1fr) 36px; }
  .adm__members .adm__email { grid-column: 2; }
  .adm__members select, .adm__members .adm__perms { grid-column: 2 / -1; }
  .adm__members .adm__x { grid-row: 1; grid-column: 3; }
}

/* ======================================================================
   Workspace: My tasks (project → stage → tasks assigned to one person), and task assignment
   ====================================================================== */
.adm__count { display: inline-grid; place-items: center; min-inline-size: 20px; block-size: 20px; padding-inline: 6px; margin-inline-start: 4px; border-radius: 999px; font: 600 11px/1 var(--font); color: #fff6ef; background: #c2571f; }
.mine .tree { --rail: rgba(217, 206, 187, .28); }
.mine__project + .mine__project { margin-block-start: clamp(8px, 1.5vw, 16px); padding-block-start: clamp(20px, 3vw, 32px); border-block-start: 1px solid var(--line); }
.mine .tree__groups { --cols: 4; }
.mine .tree__file { gap: 10px; }
.mine .tree__file-foot { margin: 0; gap: 10px; }
.mine .mine__status { inline-size: auto; flex: 1; min-inline-size: 0; padding: 9px 30px 9px 12px; font-size: 14px; background-position: right 10px center; }
.mine__done { flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 500 13px/1 var(--font); color: #c4c0b7; padding: 10px 12px; border-radius: 999px; background: none; border: 1px solid rgba(217, 206, 187, .3); transition: background-color .3s, border-color .3s, color .3s; }
.mine__done:hover { color: var(--paper); border-color: rgba(217, 206, 187, .6); }
.mine__done.is-on { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.mine .tree__file.is-done { opacity: .72; }
.mine .tree__file.is-done .tree__file-name { text-decoration: line-through; text-decoration-color: rgba(217, 206, 187, .5); }
.mine .tree__file.is-doing { border-color: rgba(194, 87, 31, .45); }
.mine .tree__file.is-review { border-color: rgba(224, 168, 127, .5); }
.mine__who .adm__input { inline-size: auto; min-inline-size: 160px; padding-block: 9px; font-size: 14px; }
.mine__empty { text-align: start; padding: 24px; }
@media (max-width: 900px) {
  .adm__row--task { grid-template-columns: minmax(0, 1fr) auto; }
  .adm__row--task .adm__assign { grid-column: 1; }
  .mine .tree__groups { --cols: 1; }
}
/* My tasks on phones: shallower indents so the nested tree fits in 375px */
.mine h2 { overflow-wrap: anywhere; }
.mine .tree { min-inline-size: 0; }
@media (max-width: 760px) {
  .mine .tree__groups { margin-inline-start: 14px; padding: 12px 0 0 14px; }
  .mine .tree__group::before, .mine .tree__group:first-child::before, .mine .tree__group:last-child::before { inset-inline: -14px auto; inline-size: 12px; }
  .mine .tree__files { margin-inline-start: 8px; padding-inline-start: 10px; }
  .mine .tree__file::before { inset-inline-start: -11px; inline-size: 10px; }
  .mine .tree__file { padding: 10px 12px; }
  .mine .tree__file-foot { flex-wrap: wrap; }
  .mine .mine__status { flex: 1 1 120px; }
}

/* ======================================================================
   Reel: four identity films side by side under the hero (muted, lazy, play only in view)
   ====================================================================== */
.reel { padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(40px, 6vw, 80px); background: var(--ink); }
.reel__head { display: grid; gap: 12px; max-inline-size: 760px; margin-block-end: clamp(28px, 4vw, 56px); }
.reel__head .eyebrow { margin: 0; }
.reel__intro { margin: 0; color: #c4c0b7; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; max-inline-size: 60ch; }
.reel__intro .draft { margin-inline-start: 8px; vertical-align: middle; }
.reel__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.reel__film { display: grid; gap: 12px; }
.reel__film video { display: block; inline-size: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #141414; border-radius: 2px; }
.reel__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.reel__cap b { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.reel__cap small { font-size: 12px; color: var(--mute); }
@media (max-width: 1000px) {
  /* phones and tablets: the films in a row you swipe, one and a bit per screen */
  .reel__row { grid-template-columns: repeat(5, 68vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .reel__row::-webkit-scrollbar { display: none; }
  .reel__film { scroll-snap-align: start; }
}
@media (min-width: 1001px) and (max-width: 1200px) { .reel__row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ======================================================================
   Arabic (RTL) page: ثمانية سانس (Thmanyah Sans, licensed copy from Ali's machine); no tracking on Arabic; arrows flip
   ====================================================================== */
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
:root { --font-ar: "Thmanyah Sans", "Metropolis", "Helvetica Neue", Arial, sans-serif; }
[dir="rtl"] body, [dir="rtl"] .btn, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button { font-family: var(--font-ar); }
[dir="rtl"] :is(h1, h2, h3, h4, .hero__title, .section-title, .cta__title, .svc__title, .card__meta h3, .manifesto__text, .insight__text, .case__hero-copy h2, .svcp__hero h2, .insp__hero h2) { letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .draft, [dir="rtl"] .tag, [dir="rtl"] .pill, [dir="rtl"] .portal__status { letter-spacing: 0; }
[dir="rtl"] .hero__title { line-height: 1.12; font-size: clamp(33px, 7.4vw, 124px); }
[dir="rtl"] .cta__title { line-height: 1.15; }
[dir="rtl"] .manifesto__text { line-height: 1.5; }
[dir="rtl"] .svc__arrow, [dir="rtl"] .portal__choice-arrow, [dir="rtl"] .insp__arrow, [dir="rtl"] .svcp__arrow { transform: scaleX(-1); }
[dir="rtl"] .svc__item a:hover .svc__arrow { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-6px); }
[dir="rtl"] .svc__item a:hover .svc__title { transform: translateX(-12px); }
[dir="rtl"] .footer__bottom, [dir="rtl"] .stats, [dir="rtl"] .journey__steps { direction: rtl; }
[dir="rtl"] .stat { padding: 28px 0 0 24px; border-inline-end: 1px solid var(--line); }
[dir="rtl"] .stat dd, [dir="rtl"] .journey__steps li span, [dir="rtl"] .svc__num, [dir="rtl"] .case__count { font-family: var(--font); direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .journey__steps li { padding-inline-start: 0; padding-inline-end: 10%; }
[dir="rtl"] .lang { font-family: var(--font); }
/* names and English words inside Arabic text keep the Latin face */
[dir="rtl"] .card__meta h3, [dir="rtl"] .reel__cap b, [dir="rtl"] .case__hero-copy h2, [dir="rtl"] #case-title { font-family: var(--font); }

/* Film cases (27 Oct): MIST and WAHY are told through their identity films. The card loops the opening; the case page plays the whole film, contained, on ink. */
.card__video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; display: block; background: var(--ink-3); transition: transform 1.2s var(--ease); }
.card:hover .card__video { transform: scale(1.02); }
.case__hero--film { background: #0a0a0a; }
.case__cover--film { object-fit: contain; transform: none; background: #0a0a0a; }
@media (min-width: 761px) { .case__cover--film { object-position: 50% 50%; } }
.case__gallery video { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; background: var(--ink-3); }
.case__gallery figure { position: relative; }
.case__gallery figcaption { position: absolute; inset-inline-start: 14px; inset-block-end: 12px; padding: 5px 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: rgba(10,10,10,.55); backdrop-filter: blur(6px); border-radius: 2px; }
[dir="rtl"] .case__gallery figcaption { letter-spacing: 0; font-size: 13px; }

/* My tasks, 27 Oct (Ali): the project's workflow diagram, with your tasks inside the stage cards, and a calendar of due dates */
.mine__project { display: grid; gap: 12px; }
.mine__project + .mine__project { padding-block-start: clamp(20px, 3vw, 32px); border-block-start: 1px solid var(--line); }
.mine__project-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.mine__project-head h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.mine__project-head small { color: var(--mute); font-size: 13px; }
.mine__card { inline-size: 272px; cursor: default; }
.mine__card:hover { transform: none; background: rgba(217, 206, 187, .05); }
.wf__step.has-mine .mine__card { border-style: solid; border-color: rgba(217, 206, 187, .4); background: rgba(217, 206, 187, .07); }
.wf__step.has-mine:hover .mine__card { background: rgba(217, 206, 187, .07); }
.wf__step.is-quiet .mine__card { opacity: .5; }
.mine__none { font-size: 12px; color: var(--mute); }
.mine__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.mine__task { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(10, 10, 10, .35); border: 1px solid rgba(217, 206, 187, .18); transition: box-shadow .4s; }
.mine__task.is-flash { box-shadow: 0 0 0 3px rgba(194, 87, 31, .6); }
.mine__task.is-done { opacity: .7; }
.mine__task.is-done .mine__task-name { text-decoration: line-through; text-decoration-color: rgba(217, 206, 187, .5); }
.mine__task.is-doing { border-color: rgba(194, 87, 31, .45); }
.mine__task.is-review { border-color: rgba(224, 168, 127, .5); }
.mine__task-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.mine__task-foot { display: grid; gap: 6px; }
.mine .mine__status, .mine__due { inline-size: 100%; padding: 8px 28px 8px 10px; font-size: 13px; }
.mine__due { padding-inline-end: 10px; color-scheme: dark; font-family: var(--font); }
.mine__due.is-late { border-color: rgba(194, 87, 31, .7); color: #e0a87f; }
.mine .mine__done { justify-content: center; }
.cal { display: grid; gap: 14px; inline-size: 100%; justify-items: stretch; }
.cal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal__head h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.cal__nav { display: flex; gap: 8px; align-items: center; }
.cal__week, .cal__grid { inline-size: 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__week li { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-inline: 8px; }
.cal__day { min-inline-size: 0; min-block-size: 88px; padding: 8px; border-radius: 12px; border: 1px solid rgba(217, 206, 187, .14); background: rgba(217, 206, 187, .03); display: grid; align-content: start; gap: 4px; }
.cal__day.is-pad { border-color: transparent; background: none; }
.cal__day.is-today { border-color: rgba(194, 87, 31, .7); }
.cal__day.is-today .cal__num { color: #e0a87f; }
.cal__num { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.cal__chip { display: block; inline-size: 100%; min-inline-size: 0; text-align: start; font: 500 12px/1.3 var(--font); color: var(--paper); padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(217, 206, 187, .25); background: rgba(217, 206, 187, .1); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__chip:hover { background: rgba(217, 206, 187, .2); }
.cal__chip.is-doing { border-color: rgba(194, 87, 31, .6); background: rgba(194, 87, 31, .16); }
.cal__chip.is-review { border-color: rgba(224, 168, 127, .6); }
.cal__chip.is-done { opacity: .55; text-decoration: line-through; }
.cal__more { font-size: 11px; color: var(--mute); }
.cal__undated { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cal__undated .cal__chip { display: inline-block; inline-size: auto; }
.adm__due { color-scheme: dark; font-family: var(--font); }
@media (max-width: 760px) {
  .cal__day { min-block-size: 56px; padding: 6px; gap: 3px; }
  .cal__grid .cal__chip { font-size: 0; padding: 0; block-size: 6px; border-radius: 3px; }
  .cal__week li { font-size: 10px; letter-spacing: .06em; padding-inline: 4px; }
  .mine__card { inline-size: 240px; }
}
.adm__row--task { grid-template-columns: minmax(0, 1fr) 170px 170px 150px auto; }   /* task · status · assigned to · due · remove */
@media (max-width: 760px) { .adm__row--task { grid-template-columns: minmax(0, 1fr) auto; } }

/* sign-in with a password (27 Oct) */
.adm__passwrap { position: relative; display: block; }
.adm__passwrap .adm__input { padding-inline-end: 64px; }
.adm__eye { position: absolute; inset-inline-end: 8px; inset-block-start: 50%; transform: translateY(-50%); font: 500 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #c4c0b7; background: none; border: 0; padding: 6px 8px; cursor: pointer; }
.adm__eye:hover { color: var(--paper); }
.portal__form .portal__label + .adm__passwrap, .portal__form .adm__input + .portal__label { margin-block-start: 10px; }
.adm__members .adm__row--member { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.2fr) 140px 150px auto 36px; }
.adm__pass { font-family: var(--font); }
@media (max-width: 760px) { .adm__members .adm__row--member { grid-template-columns: 30px minmax(0, 1fr) 36px; } .adm__members .adm__pass { grid-column: 2; } }

/* My tasks v2 (27 Oct, Ali): calendar as its own section on top; each project a vertical stage diagram like the Workflow list view */
.cal--section { padding-block-end: clamp(16px, 2vw, 24px); border-block-end: 1px solid var(--line); }
.vflow { list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; gap: 12px; position: relative; }
.vflow::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 7px; border-inline-start: 1.5px solid rgba(217, 206, 187, .25); }
.vflow__step { position: relative; }
.vflow__node { position: absolute; inset-inline-start: -26px; inset-block-start: 16px; inline-size: 15px; block-size: 15px; border-radius: 50%; border: 1.5px solid rgba(230, 226, 218, .45); background: #0f0d0b; }
.vflow__step.is-done .vflow__node { background: var(--accent); border-color: var(--accent); }
.vflow__step.is-current .vflow__node { background: #c2571f; border-color: #c2571f; box-shadow: 0 0 0 4px rgba(194, 87, 31, .22); }
.vflow__card { padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(217, 206, 187, .28); background: rgba(217, 206, 187, .04); display: grid; gap: 12px; }
.vflow__step.has-mine .vflow__card { border-style: solid; border-color: rgba(217, 206, 187, .4); background: rgba(217, 206, 187, .07); }
.vflow__step.is-current .vflow__card { border-color: rgba(194, 87, 31, .6); }
.vflow__step.is-quiet .vflow__card { opacity: .55; padding-block: 10px; }
.vflow__head { display: flex; align-items: center; gap: 12px; }
.vflow__head > div { flex: 1; min-inline-size: 0; display: grid; gap: 2px; }
.vflow__name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.vflow__date { font-size: 13px; color: var(--mute); }
.vflow__step.is-current .vflow__date { color: #e0a87f; }
.mine__list--v { margin: 0; }
.mine__list--v .mine__task { grid-template-columns: minmax(0, 1fr) 190px 150px auto; align-items: center; column-gap: 10px; }
.mine__list--v .mine__task-foot { display: contents; }
.mine__list--v .mine__task .mine__status, .mine__list--v .mine__task .mine__due { inline-size: 100%; }
@media (max-width: 760px) {
  .mine__list--v .mine__task { grid-template-columns: 1fr 1fr; }
  .mine__list--v .mine__task-name { grid-column: 1 / -1; }
  .mine__list--v .mine__task .mine__done { grid-column: 1 / -1; }
}

/* Arabic page, 27 Oct (Ali: "untidy, glass effect wrong; calmer"): no frosted glass in the moments strip, a plain dark scrim instead;
   the seven-step diagram keeps its drawn (left-to-right) order so arcs and labels line up; quieter card frost */
[dir="rtl"] .journey, [dir="rtl"] .journey__inner, [dir="rtl"] .journey__steps { direction: ltr; }
[dir="rtl"] .journey__steps li { direction: rtl; text-align: start; }
[dir="rtl"] .moments { direction: ltr; }   /* the strip animates in page pixels; the copy block stays Arabic */
[dir="rtl"] .moments__copy { direction: rtl; }

/* Backend connection status and private upload controls within the existing workspace. */
.adm__sync { margin: 0; padding: 12px var(--gutter); border-block-end: 1px solid var(--line); }
.adm__row--pay > label.portal__btn, .adm__row--file > label.portal__btn { cursor: pointer; text-align: center; }
.adm__pane.is-readonly input[type="file"] { display: none; }
.adm__pane.is-readonly label:has(input[type="file"]) { display: none; }

/* API access follows the workspace layout and wraps long scopes on small screens. */
.adm__api { min-width: 0; }
.adm__api .portal__head { flex-wrap: wrap; gap: 16px; }
.adm__api .adm__panel { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.adm__api .adm__grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.adm__api code { overflow-wrap: anywhere; }

.header__team { white-space: nowrap; }
@media (max-width: 1100px) { .header__team { display: none; } }
