/* ==========================================================================
   Mariam Saeed — 3D portfolio
   Palette taken from the character: studio grey, black coat, burgundy beret,
   white turtleneck.
   ========================================================================== */

:root {
  --ground: #d9d2d0;
  --ground-2: #cec6c3;
  --paper: #f4efec;
  --ink: #1b1513;
  --ink-2: #4d4340;
  --accent: #7a1d2b;
  --accent-deep: #63172a;
  --accent-dark: #48101c;
  --on-accent: #f8f0ec;

  --pad: clamp(20px, 3.2vw, 40px);
  --lane: 0px;
  --maxw: 1200px;
  --nav-h: 76px;
  --gap-section: clamp(104px, 13vw, 200px);

  --f: "Bricolage Grotesque", "Alexandria", system-ui, sans-serif;
  --f-ar: "Alexandria", "Bricolage Grotesque", system-ui, sans-serif;

  --t-display: clamp(72px, 10.6vw, 176px);
  --t-h2: clamp(46px, 6.4vw, 104px);
  --t-h3: clamp(22px, 2vw, 30px);
  --t-body: clamp(17px, 1.2vw, 19px);
  --t-small: 15px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 1024px) {
  :root { --lane: clamp(130px, 12.5vw, 210px); }
}

html[lang="ar"] { --f: var(--f-ar); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
  width: min(var(--maxw), calc(100% - 2 * max(var(--lane), var(--pad))));
  margin-inline: auto;
}

.skip {
  position: fixed; inset-inline-start: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- shared type ---------- */
h1, h2, h3, h4 { font-weight: 800; }
h2 {
  font-size: var(--t-h2);
  line-height: .92;
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
}
h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; }
html[lang="ar"] h2 { line-height: 1.15; font-weight: 700; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn i { font-size: 19px; transition: transform .25s var(--ease); }
.btn:hover i { transform: translate(2px, 2px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: transparent;
  transition: text-decoration-color .25s, color .25s;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link i { font-size: 20px; }

.round-btn {
  width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 20px;
  background: var(--ground); color: var(--ink);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.round-btn:hover { background: var(--ink); color: var(--paper); }
.round-btn:active { transform: scale(.92); }

[dir="rtl"] .ri-arrow-right-line,
[dir="rtl"] .ri-arrow-left-line,
[dir="rtl"] .ri-arrow-right-up-line,
[dir="rtl"] .ri-arrow-go-back-line,
[dir="rtl"] .ri-arrow-go-forward-line { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover i { transform: scaleX(-1) translate(2px, 2px); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.nav.is-solid { background: var(--paper); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  width: min(var(--maxw), calc(100% - 2 * max(var(--lane), var(--pad))));
  margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.brand { font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 16px; position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .3s var(--ease);
}
[dir="rtl"] .nav-links a::after { --origin: right; }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 0; background: none; cursor: pointer; padding: 8px 12px; font-size: 16px; font-weight: 600;
  font-family: "Alexandria", var(--f); border-radius: 999px; transition: background-color .25s;
}
.lang-btn:hover { background: var(--ground-2); }
.lang-btn:lang(en) { font-family: "Bricolage Grotesque", sans-serif; }
.nav-cta { height: 46px; padding: 0 22px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: stretch;
  padding: var(--nav-h) 0 48px;
  background: var(--ground);
}
/* moving canvas behind the hero: dot grid + drifting code and design marks */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: clamp(24px, 4vw, 72px); align-items: stretch;
  min-height: calc(100svh - var(--nav-h) - 48px);
}
.hero-copy { align-self: center; padding-block: 28px; }
.hero-name {
  font-size: var(--t-display); line-height: .84; letter-spacing: -.055em;
  font-weight: 800; font-variation-settings: "opsz" 96;
}
html[lang="ar"] .hero-name { line-height: 1.12; letter-spacing: 0; font-weight: 700; font-size: calc(var(--t-display) * .86); }
.hero-lede { font-size: var(--t-h3); line-height: 1.32; letter-spacing: -.01em; max-width: 25ch; margin-top: 40px; }
html[lang="ar"] .hero-lede { line-height: 1.6; max-width: 30ch; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 40px; }
.socials { display: flex; gap: 10px; list-style: none; margin-top: 44px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ground-2); font-size: 20px; text-decoration: none;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

/* the 3D stage: burgundy slab (back), Mariam (middle), ink ledge (front) */
.hero-stage {
  position: relative; width: 100%; max-width: 540px; justify-self: end;
  min-height: 560px; perspective: 1400px; perspective-origin: 50% 55%;
  container-type: inline-size;
}
.stage3d {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  --d: 34px;
}
/* the burgundy slab runs from the nav bar down behind her, rising into place on load */
.panel {
  position: absolute; left: 7cqw; right: 7cqw; top: 12px; bottom: 8cqw; transform-style: preserve-3d;
  transform-origin: 50% 100%; animation: panel-rise 1.3s var(--ease-out) .15s both;
}
@keyframes panel-rise { from { transform: scaleY(.42); } }
.panel-face { position: absolute; backface-visibility: hidden; }
.panel-front { inset: 0; background: var(--accent); overflow: hidden; transform: translateZ(var(--d)); }
.panel-top { left: 0; right: 0; top: 0; height: var(--d); transform-origin: top; transform: rotateX(90deg); background: #922b3b; }
.panel-left { top: 0; bottom: 0; left: 0; width: var(--d); transform-origin: left; transform: rotateY(-90deg); background: var(--accent-dark); }
.panel-right { top: 0; bottom: 0; right: 0; width: var(--d); transform-origin: right; transform: rotateY(90deg); background: var(--accent-dark); }
.bust {
  position: absolute; left: 50%; bottom: 3cqw; width: 88cqw; aspect-ratio: 360 / 370;
  transform: translateX(-50%) translateZ(70px) translate3d(var(--hx, 0px), var(--hy, 0px), 0);
}
.bust-turn { position: absolute; inset: 0; transform: rotateY(var(--turn, 0deg)); transform-origin: 50% 60%; }
.bust img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; user-select: none; -webkit-user-drag: none;
}
.bust img.on { opacity: 1; }
/* eyelids drawn over each head view; they close for a blink */
.lids { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; }
.lids.is-blinking { visibility: visible; }
.lid-set { display: none; }
.lid-set.on { display: inline; }
.lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(var(--blink, 0)); }
.lid-skin { fill: url(#lidSkin); }
.lid-lash { fill: none; stroke: #2a1811; stroke-width: 2.4px; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.ledge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 15cqw;
  transform-style: preserve-3d; transform: translateZ(80px); --ld: 30px;
}
.ledge-face { position: absolute; backface-visibility: hidden; }
.ledge-front {
  inset: 0; transform: translateZ(var(--ld)); background: var(--ink); color: var(--paper);
  display: grid; place-items: center; text-align: center; padding: 0 6cqw;
  font-size: clamp(14px, 3.5cqw, 19px); font-weight: 600; letter-spacing: .01em;
}
.ledge-top { left: 0; right: 0; top: 0; height: var(--ld); transform-origin: top; transform: rotateX(90deg); background: #3b302c; }

/* ---------- the walking guide ---------- */
.guide {
  --gh: clamp(230px, 37vh, 350px);
  position: fixed; left: 0; bottom: 14px; z-index: 40;
  height: var(--gh); width: calc(var(--gh) * .56);
  pointer-events: none; will-change: transform, opacity; opacity: 0;
}
.guide-body { position: absolute; inset: 0; transform-origin: 50% 97%; will-change: transform; }
.g-layer { position: absolute; inset: 0; }
.g-top { clip-path: inset(0 0 35.4% 0); }
/* coat hem + boots: swing from the knee line so she reads as walking */
.g-legs { clip-path: inset(64.4% 0 0 0); transform-origin: 50% 64.6%; transform: skewX(var(--sk, 0deg)); }
.g-layer img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; user-select: none; }
.g-layer img.on { opacity: 1; }
.guide-shadow {
  position: absolute; left: 50%; bottom: 0; width: 44%; height: 5.5%;
  transform: translateX(-50%) scale(var(--sh, 1)); border-radius: 50%;
  background: rgba(27, 21, 19, .2); filter: blur(3px);
}

/* ---------- social media ring ---------- */
.work {
  --cw: clamp(190px, min(21vw, 38vh), 320px);
  background: var(--paper); padding-block: clamp(96px, 10vw, 150px); overflow: hidden;
}
.ring-sticky { display: grid; gap: clamp(16px, 2vw, 28px); }
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px 48px; align-items: end; }
.work-head p { max-width: 40ch; }

.ring-scene {
  position: relative; height: calc(var(--cw) * 1.25 + 120px);
  perspective: 1800px; perspective-origin: 50% 35%;
  touch-action: pan-y; user-select: none;
}
.ring-scene.is-dragging { cursor: grabbing; }
.ring {
  --R: calc((var(--cw) / 2 + 26px) * 3.0777);
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--R) * -1)) rotateX(-4deg) rotateY(var(--ring-a, 0deg));
}
.ring-card {
  position: absolute; width: var(--cw); height: calc(var(--cw) * 1.25);
  left: calc(var(--cw) / -2); top: calc(var(--cw) * -.625);
  padding: 0; border: 0; cursor: pointer; overflow: hidden; background: var(--ground);
  transform: rotateY(calc(var(--i) * 36deg)) translateZ(var(--R));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: filter .4s;
}
.ring-card:not(.is-front) { filter: brightness(.86) saturate(.85); }
.ring-card img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.ring-meta { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ring-now h3 { font-size: var(--t-h3); }
.ring-now p { color: var(--ink-2); margin-top: 4px; }
.ring-controls { display: flex; align-items: center; gap: 10px; }
/* one dot per project: click to turn the ring straight to it */
.ring-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; }
.ring-dots button {
  width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
}
.ring-dots button::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--ground-2);
  transition: width .35s var(--ease-out), background-color .25s;
}
.ring-dots button:hover::before { background: var(--ink-2); }
.ring-dots button.is-on::before { width: 26px; background: var(--accent); }

/* cover shown when a work image is missing */
.cover {
  position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 9%; background: var(--ink); color: var(--paper); text-align: start;
}
.cover b { font-size: clamp(22px, 2.2vw, 32px); line-height: 1; letter-spacing: -.03em; font-weight: 800; }
.cover small { font-size: var(--t-small); font-weight: 500; }
.is-missing > .work-img { display: none; }
.is-missing > .cover { display: flex; }
.ring-card:nth-child(3n + 1) .cover { background: var(--accent); color: var(--on-accent); }
.ring-card:nth-child(3n + 3) .cover { background: var(--ground-2); color: var(--ink); }

/* ---------- interfaces ---------- */
.interfaces { background: var(--ground); padding-block: var(--gap-section); }
.ui-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.ui-head p { max-width: 44ch; }
.ui-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(16px, 2.2vw, 32px); }
.ui-athka { grid-column: 8 / span 5; align-self: end; }
.ui-yas { grid-column: 8 / span 5; align-self: end; }
.ui-food { grid-column: 1 / span 5; }
.ui-fly { grid-column: 6 / span 7; }
.ui-feature { grid-column: 1 / -1; margin: 0; }
.ui-feature-shot { display: block; background: #050f26; }
.ui-feature-shot img { display: block; width: 100%; height: auto; }
.ui-rawafed { grid-column: 8 / span 5; align-self: end; }
.ui-rifaf { grid-column: 1 / span 7; }
.ui-rest { grid-column: 6 / span 7; }
.ui-hit { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: start; perspective: 1100px; }
.ui-hit.is-static { cursor: default; }
.ui-frame {
  display: block; background: var(--paper); border-radius: 12px; overflow: hidden;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}
.ui-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #e8e1de; }
.ui-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbc1bd; }
.ui-bar em { font-style: normal; font-size: 13px; color: var(--ink-2); margin-inline-start: 10px; }
.ui-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground-2); }
.ui-food .ui-shot { aspect-ratio: 144 / 79; background: #11130f; }
.ui-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease-out); }
.ui-hit:not(.is-static):hover .ui-shot img { transform: scale(1.045); }
.ui-food .ui-shot img { display: block; height: auto; object-fit: contain; }
.ui-food .ui-hit:hover .ui-shot img { transform: none; }
.ui-shot .cover { justify-content: center; align-items: center; text-align: center; }
.ui-shot .cover b { font-size: clamp(32px, 4vw, 64px); }
.ui-yas .cover, .ui-rest .cover { background: var(--accent); color: var(--on-accent); }
.ui-food .cover { background: var(--paper); color: var(--ink); }
.ui-card h3 { margin-top: 20px; }
.ui-card > p { color: var(--ink-2); margin-top: 4px; }
.case-link { margin-top: 8px; color: var(--accent); }

/* ---------- skills ---------- */
.skills { background: var(--accent); color: var(--on-accent); padding-block: var(--gap-section); }
.skills :focus-visible { outline-color: var(--on-accent); }
.skills-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 112px); }
.skills-head { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
.skills-head p { margin-top: 28px; max-width: 34ch; }
.skills-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 4vw, 64px) clamp(24px, 3vw, 48px); }
.skills-list li { display: grid; gap: 12px; align-content: start; }
.skills-list h3 { font-size: var(--t-h3); }


/* ---------- experience ---------- */
/* compact and close together: date + role on one side, what she did right beside it */
.experience {
  --exp-col: 300px;    /* the left column: heading, dates and roles */
  --exp-gap: 36px;
  --exp-indent: 18px;  /* where the bullet text starts; the intro line starts there too */
  background: var(--paper); padding-block: clamp(88px, 9vw, 140px);
}
.exp-head, .exp-item { display: grid; grid-template-columns: minmax(0, var(--exp-col)) minmax(0, 1fr); column-gap: var(--exp-gap); max-width: 940px; }
.exp-head { align-items: end; row-gap: 10px; margin-bottom: clamp(28px, 3vw, 44px); }
.exp-head h2 { font-size: clamp(38px, 4.4vw, 64px); }
.exp-head p { max-width: 52ch; color: var(--ink-2); padding-inline-start: var(--exp-indent); }
.exp-list { list-style: none; display: grid; max-width: 940px; }
.exp-item {
  row-gap: 4px; grid-template-areas: "date points" "role points";
  align-content: start; padding: 22px 0;
}
.exp-date { grid-area: date; font-size: var(--t-small); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.exp-role { grid-area: role; }
.exp-role h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; }
.exp-org { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); margin-top: 2px; }
/* align-self/align-content: start keeps the same bullet spacing whatever the height of the role beside it */
.exp-points {
  grid-area: points; align-self: start; align-content: start;
  padding-inline-start: var(--exp-indent); display: grid; gap: 6px; font-size: 16px; line-height: 1.55;
}
.exp-points li::marker { color: var(--accent); }

/* ---------- about + turntable ---------- */
.about { background: var(--ground); padding-block: var(--gap-section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 112px); align-items: center; }
.turn { display: grid; justify-items: center; gap: 18px; }
.turntable {
  position: relative; width: min(100%, 440px); aspect-ratio: 440 / 580;
  cursor: grab; touch-action: pan-y; user-select: none; outline-offset: 10px; border-radius: 8px;
}
.turntable.is-dragging { cursor: grabbing; }
.plinth { position: absolute; left: 12%; right: 12%; bottom: 3%; height: 15%; }
.plinth-side {
  position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background: var(--accent-dark);
  border-radius: 0 0 50% 50% / 0 0 52% 52%;
}
.plinth-top { position: absolute; left: 0; right: 0; top: 0; height: 68%; border-radius: 50%; background: var(--accent); }
.tt-figure {
  position: absolute; left: 50%; bottom: 9.5%; height: 87%; aspect-ratio: 280 / 500;
  transform: translateX(-50%);
}
.tt-figure img { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; user-select: none; -webkit-user-drag: none; }
.tt-figure img.on { visibility: visible; }
.turn figcaption { display: flex; align-items: center; gap: 16px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.turn .round-btn { background: var(--ground-2); }
.turn .round-btn:hover { background: var(--ink); }

.about-statement { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.015em; font-weight: 700; margin-top: 32px; max-width: 22ch; }
html[lang="ar"] .about-statement { letter-spacing: 0; line-height: 1.5; }
.about-text { margin-top: 20px; max-width: 46ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.stats dt { font-size: var(--t-h2); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats dd { margin-top: 10px; font-weight: 600; }

/* ---------- contact ---------- */
/* compact: a modest heading and small cards, sized to what they hold */
.contact { background: var(--paper); padding-block: clamp(80px, 8vw, 120px); }
.contact .wrap { text-align: center; }
.contact h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
html[lang="ar"] .contact h2 { line-height: 1.4; letter-spacing: 0; }
.contact-text { margin: 14px auto 0; max-width: 52ch; color: var(--ink-2); }
.contact-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;
  max-width: 820px; margin: clamp(28px, 3vw, 40px) auto 0; text-align: start;
}
.contact-row {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 20px;
  background: var(--ground); text-decoration: none;
  transition: background-color .3s, color .3s;
}
.contact-row > i:first-child { font-size: 24px; flex: none; }
.contact-row span { display: grid; gap: 2px; min-width: 0; }
.contact-row strong { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
html[lang="ar"] .contact-row strong { line-height: 1.5; letter-spacing: 0; }
.contact-row small { font-size: 14px; overflow-wrap: anywhere; }
.contact-row .arrow { margin-inline-start: auto; font-size: 20px; transition: transform .3s var(--ease); }
.contact-row:hover { background: var(--ink); color: var(--paper); }
.contact-row:hover .arrow { transform: translate(4px, -4px); }
[dir="rtl"] .contact-row:hover .arrow { transform: scaleX(-1) translate(4px, -4px); }
.contact-row.is-main { background: var(--accent); color: var(--on-accent); }
.contact-row.is-main:hover { background: var(--ink); }

/* ---------- footer ---------- */
.footer { background: var(--accent); color: var(--on-accent); padding-top: 40px; overflow: hidden; }
.footer :focus-visible { outline-color: var(--on-accent); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: var(--t-small); }
.footer-name {
  display: flex; justify-content: center; align-items: baseline;
  font-size: clamp(44px, 6.4vw, 104px); line-height: .9; letter-spacing: -.035em; font-weight: 500; white-space: nowrap;
  padding: clamp(120px, 14vw, 200px) 0 clamp(36px, 4vw, 56px); font-variation-settings: "opsz" 96;
}
/* the space she stands in at the end of the page */
.fn-gap { flex: none; width: clamp(120px, 13vw, 190px); height: 0; }
html[lang="ar"] .footer-name { font-size: clamp(44px, 6.6vw, 108px); line-height: 1.15; letter-spacing: 0; font-weight: 500; }

/* ---------- dialogs ---------- */
.sehtak-feature { position: relative; isolation: isolate; overflow: hidden; padding: 24px; border-radius: 26px; background: radial-gradient(ellipse at 0% 75%,#9bdff940,transparent 60%),linear-gradient(135deg,#f7fbff,#e5f5ff 58%,#d5effb); border: 1px solid #b4d7e999; color: #0a1c36; }
.sh-water-rings { position: absolute; width: 800px; height: 800px; inset: 15% auto auto -330px; z-index: -1; pointer-events: none; }
.sh-water-rings i { position: absolute; inset: 0; border: 1px solid #4196c91c; border-radius: 50%; }
.sh-water-rings i:nth-child(2) { inset: 65px; }
.sh-water-rings i:nth-child(3) { inset: 130px; }
.sh-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 10px; letter-spacing: .1em; font-weight: 600; color: #396b8a; }
.sh-topline > span:first-child { display: flex; align-items: center; gap: 10px; }
.sh-topline img { object-fit: contain; width: 38px; height: 28px; }
.sh-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: end; margin: 10px 0 14px; }
.sh-intro h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: clamp(38px,4vw,46px); line-height: 1.05; letter-spacing: -.045em; color: #0a1c36; }
.sh-intro h3 > span { color: #287cae; font-size: .29em; font-weight: 500; letter-spacing: 0; }
.sh-headline { color: #1b527a; font-size: clamp(17px,1.5vw,20px); line-height: 1.5; margin-top: 6px; max-width: 30ch; }
.sh-summary { max-width: 43ch; font-size: 14px; line-height: 1.9; color: #425e76; padding-bottom: 4px; }
.sh-showcase { display: grid; grid-template-columns: .22fr 1fr; align-items: center; gap: 0; margin: 4px -4px 18px -10px; }
.sh-product { position: relative; z-index: 2; align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 0; }
.sh-product img { width: 76%; max-height: 310px; height: auto; object-fit: contain; position: relative; filter: drop-shadow(14px 22px 16px #175d8c28); transform: rotate(-10deg); }
.sh-product-halo { position: absolute; width: 85%; height: 28px; bottom: 8%; border-radius: 50%; background: radial-gradient(ellipse,#2079b33d,transparent 70%); }
.sh-browser { position: relative; min-width: 0; width: 100%; max-width: 720px; justify-self: end; overflow: hidden; border-radius: 16px; border: 1px solid #90b7d059; background: #f6fbff; box-shadow: 0 26px 60px -20px #235a8c4d,0 2px 6px #235a8c12; }
.sh-browser-bar { height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #55718a; background: #ffffffc9; border-bottom: 1px solid #c5deee; font-size: 10px; white-space: nowrap; }
.sh-browser-dots { letter-spacing: 2px; font-size: 10px; color: #b2cadb; }
.sh-live-status { margin-inline-start: auto; font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
.sh-live-status::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-inline-end: 5px; border-radius: 50%; background: #9cbed3; }
.sehtak-feature[data-sh-state="live"] .sh-live-status::before { background: #198c72; box-shadow: 0 0 0 3px #198c7213; }
.sh-viewport { position: relative; aspect-ratio: 64 / 31; width: 100%; overflow: hidden; background: #f3f8fc; }
.sh-viewport iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 620px; transform-origin: top left; border: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
.sh-preview-poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity .7s ease; }
.sehtak-feature.is-ready .sh-viewport iframe { opacity: 1; }
.sehtak-feature.is-ready .sh-preview-poster { opacity: 0; }
.sh-browser-footer { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 12px; color: #55718a; background: #ffffffc9; font-size: 9px; direction: ltr; }
.sh-footer-dot { width: 5px; height: 5px; border-radius: 50%; background: #409aca; }
.sh-motion-toggle { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; border: 0; border-radius: 20px; padding: 5px 9px; color: #235a81; background: #e6f2f9; cursor: pointer; font: inherit; font-size: 10px; }
.sh-motion-toggle:hover { background: #d9eefa; }
.sh-interaction { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.sh-chapters { display: flex; gap: 8px; }
.sh-chapters button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 1px solid #aacbde80; border-radius: 30px; padding: 9px 16px; font: inherit; font-size: 12px; color: #376381; background: #ffffff80; cursor: pointer; transition: background .2s,color .2s; }
.sh-chapters button:hover { background: #fff; }
.sh-chapters button[aria-pressed="true"] { background: #0a1c36; color: #fff; border-color: #0a1c36; }
.sh-chapter-number { font-size: 10px; opacity: .55; font-variant-numeric: tabular-nums; }
.sh-interaction > p { font-size: 11px; line-height: 1.7; color: #58738b; max-width: 25ch; }
.sh-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #9dc2d847; margin-top: 16px; padding-top: 14px; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 10px; line-height: 1.6; color: #55738a; }
.sh-tags > span:not(:last-child)::after { content: '/'; opacity: .35; margin-inline-start: 14px; }
.sh-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sh-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 18px; border-radius: 30px; font: inherit; font-size: 12px; line-height: 1.6; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .2s; }
.sh-button-primary { color: #fff; background: #0a1c36; }
.sh-button-primary:hover { background: #1c5685; }
.sh-button-secondary { color: #244e6d; background: #ffffff70; border-color: #a6c8dc80; }
.sh-button-secondary:hover { background: #fff; }
.sh-case { --sh-blue: #1f6fd0; }
.sh-case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: clamp(24px,4vw,44px); margin-top: 30px; border-radius: 22px; background: linear-gradient(130deg,#f3faff,#dbf1fc); color: #0a1c36; }
.sh-case-eyebrow { color: #397a9f; font-size: 11px; letter-spacing: .1em; }
.sh-case-hero h3 { font-size: clamp(46px,5vw,74px); line-height: 1.1; margin: 20px 0; }
.sh-case-hero h4 { font-size: clamp(23px,3vw,32px); line-height: 1.4; margin-bottom: 18px; }
.sh-case-hero p:not(.sh-case-eyebrow) { font-size: 14px; line-height: 1.9; color: #47647d; }
.sh-case-hero .sh-case-scope { font-size: 11px; margin: 20px 0; }
.sh-case-hero-image,.sh-case-screen { border: 1px solid #a5cddd6b; border-radius: 12px; overflow: hidden; }
.sh-case-hero-image img,.sh-case-screen img { display: block; width: 100%; height: auto; }
.sh-case-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 26px; }
.sh-case-features article { padding-top: 18px; border-top: 1px solid #1f6fd025; }
.sh-case-features article > span { font-size: 11px; color: #1f6fd0; }
.sh-case-features h5 { font-size: 19px; line-height: 1.5; margin: 12px 0; }
.sh-case-features p { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.sh-case-screen { margin-top: 26px; }
.sh-case-mobile { display: grid; grid-template-columns: 1.1fr .8fr; gap: 50px; align-items: center; }
.sh-case-mobile p { font-size: 14px; line-height: 1.9; color: var(--ink-2); margin-top: 18px; }
.sh-case-phone { border: 6px solid #0a1c36; border-radius: 26px; overflow: hidden; max-width: 280px; justify-self: center; }
.sh-case-phone img { display: block; width: 100%; height: auto; }
.sh-case-colors { display: flex; gap: 10px; margin-top: 24px; }
.sh-case-colors span { width: 32px; height: 32px; border-radius: 50%; background: #0a1c36; border: 1px solid #0a1c3615; }
.sh-case-colors span:nth-child(2) { background: #1f6fd0; }
.sh-case-colors span:nth-child(3) { background: #55c2ee; }
.sh-case-colors span:nth-child(4) { background: #f3f8fc; }
.sh-case-ending { background: #e3f3fb; padding: clamp(24px,4vw,44px); border-radius: 20px; color: #0a1c36; }
.sh-case-ending p { font-size: 14px; line-height: 1.9; color: #47647d; margin: 18px 0 24px; max-width: 740px; }
@media (prefers-reduced-motion: no-preference) {
 .sh-product img { animation: sh-float 7s ease-in-out infinite; }
 @keyframes sh-float { 0%,100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-12px) rotate(-7deg); } }
 .sehtak-feature.is-paused .sh-product img { animation-play-state: paused; }
}
@media (max-width: 900px) {
 .sh-intro { grid-template-columns: 1fr; gap: 18px; }
 .sh-summary { max-width: 60ch; }
 .sh-showcase { grid-template-columns: .2fr 1fr; margin-inline: -12px 0; }
 .sh-product img { width: 88%; }
 .sh-bottom { flex-direction: column; align-items: stretch; }
 .sh-actions { justify-content: space-between; }
}
@media (max-width: 700px) {
 .sh-topline { font-size: 8px; gap: 10px; letter-spacing: .04em; }
 .sh-intro { margin: 12px 0 18px; }
 .sh-headline { margin-top: 12px; }
 .sh-showcase { display: block; margin: 0 0 22px; }
 .sh-product { display: none; }
 .sh-interaction { display: block; }
 .sh-chapters { width: 100%; gap: 6px; }
 .sh-chapters button { flex: 1; padding: 8px 10px; font-size: 10px; line-height: 1.5; gap: 6px; }
 .sh-interaction > p { max-width: none; margin-top: 12px; }
 .sh-live-status { display: none; }
 .sh-browser-bar { padding-inline: 10px; font-size: 9px; gap: 8px; }
 .sh-bottom { margin-top: 22px; padding-top: 20px; }
 .sh-button { padding: 10px 13px; font-size: 11px; }
 .sh-case-hero,.sh-case-features,.sh-case-mobile { grid-template-columns: 1fr; }
 .sh-case-mobile { gap: 28px; }
}
.rifaf-case { --rifaf-navy: #050f26; --rifaf-blue: #1862f7; }
.rifaf-card-shot img { object-fit: contain; }
.rifaf-card-shot video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ui-rifaf .ui-hit:hover .ui-shot img { transform: none; }
.rifaf-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 30px; padding: clamp(24px,4vw,44px); background: #050f26; color: white; border-radius: 22px; }
.rifaf-eyebrow { color: #89aefa; font-size: 11px; letter-spacing: .1em; }
.rifaf-hero h3 { font-size: clamp(42px,5vw,70px); letter-spacing: .06em; line-height: 1.1; margin: 20px 0; }
.rifaf-hero h3 span { color: #89aefa; }
.rifaf-hero h4 { font-size: clamp(24px,3vw,32px); line-height: 1.4; margin-bottom: 18px; }
.rifaf-hero p:not(.rifaf-eyebrow) { color: #cbd7ee; font-size: 14px; line-height: 1.95; }
.rifaf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.rifaf-tags span { border: 1px solid #89aefa40; padding: 7px 10px; border-radius: 8px; font-size: 11px; }
.rifaf-demo { background: #1862f7; color: white; font-size: 13px; }
.rifaf-demo:hover { background: #1041a5; }
.rifaf-browser { overflow: hidden; border: 1px solid #89aefa40; border-radius: 12px; box-shadow: 0 20px 60px #0005; }
.rifaf-browser img { display: block; width: 100%; height: auto; }
.rifaf-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 28px; }
.rifaf-features article { padding-top: 20px; border-top: 1px solid #1041a530; }
.rifaf-features article > span { color: #1041a5; font-size: 12px; }
.rifaf-features h5 { font-size: 19px; margin: 12px 0; line-height: 1.5; }
.rifaf-features p { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.rifaf-solutions { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 28px; }
.rifaf-solutions img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #1041a525; }
.rifaf-solutions figcaption,.rifaf-mobile figcaption { color: var(--ink-2); font-size: 12px; line-height: 1.8; margin-top: 12px; }
.rifaf-mobile { display: grid; grid-template-columns: 1.1fr .8fr; gap: 60px; align-items: center; }
.rifaf-mobile > div > p { color: var(--ink-2); font-size: 14px; line-height: 1.95; margin-top: 18px; }
.rifaf-mobile > figure { max-width: 280px; justify-self: center; }
.rifaf-phone { border: 6px solid #050f26; border-radius: 25px; overflow: hidden; box-shadow: 0 16px 36px #050f2620; }
.rifaf-phone img { display: block; width: 100%; height: auto; }
.rifaf-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.rifaf-tech span { font-size: 11px; padding: 6px 10px; border: 1px solid #1041a530; border-radius: 8px; }
.rifaf-system { padding: 30px; border-radius: 18px; background: #1041a508; }
.rifaf-system .swatches { margin: 22px 0; }
.rifaf-system p { color: var(--ink-2); font-size: 14px; line-height: 1.95; max-width: 740px; }
.rifaf-ending { padding: clamp(24px,4vw,44px); border-radius: 20px; background: #050f26; color: white; }
.rifaf-ending p { font-size: 14px; line-height: 1.95; margin: 18px 0 24px; color: #cbd7ee; max-width: 740px; }
@media (max-width: 700px) {
 .rifaf-hero,.rifaf-features,.rifaf-mobile { grid-template-columns: 1fr; }
 .rifaf-mobile { gap: 30px; }
}
.fly-preview { position: relative; }
.fly-video-frame { display: block; position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #0e1424; }
.fly-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.fly-preview-label { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 6px 10px; background: #0e1424da; color: #fff; font-size: 10px; border-radius: 20px; pointer-events: none; }
.fly-preview-toggle { display: flex; align-items: center; gap: 7px; margin-top: 10px; margin-inline-start: auto; padding: 6px 10px; border: 1px solid #0e142425; background: transparent; color: var(--ink-2); border-radius: 20px; font: inherit; font-size: 11px; cursor: pointer; }
.fly-preview-toggle:hover { background: #0e14240c; }
.fly-case { --fly-navy: #0e1424; --fly-red: #e53542; }
.fly-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: clamp(24px,4vw,44px); margin-top: 30px; background: #0e1424; color: #fff; border-radius: 22px; }
.fly-eyebrow { font-size: 11px; letter-spacing: .1em; color: #ff9ba4; }
.fly-hero h3 { font-size: clamp(40px,5vw,68px); line-height: 1.1; margin: 20px 0; }
.fly-hero h3 span { color: #ff6470; }
.fly-hero h4 { font-size: clamp(23px,3vw,32px); line-height: 1.4; margin-bottom: 18px; }
.fly-hero p:not(.fly-eyebrow) { font-size: 14px; line-height: 1.95; color: #d3d7e2; }
.fly-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.fly-tags span { font-size: 11px; padding: 7px 10px; border: 1px solid #ffffff30; border-radius: 8px; }
.fly-demo { background: #e53542; color: #fff; font-size: 13px; }
.fly-demo:hover { background: #ba2632; }
.fly-hero-shot { border: 1px solid #ffffff30; border-radius: 12px; box-shadow: 0 20px 60px #0005; overflow: hidden; }
.fly-hero-shot img { display: block; width: 100%; height: auto; }
.fly-section-copy { color: var(--ink-2); font-size: 14px; line-height: 1.9; margin: 16px 0 26px; max-width: 740px; }
.fly-recording { border: 1px solid #0e142430; border-radius: 14px; overflow: hidden; background: #0e1424; }
.fly-recording video { display: block; width: 100%; aspect-ratio: 12 / 5; }
.fly-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 28px; }
.fly-features article { padding-top: 20px; border-top: 1px solid #0e142430; }
.fly-features article > span { font-size: 11px; font-weight: 600; color: #c82837; }
.fly-features h5 { font-size: 20px; margin: 12px 0; line-height: 1.5; }
.fly-features p { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.fly-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.fly-details img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid #0e142420; }
.fly-details figcaption,.fly-mobile-pair figcaption { font-size: 12px; color: var(--ink-2); margin-top: 12px; line-height: 1.8; }
.fly-mobile-section { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; }
.fly-mobile-section > div > p { color: var(--ink-2); font-size: 14px; line-height: 1.9; margin-top: 18px; }
.fly-mobile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; border-radius: 20px; background: #0e142408; }
.fly-phone { border: 4px solid #0e1424; border-radius: 20px; overflow: hidden; }
.fly-phone img { display: block; width: 100%; height: auto; }
.fly-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fly-tech span { font-size: 11px; border: 1px solid #0e142425; padding: 6px 10px; border-radius: 7px; }
.fly-ending { padding: clamp(24px,4vw,44px); border-radius: 20px; background: #0e1424; color: #fff; }
.fly-ending p { font-size: 14px; line-height: 1.9; color: #d3d7e2; margin: 18px 0 24px; max-width: 740px; }
@media (max-width: 700px) {
 .fly-hero,.fly-mobile-section { grid-template-columns: 1fr; }
 .fly-features,.fly-details { grid-template-columns: 1fr; }
 .fly-preview-label { font-size: 9px; inset-inline-start: 8px; bottom: 8px; }
 .fly-mobile-pair { padding: 16px; gap: 14px; }
}
.hr-case { --hr-plum: #4a1238; --hr-soft: #f3e8ef; }
.hr-card-preview { display: grid; grid-template-rows: auto minmax(0,1fr) auto; justify-items: center; position: relative; aspect-ratio: 16 / 10; background: linear-gradient(145deg,#f6eff3,#e9d8e3); border-radius: 16px; overflow: hidden; padding: 22px 20px 16px; }
.hr-card-brand { align-self: flex-start; font-size: clamp(20px,3vw,32px); line-height: 1.1; font-weight: 700; color: #4a1238; }
.hr-card-brand > span { font-weight: 400; margin-inline-start: 3px; }
.hr-montage { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-width: 0; direction: ltr; }
.hr-card-preview .hr-montage { height: 100%; min-height: 0; padding: 12px 0 20px; }
.hr-device { display: block; overflow: hidden; background: #fbf8f6; border: 5px solid #241621; border-radius: 22px; box-shadow: 0 12px 26px #4a12381c; min-width: 0; }
.hr-device img { display: block; width: 100%; height: auto; }
.hr-montage > .hr-device { width: 27%; flex-shrink: 0; transform: translateY(9px) rotate(-7deg); }
.hr-montage > .hr-device:nth-child(2) { width: 31%; transform: translateY(-4px); z-index: 1; }
.hr-montage > .hr-device:nth-child(3) { transform: translateY(9px) rotate(7deg); }
.hr-card-preview .hr-device { border-width: 3px; border-radius: 15px; width: auto; height: 90%; aspect-ratio: 390 / 844; }
.hr-card-preview .hr-device:nth-child(2) { width: auto; height: 100%; }
.hr-card-preview .hr-device img { height: 100%; object-fit: contain; }
.hr-card-note { color: #4a1238; font-size: 12px; font-weight: 600; position: relative; z-index: 2; padding: 4px 12px; border-radius: 20px; background: #f6eff3ed; }
.hr-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; margin-top: 30px; padding: clamp(24px,4vw,44px); background: #f3e8ef; border-radius: 22px; }
.hr-eyebrow { color: #7a1d5c; letter-spacing: .08em; font-size: 11px; font-weight: 600; }
.hr-hero h3 { font-size: clamp(44px,6vw,76px); line-height: 1.1; margin: 18px 0; color: #4a1238; }
.hr-hero h3 span { font-weight: 400; }
.hr-hero h4 { font-size: clamp(23px,3vw,32px); line-height: 1.4; margin-bottom: 20px; }
.hr-hero p:not(.hr-eyebrow) { font-size: 14px; line-height: 1.95; color: #594750; }
.hr-hero .hr-montage { padding-block: 30px; }
.hr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.hr-tags span { font-size: 11px; border: 1px solid #4a12382b; padding: 6px 10px; border-radius: 8px; }
.hr-figma { background: #4a1238; color: white; font-size: 13px; }
.hr-figma:hover { background: #7a1d5c; }
.hr-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 30px 0; border-bottom: 1px solid #4a123825; gap: 20px; }
.hr-stats > div { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.hr-stats strong { font-size: 34px; color: #4a1238; line-height: 1.2; }
.hr-stats span { font-size: 12px; color: var(--ink-2); }
.hr-journey { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 26px; }
.hr-journey li { border-top: 1px solid #4a123830; padding-top: 18px; }
.hr-journey li > span { display: inline-block; border-radius: 50%; background: #f3e8ef; color: #4a1238; padding: 8px 10px; font-size: 11px; margin-bottom: 14px; }
.hr-journey h5 { font-size: 16px; margin-bottom: 10px; line-height: 1.5; }
.hr-journey p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.hr-explorer-intro { color: var(--ink-2); line-height: 1.9; font-size: 14px; max-width: 680px; margin-top: 14px; }
.hr-explorer-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr) minmax(0,.85fr); gap: 24px; align-items: center; margin-top: 28px; }
.hr-screen-list { display: flex; flex-direction: column; gap: 6px; }
.hr-screen-btn { display: flex; align-items: center; gap: 12px; padding: 12px 10px; text-align: start; border: 1px solid transparent; border-radius: 10px; background: transparent; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.hr-screen-btn:hover { background: #f3e8ef80; }
.hr-screen-btn[aria-pressed="true"] { background: #4a1238; color: #fff; }
.hr-screen-number { font-size: 10px; opacity: .65; font-variant-numeric: tabular-nums; }
.hr-stage { display: flex; flex-direction: column; align-items: center; background: #eadfe6; padding: 20px clamp(14px,2vw,26px) 26px; border-radius: 22px; gap: 20px; min-width: 0; }
.hr-stage[data-theme="dark"] { background: #271b27; }
.hr-theme { display: flex; padding: 4px; border-radius: 30px; background: #fff; gap: 4px; }
.hr-theme button { padding: 7px 18px; background: none; border: 0; border-radius: 24px; font: inherit; font-size: 11px; color: #4a1238; cursor: pointer; }
.hr-theme button[aria-pressed="true"] { background: #4a1238; color: white; }
.hr-showcase-device { border: 6px solid #241621; border-radius: 24px; background: #fbf8f6; overflow: hidden; width: 100%; max-width: 300px; aspect-ratio: 390 / 844; box-shadow: 0 14px 32px #24162125; }
.hr-showcase-device img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hr-screen-current { color: #7a1d5c; font-size: 12px; font-variant-numeric: tabular-nums; }
.hr-screen-copy h5 { font-size: 24px; line-height: 1.5; margin: 14px 0; }
.hr-screen-copy p { font-size: 14px; line-height: 2; color: var(--ink-2); }
.hr-mini-colors { display: flex; gap: 8px; margin-top: 24px; }
.hr-mini-colors span { width: 24px; height: 24px; border-radius: 50%; background: #4a1238; }
.hr-mini-colors span:nth-child(2) { background: #7a1d5c; }
.hr-mini-colors span:nth-child(3) { background: #f3e8ef; border: 1px solid #4a123820; }
.hr-process { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; }
.hr-process > div > p { font-size: 14px; color: var(--ink-2); line-height: 2; margin-top: 18px; }
.hr-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; background: #f3e8ef80; border-radius: 20px; }
.hr-comparison .hr-device { border-width: 3px; border-radius: 14px; }
.hr-comparison figcaption { font-size: 11px; margin-top: 14px; text-align: center; color: var(--ink-2); }
.hr-system-copy { color: var(--ink-2); font-size: 14px; line-height: 2; margin: 18px 0 28px; max-width: 760px; }
.hr-system-image { border: 1px solid #4a123820; border-radius: 18px; overflow: hidden; }
.hr-system-image img { display: block; width: 100%; height: auto; }
.hr-ending { border-radius: 20px; padding: clamp(24px,4vw,44px); background: #4a1238; color: white; }
.hr-ending p { font-size: 14px; line-height: 2; margin: 18px 0 24px; max-width: 680px; color: #f3e8ef; }
.hr-ending .text-link { color: white; }
@media (max-width: 800px) {
 .hr-hero { grid-template-columns: 1fr; gap: 12px; }
 .hr-hero .hr-montage { max-width: 460px; margin-inline: auto; }
 .hr-explorer-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
 .hr-screen-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .hr-journey { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .hr-process { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
 .hr-explorer-grid { grid-template-columns: 1fr; }
 .hr-screen-copy { padding: 4px 8px; }
 .hr-screen-copy h5 { margin-top: 6px; }
 .hr-screen-list { gap: 3px; }
 .hr-screen-btn { padding: 10px 7px; font-size: 11px; gap: 7px; }
 .hr-stats { gap: 10px; }
 .hr-stats strong { font-size: 28px; }
 .hr-stats span { font-size: 10px; }
 .hr-comparison { padding: 14px; gap: 14px; }
 .hr-card-preview { padding: 16px 14px 10px; }
 .hr-card-preview .hr-montage { padding: 10px 0 16px; }
}
.food-case { --food-ink: #11130f; --food-yellow: #ffd328; }
.food-intro { margin-top: 30px; padding: clamp(24px, 4vw, 44px); background: var(--food-ink); color: #f7f5ee; border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.food-intro .food-eyebrow { color: var(--food-yellow); font-size: 11px; letter-spacing: .12em; margin-bottom: 16px; }
.food-intro h3 { font-size: clamp(42px, 5vw, 72px); line-height: 1; color: var(--food-yellow); margin-bottom: 18px; }
.food-intro h4 { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; margin-bottom: 16px; }
.food-intro p { line-height: 1.8; font-size: 14px; color: #dbddd5; }
.food-intro .case-sub { font-size: 12px; margin-bottom: 16px; color: #a5a69e; }
.food-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.food-tags span { padding: 7px 10px; border: 1px solid #ffffff35; border-radius: 8px; font-size: 11px; }
.food-intro .food-figma { background: var(--food-yellow); color: var(--food-ink); font-size: 13px; }
.food-intro-preview { overflow: hidden; border: 1px solid #ffffff25; border-radius: 12px; box-shadow: 0 20px 60px #0005; }
.food-intro-preview img { display: block; width: 100%; height: auto; }
.food-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.food-process article { border-top: 1px solid #11130f35; padding-top: 20px; }
.food-step { display: inline-block; font-size: 12px; font-weight: 700; background: var(--food-yellow); color: var(--food-ink); padding: 5px 10px; border-radius: 6px; margin-bottom: 14px; }
.food-process h5 { font-size: 18px; line-height: 1.5; margin-bottom: 12px; }
.food-process p { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.food-screens { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 3vw, 36px); margin-top: 26px; }
.food-browser { overflow: hidden; border: 1px solid #11130f25; border-radius: 12px; background: var(--food-ink); }
.food-browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; font-size: 9px; color: #a5a69e; background: #20231c; direction: ltr; }
.food-browser-bar em { font-size: 10px; font-style: normal; }
.food-screens img { display: block; width: 100%; height: auto; }
.food-phone { border: 7px solid #20231c; border-radius: 26px; overflow: hidden; box-shadow: 0 16px 35px #11130f15; }
.food-screens figcaption { font-size: 12px; line-height: 1.8; margin-top: 14px; color: var(--ink-2); }
.food-system { padding: 28px; border-radius: 16px; background: #11130f08; }
.food-system .swatches { margin: 22px 0; }
.food-system p { max-width: 680px; line-height: 1.9; color: var(--ink-2); }
@media (max-width: 700px) {
  .food-intro { grid-template-columns: 1fr; gap: 28px; }
  .food-process { grid-template-columns: 1fr; }
  .food-screens { grid-template-columns: 1fr; gap: 30px; }
  .food-screens > figure:last-child { max-width: 260px; margin-inline: auto; }
}
dialog { border: 0; padding: 0; margin: auto; color: var(--ink); }
dialog::backdrop { background: rgba(27, 21, 19, .62); }
dialog[open] { animation: dlg-in .45s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.viewer { width: min(1160px, 94vw); max-height: 92vh; background: var(--paper); border-radius: 18px; overflow: auto; overscroll-behavior: contain; }
.viewer-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.viewer-media { position: relative; background: var(--ground); height: min(780px, 86vh); min-height: 0; padding: 16px 16px 76px; }
.viewer-media img { width: 100%; height: 100%; object-fit: contain; }
.viewer-media .cover { background: var(--accent); color: var(--on-accent); }
.viewer-media .cover b { font-size: clamp(32px, 4vw, 56px); }
.viewer-copy { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; max-height: min(780px, 86vh); }
.viewer-copy p { color: var(--ink-2); }
.viewer-copy form { margin-top: auto; padding-top: 24px; }
.gallery-controls { position: absolute; inset: auto 16px 16px; display: flex; align-items: center; justify-content: center; gap: 24px; z-index: 1; }
.gallery-controls .round-btn { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); width: 42px; height: 42px; }
.gallery-controls .round-btn:hover { background: var(--ink); color: var(--paper); }
.gallery-controls .round-btn i { transform: none; }
.viewer-dismiss { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; }
.viewer-dismiss .round-btn { width: 32px; height: 32px; background: var(--paper); color: var(--ink); box-shadow: 0 2px 12px #0002; }
.gallery-controls span { min-width: 68px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ink-2); padding-top: 20px; margin-top: 18px; font-weight: 600; }
.gallery-heading > :last-child { font-size: 13px; font-variant-numeric: tabular-nums; }
.viewer-copy .gallery-hint { font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.gallery-thumbs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; overflow-y: auto; padding: 4px; min-height: 100px; scrollbar-width: thin; }
.gallery-thumb { border: 2px solid transparent; padding: 3px; background: transparent; border-radius: 8px; cursor: pointer; aspect-ratio: 4 / 5; transition: border-color .2s, background .2s; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gallery-thumb:hover { background: var(--ground); }
.gallery-thumb[aria-pressed="true"] { border-color: var(--ink); background: var(--ground); }
.gallery-thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 700px) {
  .viewer-inner { grid-template-columns: 1fr; }
  .viewer .viewer-media { height: 54vh; max-height: 54vh; aspect-ratio: auto; }
  .viewer-copy { max-height: none; padding: 22px; }
  .gallery-thumbs { max-height: 220px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .gallery-heading { margin-top: 8px; padding-top: 14px; }
  .viewer-copy form { padding-top: 12px; }
}

.case { width: min(1120px, 95vw); max-height: 92vh; background: var(--paper); overflow: auto; overscroll-behavior: contain; }
.case-close { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 16px; pointer-events: none; }
.case-close button { pointer-events: auto; background: var(--ink); color: var(--paper); }
.case-close button:hover { background: var(--accent); }
.case-body { padding: 0 clamp(20px, 4vw, 64px) clamp(40px, 5vw, 72px); margin-top: -40px; }
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px 48px; align-items: center; }
.case-hero h3 { font-size: var(--t-h2); line-height: .92; letter-spacing: -.045em; font-weight: 800; }
.case-hero p { margin-top: 16px; max-width: 46ch; }
.case-sub { font-weight: 600; color: var(--accent); }
.case-role strong { display: block; }
.case-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground); }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case-shot.tall { aspect-ratio: 16 / 11; overflow-y: auto; }
.case-shot.tall img { height: auto; }
.case-shot .cover { align-items: center; justify-content: center; text-align: center; background: var(--ground-2); color: var(--ink); }
.case-hero .case-shot .cover { background: var(--accent); color: var(--on-accent); }
.case-sec { margin-top: clamp(48px, 6vw, 88px); }
.case-sec h4 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.02em; max-width: 26ch; margin-bottom: 24px; }
.case-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.case-split h4 { margin: 0; }
.case-browser { background: var(--ground); border-radius: 12px; overflow: hidden; }
.case-trio { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-sec figure figcaption { margin-top: 10px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.case-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.case-points strong { display: block; }
.case-system { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.swatches { display: flex; gap: 10px; }
.swatches span { width: 60px; height: 60px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(27, 21, 19, .12); }

/* ---------- entrances ---------- */
html.reveal-ready [data-reveal],
html.reveal-ready [data-reveal-group] > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.reveal-ready [data-reveal].is-in,
html.reveal-ready [data-reveal-group].is-in > * { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); inset-inline: 0;
    flex-direction: column; gap: 4px; padding: 12px var(--pad) 24px; background: var(--paper);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 22px; font-weight: 600; padding: 10px 0; }
  .nav.menu-open { background: var(--paper); }
  .nav-actions { margin-inline-start: auto; }
  .menu-btn {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--ground-2); font-size: 22px; cursor: pointer;
  }
  .nav-cta { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 0; }
  .hero-stage { min-height: 0; aspect-ratio: 540 / 620; }
  .panel { top: 36cqw; }
  .hero-name { font-size: clamp(64px, 19vw, 132px); }
  .hero-lede { margin-top: 24px; }
  .hero-actions { margin-top: 28px; }
  .socials { margin-top: 28px; }
  .hero-stage { justify-self: center; max-width: 440px; margin-top: 12px; }

  .work-head { grid-template-columns: 1fr; gap: 12px; }
  .work-head p { font-size: var(--t-small); }
  .work { --cw: clamp(170px, min(50vw, 34vh), 240px); }
  .ring-meta { gap: 14px; }
  .ring-dots { order: 3; width: 100%; justify-content: flex-start; margin-inline-start: -8px; }
  .ring-controls .btn { padding: 0 20px; }

  .ui-head { grid-template-columns: 1fr; }
  .ui-grid > * { grid-column: 1 / -1 !important; }
  .ui-food .ui-shot { aspect-ratio: 144 / 79; }

  .skills-grid { grid-template-columns: 1fr; }
  .skills-head { position: static; }
  .skills-list { grid-template-columns: 1fr; }

  .exp-head { grid-template-columns: 1fr; }
  .exp-head p { padding-inline-start: 0; }
  .exp-item { grid-template-columns: 1fr; grid-template-areas: "date" "role" "points"; gap: 4px; padding: 18px 0; }
  .exp-points { margin-top: 8px; }

  .about-grid { grid-template-columns: 1fr; }
  .turntable { width: min(100%, 340px); }

  .contact-list { grid-template-columns: 1fr; gap: 12px; }
  .contact-row { min-height: 68px; padding: 12px 18px; }

  .viewer-inner { grid-template-columns: 1fr; }
  .viewer-media { max-height: 60vh; aspect-ratio: auto; height: 60vh; }
  .case-hero, .case-split, .case-pair, .case-points { grid-template-columns: 1fr; }
  .case-trio { grid-template-columns: 1fr 1fr; }
  .case-trio figure:first-child { grid-column: 1 / -1; }

  .guide { --gh: 150px; bottom: 0; }
  .fn-gap { width: 64px; }
}

@media (max-width: 480px) {
  .ring-controls .btn span { display: none; }
  .ring-controls .btn { width: 52px; padding: 0; }
  .stats dt { font-size: clamp(40px, 13vw, 64px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { animation: none; }
  html.reveal-ready [data-reveal], html.reveal-ready [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  .ring-scene { height: auto; perspective: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--pad) 16px; }
  .ring { position: static; width: auto; height: auto; transform: none !important; display: flex; gap: 16px; }
  .ring-card { position: relative; left: auto; top: auto; transform: none; flex: none; scroll-snap-align: center; }
  .ring-card:not(.is-front) { filter: none; }
  .ring-controls .round-btn { display: none; }
}

/* Experience footnote */
.exp-note{margin-top:1.25rem;font-size:.9rem;opacity:.7;font-style:italic}
