:root {
  color-scheme: dark;
  --ink: #090d12;
  --ink-raised: #141923;
  --ink-soft: #1a202b;
  --text: #f3f1eb;
  --muted: #a6b0ba;
  --line: rgba(210, 220, 232, .17);
  --font-fa: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
  --font-en: "Space Grotesk", Arial, sans-serif;
  --dock-height: 78px;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
html { background: var(--ink); scroll-behavior: auto; }
body {
  background:
    radial-gradient(ellipse at 54% 48%, rgba(79, 80, 115, .09), transparent 56%),
    var(--ink);
  color: var(--text);
  font: 400 15px/1.75 var(--font-fa);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #090d12; background: #b9a2f2; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--field-accent, #b9a2f2); outline-offset: 3px; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 120; top: 10px; right: 10px;
  padding: 9px 15px; border-radius: 999px;
  background: #f3f1eb; color: #090d12; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.story-track {
  position: relative; width: 100%; height: 100vh; height: 100svh; height: 100dvh;
  display: flex; flex-flow: row nowrap; align-items: stretch; direction: ltr;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain;
  scroll-snap-type: x mandatory; scroll-snap-stop: always;
  scrollbar-width: none; touch-action: pan-x pinch-zoom; -webkit-overflow-scrolling: touch;
}
.story-track::-webkit-scrollbar { display: none; }
.story-track:focus { outline: none; }
.story-track:focus-visible { outline: 2px solid #b9a2f2; outline-offset: -4px; }
.story-slide {
  position: relative; flex: 0 0 100%; width: 100%; min-width: 100%;
  height: 100%; min-height: 0; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always; direction: rtl;
}
.workspace {
  --field-accent: #b9a2f2;
  padding: 14px clamp(10px, 1.55vw, 24px) calc(var(--dock-height) + 36px);
  background:
    radial-gradient(ellipse at 84% 31%, color-mix(in srgb, var(--field-accent) 8%, transparent), transparent 35%),
    radial-gradient(ellipse at 15% 85%, rgba(98, 137, 163, .045), transparent 45%),
    #090d12;
  transition: background 360ms ease;
}
.workspace--hero {
  --active-backdrop-image: url("media/service-content.webp");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #090d12;
}
.workspace--hero .workspace-backdrop {
  position: absolute;
  z-index: 0;
  inset: -1.5%;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(5,8,13,.34) 0%, rgba(5,8,13,.54) 43%, rgba(5,8,13,.86) 100%),
    linear-gradient(0deg, rgba(5,8,12,.72), rgba(5,8,12,.14) 56%, rgba(5,8,12,.32)),
    var(--active-backdrop-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.015);
  transition: opacity 220ms ease, transform 900ms cubic-bezier(.2,.7,.2,1), filter 420ms ease;
}
.workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .workspace-backdrop { filter: blur(8px) brightness(.58) saturate(.62); transform: scale(1.06); }
.workspace--hero .workspace-backdrop.is-changing {
  opacity: 0;
  transform: scale(1.025);
}
.workspace--hero .workspace-frame {
  position: relative;
  z-index: 1;
  grid-template-rows: minmax(130px, 25vh) minmax(86px, 11.5vh) minmax(48px, 6vh) minmax(0, 1fr);
  gap: clamp(10px, 1.35vh, 16px);
}
.workspace--hero:not(.has-subnav) .workspace-frame {
  grid-template-rows: minmax(130px, 25vh) minmax(86px, 11.5vh) minmax(0, 1fr);
}
.workspace--hero:not(.has-subnav) .subnav-bar { display: none; }
.workspace--hero .selection-band {
  border-color: color-mix(in srgb, var(--field-accent) 34%, transparent);
}
.workspace--hero .subnav-bar {
  flex-direction: row-reverse;
  border-color: color-mix(in srgb, var(--field-accent) 30%, transparent);
}
.workspace--hero .detail-stage {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding-top: 3px;
  direction: rtl;
}
.workspace--hero .detail-copy {
  width: min(100%, 930px);
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding: clamp(10px, 2.2vh, 26px) clamp(4px, .8vw, 12px);
  justify-content: center;
}
.workspace--hero .detail-copy h2 {
  transform: perspective(980px) rotateX(var(--hero-tilt-x,0deg)) rotateY(var(--hero-tilt-y,0deg));
  transform-style: preserve-3d; transform-origin: center;
  -webkit-text-stroke: .25px rgba(255,255,255,.2);
  text-shadow:
    var(--hero-specular-x,0px) var(--hero-specular-y,-1px) 0 rgba(255,255,255,.56),
    0 1px 0 color-mix(in srgb,var(--field-accent) 70%,#f3f1eb 30%),
    0 2px 0 color-mix(in srgb,var(--field-accent) 56%,#302941 44%),
    0 3px 0 color-mix(in srgb,var(--field-accent) 39%,#211b2d 61%),
    0 4px 0 rgba(18,15,27,.82),
    0 13px 24px rgba(0,0,0,.36),
    0 0 26px color-mix(in srgb,var(--field-accent) 22%,transparent);
  transition: transform 460ms cubic-bezier(.2,.72,.2,1), text-shadow 260ms ease;
  backface-visibility: hidden;
}
.workspace--hero .detail-description { max-width: 780px; }

.workspace--portfolio {
  --active-backdrop-image: url("media/portfolio-brand-sites.webp");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #090d12;
}
.workspace--portfolio .workspace-backdrop {
  position: absolute;
  z-index: 0;
  inset: -1.5%;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(5,8,13,.34) 0%, rgba(5,8,13,.54) 43%, rgba(5,8,13,.86) 100%),
    linear-gradient(0deg, rgba(5,8,12,.72), rgba(5,8,12,.14) 56%, rgba(5,8,12,.32)),
    var(--active-backdrop-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.015);
  transition: opacity 220ms ease, transform 900ms cubic-bezier(.2,.7,.2,1);
}
.workspace--portfolio .workspace-backdrop.is-changing {
  opacity: 0;
  transform: scale(1.025);
}
.workspace--portfolio .workspace-frame {
  position: relative;
  z-index: 1;
  grid-template-rows: minmax(130px, 25vh) minmax(48px, 6vh) minmax(0, 1fr);
  gap: clamp(9px, 1.25vh, 15px);
}
.workspace--portfolio .subnav-bar {
  flex-direction: row-reverse;
  border-color: color-mix(in srgb, var(--field-accent) 30%, transparent);
}
.workspace--portfolio .detail-stage {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding-top: 3px;
  direction: rtl;
}
.workspace--portfolio .detail-copy {
  width: min(100%, 930px);
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding: clamp(10px, 2.2vh, 26px) clamp(4px, .8vw, 12px);
  justify-content: center;
}
.workspace--portfolio .detail-copy h2 { text-shadow: 0 3px 28px rgba(0,0,0,.32); }
.workspace--portfolio .detail-description { max-width: 780px; }

.workspace--collaboration {
  --active-backdrop-image: url("media/collab-discover.webp");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #090d12;
}
.workspace--collaboration .workspace-backdrop {
  position: absolute;
  z-index: 0;
  inset: -1.5%;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(5,8,13,.34) 0%, rgba(5,8,13,.54) 43%, rgba(5,8,13,.86) 100%),
    linear-gradient(0deg, rgba(5,8,12,.72), rgba(5,8,12,.14) 56%, rgba(5,8,12,.32)),
    var(--active-backdrop-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.015);
  transition: opacity 220ms ease, transform 900ms cubic-bezier(.2,.7,.2,1);
}
.workspace--collaboration .workspace-backdrop.is-changing {
  opacity: 0;
  transform: scale(1.025);
}
.workspace--collaboration .workspace-frame {
  position: relative;
  z-index: 1;
}
.workspace--collaboration .selection-band {
  border-color: color-mix(in srgb, var(--field-accent) 34%, transparent);
}
.workspace--collaboration .subnav-bar {
  flex-direction: row-reverse;
  border-color: color-mix(in srgb, var(--field-accent) 30%, transparent);
}
.workspace--collaboration .detail-stage {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding-top: 3px;
  direction: rtl;
}
.workspace--collaboration .detail-copy {
  width: min(100%, 930px);
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding: clamp(10px, 2.2vh, 26px) clamp(4px, .8vw, 12px);
  justify-content: center;
}
.workspace--collaboration .detail-copy h2 { text-shadow: 0 3px 28px rgba(0,0,0,.32); }
.workspace--collaboration .detail-description { max-width: 780px; }
.workspace--collaboration .detail-stage.is-profile-mode { display: block; direction: ltr; }
.workspace--collaboration .detail-stage.is-profile-mode > .detail-copy { display: none; }
.profile-panel[hidden] { display: none !important; }
.profile-panel:not([hidden]) { width: 100%; height: 100%; min-height: 0; }
.profile-panel:focus-visible { outline: 2px solid color-mix(in srgb, var(--field-accent) 74%, white 26%); outline-offset: -3px; }
.about-profile {
  width: 100%; height: 100%; min-height: 0; display: grid; gap: clamp(12px, 2vw, 28px); padding: clamp(8px, 1.1vw, 16px);
  overflow: hidden; border: 1px solid rgba(222, 217, 210, .15); border-radius: 22px;
  background: linear-gradient(112deg, rgba(8,11,16,.64), rgba(9,13,18,.42) 52%, rgba(8,11,15,.68));
  box-shadow: inset 0 1px rgba(255,255,255,.06); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.about-profile--story { grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr); direction: ltr; }
.about-profile--resume { grid-template-columns: minmax(0, 1.55fr) minmax(210px, .58fr); direction: ltr; }
.about-profile--gallery { grid-template-columns: minmax(0, 1.22fr) minmax(235px, .72fr); direction: ltr; }
.profile-photo-gallery { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 62px; gap: 8px; }
.profile-gallery-feature {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; margin: 0; border: 1px solid rgba(241,228,210,.28);
  border-radius: 19px; isolation: isolate; background: #171a1d; box-shadow: 0 15px 40px rgba(0,0,0,.28);
}
.profile-gallery-feature::before, .profile-gallery-feature::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.profile-gallery-feature::before { z-index: -2; background: #171a1d; }
.profile-gallery-feature::after { z-index: 0; background: linear-gradient(0deg,rgba(5,8,12,.76),transparent 36%,rgba(7,10,12,.08)); }
.profile-gallery-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 180ms ease, transform 650ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.profile-gallery-feature > .profile-gallery-backdrop { z-index: -2; object-fit: cover; filter: blur(20px) saturate(.7) brightness(.38); transform: scale(1.12); }
.profile-gallery-feature > .profile-gallery-portrait { z-index: -1; object-fit: contain; object-position: center; filter: saturate(.91) drop-shadow(0 12px 20px rgba(0,0,0,.3)); }
.profile-gallery-feature > .profile-gallery-portrait.is-switching { opacity: .35; transform: scale(1.025); }
.profile-gallery-feature figcaption { position: absolute; z-index: 1; inset-inline: 15px; inset-block-end: 12px; display: grid; gap: 2px; direction: rtl; text-align: right; }
.profile-gallery-feature figcaption span { color: var(--field-accent); font: 7px/1.3 var(--font-en); letter-spacing: .1em; }
.profile-gallery-feature figcaption strong { color: #f5f0e8; font-size: 12px; line-height: 1.5; }
.profile-gallery-corner { position: absolute; inset-block-start: 11px; inset-inline-start: 12px; color: rgba(255,248,235,.8); font: 8px/1 var(--font-en); letter-spacing: .1em; }
.profile-gallery-rail { min-width: 0; display: flex; align-items: stretch; gap: 6px; overflow-x: auto; scrollbar-width: none; direction: rtl; }
.profile-gallery-rail::-webkit-scrollbar { display: none; }
.profile-gallery-thumb {
  flex: 1 1 0; min-width: 0; min-height: 52px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 7px; padding: 4px 6px;
  border: 1px solid rgba(219,224,228,.16); border-radius: 12px; color: #e9e8e3; background: rgba(19,24,31,.74); cursor: pointer; text-align: right;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.profile-gallery-thumb img { width: 34px; height: 42px; object-fit: contain; object-position: center; border-radius: 7px; background: rgba(6,9,13,.72); filter: saturate(.88); }
.profile-gallery-thumb span { overflow: hidden; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; }
.profile-gallery-thumb:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--field-accent) 70%, transparent); }
.profile-gallery-thumb.is-active { border-color: color-mix(in srgb, var(--field-accent) 83%, white 17%); background: color-mix(in srgb, var(--field-accent) 17%, rgba(17,21,28,.88)); box-shadow: 0 0 16px color-mix(in srgb, var(--field-accent) 20%, transparent); }
.profile-gallery-thumb.is-active img { filter: saturate(1); }
.profile-biography, .profile-resume-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; direction: rtl; text-align: right; }
.profile-overline { margin: 0 0 7px; color: var(--field-accent); font: 8px/1.4 var(--font-en); letter-spacing: .13em; }
.about-profile h2 { margin: 0; color: #f6f3ed; font-size: clamp(24px, 3.1vw, 43px); font-weight: 720; line-height: 1.35; letter-spacing: -.045em; }
.about-profile h2 em { color: var(--field-accent); font-style: normal; }
.profile-lead { max-width: 740px; margin: 10px 0 0; color: #cbd1d5; font-size: clamp(10px, .92vw, 13px); line-height: 1.9; }
.profile-story-beats { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: auto; padding-top: 12px; }
.profile-story-beats > div { min-width: 0; display: grid; gap: 3px; padding: 7px 10px; border-inline-start: 1px solid color-mix(in srgb, var(--field-accent) 52%, transparent); background: linear-gradient(90deg, transparent, rgba(255,255,255,.035)); }
.profile-story-beats small { color: var(--field-accent); font: 8px/1.2 var(--font-en); letter-spacing: .08em; }
.profile-story-beats strong { overflow: hidden; color: #e8e8e3; font-size: 9px; font-weight: 560; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.profile-birth-note { width: 100%; display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: #aab5bf; font-size: 9px; }
.profile-birth-note strong { color: #e3e4df; font-weight: 550; }
.profile-contact {
  min-width: 0; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 6px 13px;
  border: 1px solid color-mix(in srgb, var(--field-accent) 55%, transparent); border-radius: 14px; color: #f2efe8;
  background: linear-gradient(110deg, color-mix(in srgb, var(--field-accent) 14%, rgba(15,19,26,.9)), rgba(15,19,26,.76));
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}
.profile-contact:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--field-accent) 88%, white 12%); background: color-mix(in srgb, var(--field-accent) 22%, rgba(15,19,26,.85)); }
.profile-contact-copy { min-width: 0; display: grid; gap: 2px; }
.profile-contact-copy small { color: #aeb9c3; font: 7px/1.3 var(--font-en); letter-spacing: .12em; }
.profile-contact-copy strong { font: 600 13px/1.35 var(--font-fa); letter-spacing: .01em; }
.profile-contact-arrow { color: var(--field-accent); font: 17px/1 var(--font-en); }
.profile-timeline { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.profile-timeline li { min-width: 0; display: grid; grid-template-columns: 57px minmax(0,1fr); gap: 8px; padding: 8px 9px; border-inline-start: 1px solid color-mix(in srgb, var(--field-accent) 58%, transparent); background: rgba(255,255,255,.035); }
.profile-timeline time { color: var(--field-accent); font: 600 9px/1.6 var(--font-fa); white-space: nowrap; }
.profile-timeline li div { min-width: 0; display: grid; gap: 2px; }
.profile-timeline strong { color: #f0eee8; font-size: 9px; font-weight: 620; line-height: 1.55; }
.profile-timeline li span { color: #aeb8c0; font-size: 8px; line-height: 1.5; }
.profile-resume-notes { width: 100%; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr); gap: 12px; margin-top: 9px; }
.profile-resume-notes > div { min-width: 0; padding-inline-start: 9px; border-inline-start: 1px solid rgba(222,222,222,.18); }
.profile-resume-notes small { color: var(--field-accent); font-size: 8px; }
.profile-resume-notes p { margin: 3px 0 0; color: #c3cbd0; font-size: 8px; line-height: 1.6; }
.profile-resume-main .profile-contact { align-self: flex-start; margin-top: auto; }
.profile-record { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; direction: rtl; text-align: right; }
.profile-record-index { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--field-accent); font: 7px/1.4 var(--font-en); letter-spacing: .12em; }
.profile-record-index i { width: 34px; height: 1px; background: color-mix(in srgb, var(--field-accent) 65%, transparent); }
.profile-record-placeholder { position: relative; width: min(100%, 640px); min-height: clamp(150px, 22vh, 220px); overflow: hidden; display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 15px; padding: clamp(12px, 2vw, 20px); border: 1px dashed color-mix(in srgb, var(--field-accent) 46%, rgba(232,232,225,.2)); border-radius: 14px; background: radial-gradient(ellipse at 16% 20%, color-mix(in srgb, var(--field-accent) 16%, transparent), transparent 60%), linear-gradient(135deg, rgba(17,22,28,.92), rgba(9,13,18,.72)); }
.profile-record-paper { width: 48px; height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 9px 7px; border: 1px solid color-mix(in srgb, var(--field-accent) 62%, white 12%); border-radius: 5px 11px 5px 5px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.025)); box-shadow: 0 9px 22px rgba(0,0,0,.24), inset 0 0 20px color-mix(in srgb, var(--field-accent) 9%, transparent); transform: rotate(-5deg); }
.profile-record-paper i { width: 100%; height: 2px; border-radius: 9px; background: color-mix(in srgb, var(--field-accent) 40%, rgba(235,239,241,.48)); }
.profile-record-paper i:nth-child(2) { width: 72%; }
.profile-record-paper i:nth-child(3) { width: 86%; }
.profile-record-placeholder-copy { min-width: 0; display: grid; gap: 5px; direction: rtl; text-align: right; }
.profile-record-placeholder-copy small { color: var(--field-accent); font: 7px/1.4 var(--font-en); letter-spacing: .1em; }
.profile-record-placeholder-copy strong { color: #f4f0e8; font-size: 13px; }
.profile-record-placeholder-copy span { color: #c0c8cf; font-size: 8px; line-height: 1.6; }
.profile-record h2 { margin-top: 9px; font-size: clamp(17px, 1.8vw, 24px); line-height: 1.4; }
.profile-record > p { margin: 4px 0 0; color: #d3d5d2; font-size: 9px; line-height: 1.6; }
.profile-record-note { margin-top: 2px; color: #9eabb7; font-size: 8px; line-height: 1.5; }
.profile-record .profile-contact { width: 100%; margin-top: auto; }

/* Every profile view shares the same full-height left gallery and right-side story panel. */
@media (min-width: 901px) {
  .workspace--collaboration .workspace-frame {
    grid-template-columns: minmax(0, .67fr) minmax(0, 1fr);
    column-gap: clamp(8px, .9vw, 16px);
    direction: ltr;
  }
  .workspace--collaboration .field-grid,
  .workspace--collaboration .selection-band,
  .workspace--collaboration .subnav-bar,
  .workspace--collaboration .detail-stage {
    grid-column: 2;
    min-width: 0;
  }
  .workspace--collaboration .field-grid { direction: rtl; }
  .workspace--collaboration .workspace-backdrop {
    background-image:
      linear-gradient(90deg, rgba(5,8,13,.08) 0%, rgba(5,8,13,.38) 42%, rgba(5,8,13,.84) 100%),
      linear-gradient(0deg, rgba(5,8,12,.56), rgba(5,8,12,.08) 56%, rgba(5,8,12,.24)),
      var(--active-backdrop-image);
  }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .detail-stage.is-profile-mode { position: static; }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-panel:not([hidden]) {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(0, .67fr) minmax(0, 1fr);
    grid-template-rows: var(--frame-fields-row) var(--frame-selection-row) var(--frame-subnav-row) minmax(0, 1fr);
    column-gap: clamp(8px, .9vw, 16px);
    row-gap: var(--frame-row-gap);
    overflow: visible;
    pointer-events: none;
  }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .about-profile--story,
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .about-profile--resume,
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .about-profile--gallery {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    grid-template-columns: inherit;
    grid-template-rows: inherit;
    column-gap: inherit;
    row-gap: inherit;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
  }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-photo-gallery {
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 0;
    margin: clamp(20px, 4vh, 42px) clamp(10px, 1vw, 18px) clamp(8px, 1.5vh, 18px);
    grid-template-rows: minmax(0, 1fr) clamp(58px, 6.4vh, 72px);
    gap: 8px;
    pointer-events: auto;
  }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-biography,
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-resume-main,
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-record {
    grid-column: 2;
    grid-row: 4;
    min-height: 0;
    padding: clamp(14px, 1.7vw, 28px);
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(8,11,16,.5), rgba(8,11,16,.06));
    pointer-events: auto;
  }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-photo-gallery { grid-column: 1; grid-row: 1 / -1; }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-resume-main,
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .profile-record { grid-column: 2; grid-row: 4; }
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .field-grid,
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .selection-band,
  .workspace--collaboration:is(.is-profile-story, .is-profile-resume, .is-profile-gallery) .subnav-bar {
    position: relative;
    z-index: 2;
  }
}

.workspace-frame {
  --frame-fields-row: minmax(150px, 26.5vh);
  --frame-selection-row: minmax(86px, 11.5vh);
  --frame-subnav-row: minmax(48px, 6vh);
  --frame-row-gap: 11px;
  width: min(100%, 1800px); height: 100%; margin-inline: auto;
  display: grid;
  grid-template-rows: var(--frame-fields-row) var(--frame-selection-row) var(--frame-subnav-row) minmax(0, 1fr);
  gap: var(--frame-row-gap);
}
.field-grid {
  min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; padding: 7px;
  border: 1px solid rgba(185, 162, 242, .24); border-radius: 27px;
  background: rgba(24, 29, 42, .82);
  box-shadow: 0 14px 50px rgba(0, 0, 0, .17), inset 0 1px rgba(255,255,255,.04);
}
.field-card {
  --card-accent: #b9a2f2;
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  display: flex; align-items: flex-end; text-align: right;
  padding: clamp(12px, 1.5vw, 24px);
  border: 1px solid rgba(210, 220, 232, .22); border-radius: 21px;
  isolation: isolate; cursor: pointer; text-align: right;
  background: #171c25;
  transition: border-color 260ms ease, transform 340ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease, background 320ms ease;
}
.field-card > img, .field-card::before, .field-card::after { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.field-card > img { object-fit: cover; opacity: .68; filter: saturate(.8); transform: scale(1.015); transition: opacity 360ms ease, transform 850ms cubic-bezier(.2,.7,.2,1), filter 360ms ease; }
.field-card::before {
  z-index: -1; content: "";
  background: linear-gradient(0deg, rgba(4, 7, 10, .94) 0%, rgba(4,7,10,.45) 44%, rgba(4,7,10,.18) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 16%, transparent), transparent 70%);
  transition: background 360ms ease;
}
.field-card::after {
  z-index: -1; content: ""; opacity: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 28%, transparent), transparent 64%);
  transition: opacity 320ms ease;
}
.field-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--card-accent) 72%, transparent); }
.field-card:hover > img { transform: scale(1.07); opacity: .84; }
.field-card.is-active {
  border-color: color-mix(in srgb, var(--card-accent) 94%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 42%, transparent), 0 8px 30px color-mix(in srgb, var(--card-accent) 13%, transparent);
}
.field-card.is-active > img { opacity: .91; filter: saturate(.98); transform: scale(1.055); }
.field-card.is-active::after { opacity: 1; }
.field-number {
  position: absolute; inset-block-start: 12px; inset-inline-start: 13px;
  min-width: 31px; min-height: 25px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.34); border-radius: 99px;
  color: #f3f1eb; background: rgba(8,12,16,.4); backdrop-filter: blur(10px);
  font: 9px/1 var(--font-en); letter-spacing: .07em;
}
.field-icon {
  position: absolute; inset-block-start: 11px; inset-inline-end: 12px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 72%, transparent);
  border-radius: 12px; color: var(--card-accent); background: rgba(8,12,16,.32);
  backdrop-filter: blur(10px);
}
.field-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.field-copy { display: grid; gap: 3px; max-width: 100%; }
.field-name { font-size: clamp(14px, 1.35vw, 20px); font-weight: 700; line-height: 1.55; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.field-caption { color: rgba(241,243,242,.84); font-size: clamp(9px, .82vw, 12px); line-height: 1.55; }
.field-arrow { position: absolute; inset-block-end: 13px; inset-inline-start: 15px; color: var(--card-accent); font: 17px/1 var(--font-en); opacity: .86; transition: transform 260ms ease; }
.field-card:hover .field-arrow, .field-card.is-active .field-arrow { transform: translate(-2px, 2px); }
.selection-band {
  display: grid; grid-template-columns: minmax(90px, .72fr) minmax(0, 3fr) minmax(92px, .68fr);
  align-items: center; gap: clamp(12px, 2vw, 32px); padding: 12px clamp(16px, 2.4vw, 38px);
  border-block: 1px solid rgba(189, 175, 244, .26);
  background: linear-gradient(105deg, rgba(24,25,38,.92), rgba(7,12,17,.94) 62%, rgba(17,25,31,.92));
  direction: ltr; transition: border-color 340ms ease;
}
.selection-way { min-height: 50px; display: flex; flex-direction: column; justify-content: center; gap: 0; padding-inline-start: 20px; border-inline-start: 1px solid rgba(185,162,242,.5); color: #91a2d0; }
.selection-way strong { color: var(--field-accent); font: 500 clamp(28px, 3vw, 43px)/1 var(--font-en); letter-spacing: -.04em; }
.selection-way span, .selection-current > span { color: #88a1bd; font: 7px/1.5 var(--font-en); letter-spacing: .1em; }
.selection-copy { min-width: 0; direction: rtl; }
.selection-overline { color: var(--field-accent); font: 8px/1.5 var(--font-en); letter-spacing: .12em; }
.selection-copy h3 { margin: 1px 0 1px; font-size: clamp(19px, 2.05vw, 30px); line-height: 1.35; font-weight: 700; }
.selection-copy p { overflow: hidden; margin: 0; color: #b8c1ca; font-size: clamp(9px, .95vw, 13px); line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.selection-current { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0; padding-inline-end: 5px; direction: ltr; }
.selection-current strong { color: var(--field-accent); font: 500 clamp(32px, 3.8vw, 55px)/.98 var(--font-en); letter-spacing: -.05em; }
.subnav-bar {
  min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 6px 10px 6px 17px;
  border: 1px solid rgba(185,162,242,.23); border-radius: 19px;
  background: rgba(24,29,41,.8); direction: rtl;
  transition: border-color 340ms ease, box-shadow 340ms ease;
}
.subnav-label { flex: 0 1 auto; min-width: 100px; overflow: hidden; color: #aeb9c5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.field-tabs { min-width: 0; max-width: 72%; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.field-tabs::-webkit-scrollbar { display: none; }
#services .subnav-bar { direction: ltr; }
#services .subnav-bar .subnav-label { direction: rtl; text-align: right; }
#services .subnav-bar .field-tabs { direction: rtl; }
.field-tab {
  position: relative; isolation: isolate; flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 5px 14px; border: 1px solid transparent; border-radius: 99px;
  color: #dce1e2; background: transparent; cursor: pointer; white-space: nowrap;
  font-size: 10px; transition: color 220ms ease, border-color 220ms ease, background 240ms ease, transform 220ms ease, box-shadow 260ms ease;
}
.field-tab-label { position: relative; z-index: 1; }
.field-tab-icon {
  position: relative; flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center;
  perspective: 150px; transform-style: preserve-3d; transition: transform 300ms cubic-bezier(.2,.75,.25,1), filter 300ms ease;
}
.field-tab-icon::before, .field-tab-icon::after { position: absolute; inset: 1px; border-radius: 9px; content: ""; pointer-events: none; transform: rotateX(11deg) rotateY(-12deg) rotateZ(-6deg); transform-style: preserve-3d; }
.field-tab-icon::before {
  border: 1px solid rgba(255,255,255,.45);
  background: radial-gradient(ellipse at 25% 13%,rgba(255,255,255,.53),transparent 29%), linear-gradient(146deg,rgba(255,255,255,.27),color-mix(in srgb,var(--tab-accent) 22%,rgba(34,40,58,.72)) 47%,rgba(10,15,25,.9));
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.4), inset -2px -3px 5px rgba(0,0,0,.38), 0 4px 6px rgba(0,0,0,.42), 0 0 15px color-mix(in srgb,var(--tab-accent) 30%,transparent);
}
.field-tab-icon::after {
  inset: 3px; border: 1px solid rgba(255,255,255,.24); border-radius: 7px;
  background: linear-gradient(130deg,rgba(255,255,255,.19),transparent 34% 69%,color-mix(in srgb,var(--tab-accent) 18%,transparent));
  box-shadow: inset 0 1px rgba(255,255,255,.28); transform: rotateX(11deg) rotateY(-12deg) rotateZ(-6deg) translateZ(2px);
}
.field-tab-symbol { position: relative; z-index: 1; width: 29px; height: 29px; overflow: visible; transform: translateZ(7px) rotateX(-2deg) scale(1.04); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); transition: transform 300ms cubic-bezier(.2,.75,.25,1), filter 300ms ease; }
.field-tab-symbol use { width: 100%; height: 100%; }
.field-tab-icon-glint { position: absolute; z-index: 2; inset: 2px; border-radius: 8px; pointer-events: none; background: linear-gradient(128deg,rgba(255,255,255,.42),transparent 24% 100%); clip-path: polygon(0 0,100% 0,53% 21%,18% 65%); transform: translateZ(10px); }
.field-tab-icon-bloom { position: absolute; z-index: -1; inset: 7px 3px -2px; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse,color-mix(in srgb,var(--tab-accent) 76%,transparent),transparent 72%); filter: blur(6px); opacity: .52; transform: translateZ(-3px); transition: opacity 260ms ease, filter 260ms ease; }
.field-tab:hover { color: #fff; background: color-mix(in srgb,var(--tab-accent) 9%,rgba(255,255,255,.04)); }
.field-tab:hover .field-tab-icon { transform: translateY(-2px) rotateX(4deg); filter: saturate(1.14); }
.field-tab:hover .field-tab-icon-bloom { opacity: .85; filter: blur(8px); }
.field-tab.is-active { border-color: color-mix(in srgb, var(--tab-accent) 70%, transparent); color: #fff; background: color-mix(in srgb, var(--tab-accent) 18%, rgba(34,34,49,.72)); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 0 22px color-mix(in srgb, var(--tab-accent) 15%, transparent); }
.field-tab.is-active .field-tab-icon { transform: translateY(-1px) rotateX(5deg); filter: saturate(1.12); }
.field-tab.is-active .field-tab-icon::before { border-color: color-mix(in srgb,var(--tab-accent) 82%,white 18%); box-shadow: inset 1px 1px 1px rgba(255,255,255,.55), inset -2px -3px 5px rgba(0,0,0,.3), 0 5px 9px rgba(0,0,0,.42), 0 0 17px color-mix(in srgb,var(--tab-accent) 48%,transparent); }
.field-tab.is-active .field-tab-symbol { transform: translateZ(9px) rotateX(-2deg) scale(1.1); filter: drop-shadow(0 3px 2px rgba(0,0,0,.66)) drop-shadow(0 0 3px color-mix(in srgb,var(--tab-accent) 52%,transparent)); }
.field-tab.is-active .field-tab-icon-bloom { opacity: 1; filter: blur(8px); }
.field-tab:focus-visible { outline: 2px solid color-mix(in srgb,var(--tab-accent) 80%,white); outline-offset: 2px; }
.detail-stage {
  min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4.5vw, 68px); padding-top: 3px; direction: ltr;
}
.detail-visual {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; margin: 0;
  border: 1px solid rgba(203,213,226,.22); border-radius: 25px; isolation: isolate; background: #121820;
  box-shadow: 0 20px 70px rgba(0,0,0,.2);
}
.detail-visual img, .detail-visual-shade { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.detail-visual img { object-fit: cover; object-position: center; filter: saturate(.82); transform: scale(1.01); transition: transform 850ms cubic-bezier(.2,.7,.2,1), opacity 260ms ease, filter 360ms ease; }
.detail-visual.is-changing img { opacity: .25; }
.detail-visual.is-changing img { transform: scale(1.04); }
.detail-visual-shade {
  z-index: -1; background: linear-gradient(0deg, rgba(3,7,11,.82), rgba(3,7,11,.05) 55%, rgba(3,7,11,.13)),
    linear-gradient(135deg, color-mix(in srgb, var(--field-accent) 17%, transparent), transparent 60%);
}
.detail-visual figcaption { position: absolute; inset-inline: 20px; inset-block-end: 16px; display: grid; gap: 2px; }
.detail-visual figcaption span { color: var(--field-accent); font: 8px/1.5 var(--font-en); letter-spacing: .11em; }
.detail-visual figcaption strong { font-size: 15px; line-height: 1.5; }
.visual-corner { position: absolute; inset-inline-start: 16px; inset-block-start: 14px; color: var(--field-accent); font: 17px/1 var(--font-en); }
.detail-copy {
  min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  padding: 4px 2px 3px; direction: rtl; text-align: right;
}
.detail-kicker { margin: 0 0 9px; color: var(--field-accent); font: 9px/1.4 var(--font-en); letter-spacing: .12em; }
.detail-copy h2 { margin: 0; font-size: clamp(30px, 4.2vw, 59px); font-weight: 700; line-height: 1.28; letter-spacing: -.045em; }
.detail-copy h2 em { color: var(--field-accent); font-style: normal; }
.detail-description { max-width: 690px; margin: 10px 0 0; color: #bdc7d0; font-size: clamp(11px, 1vw, 14px); line-height: 1.85; }
.detail-lower {
  width: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(140px, .8fr);
  gap: clamp(12px, 2vw, 26px); margin-top: auto; padding-block: 12px 7px;
  border-top: 1px solid rgba(189, 201, 214, .14);
}
.deliverables h3 { margin: 0 0 7px; display: flex; align-items: center; gap: 8px; color: #edf0ee; font-size: 11px; font-weight: 650; }
.deliverables h3 span { color: var(--field-accent); font: 15px/1 var(--font-en); }
.deliverables ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 14px; list-style: none; }
.deliverables li { position: relative; padding-inline-start: 13px; color: #c9d0d4; font-size: 10px; line-height: 1.65; }
.deliverables li::before { position: absolute; inset-inline-start: 1px; top: .65em; width: 4px; height: 4px; border-radius: 1px; content: ""; background: var(--field-accent); }
.detail-outcome { align-self: center; padding-inline-start: 15px; border-inline-start: 1px solid color-mix(in srgb, var(--field-accent) 48%, transparent); }
.detail-outcome span { color: #93a3b4; font: 7px/1.5 var(--font-en); letter-spacing: .1em; }
.detail-outcome p { margin: 4px 0 0; color: #e3e8e8; font-size: 10px; line-height: 1.65; }
.detail-action {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 21px;
  padding: 4px 18px; border: 1px solid color-mix(in srgb, var(--field-accent) 68%, transparent); border-radius: 999px;
  color: #f6f4ef; background: color-mix(in srgb, var(--field-accent) 18%, rgba(14,18,27,.85));
  font-size: 10px; font-weight: 600; transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.detail-action > span:last-child { color: var(--field-accent); font: 16px/1 var(--font-en); }
.detail-action:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--field-accent) 34%, rgba(14,18,27,.85)); }

.chapter-dock {
  position: fixed; z-index: 50; inset-inline: 50% auto; inset-block-end: 12px; transform: translateX(50%);
  width: min(950px, calc(100% - 28px)); min-height: var(--dock-height);
  display: grid; grid-template-columns: 170px minmax(0,1fr); align-items: stretch; gap: 8px;
  padding: 6px; border: 1px solid rgba(190,178,238,.28); border-radius: 22px;
  background: rgba(15,19,28,.92); box-shadow: 0 15px 52px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.dock-signature {
  min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-inline-end: 1px solid rgba(205,212,221,.12); border-radius: 15px;
}
.dock-brand-mark { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 12px; }
.dock-name { display: grid; line-height: 1.05; }
.dock-name strong { color: #f3f1ec; font: 600 17px/1.05 var(--font-en); letter-spacing: -.07em; }
.dock-name strong span { color: #b9a2f2; }
.dock-name small { margin-top: 3px; color: #aeb7c1; font: 600 8px/1.2 var(--font-fa); letter-spacing: 0; white-space: nowrap; }
.chapter-dock-links { min-width: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.chapter-dock-link {
  --chapter-accent: #b9a2f2;
  position: relative; isolation: isolate; min-width: 0; min-height: 63px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 8px 12px;
  border: 1px solid rgba(213,219,224,.2); border-radius: 14px;
  transition: transform 220ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.chapter-dock-link > img, .dock-shade { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.chapter-dock-link > img { object-fit: cover; opacity: .34; transition: opacity 260ms ease, transform 650ms ease; }
.dock-shade { z-index: -1; background: linear-gradient(0deg, rgba(4,7,11,.9), rgba(4,7,11,.2)), linear-gradient(125deg, color-mix(in srgb, var(--chapter-accent) 18%, transparent), transparent 72%); transition: background 260ms ease; }
.dock-number { position: absolute; inset-block-start: 6px; inset-inline-start: 8px; color: rgba(244,241,233,.72); font: 7px/1 var(--font-en); }
.dock-copy { display: grid; gap: 1px; min-width: 0; }
.dock-copy small { color: rgba(234,238,238,.62); font: 7px/1.3 var(--font-en); letter-spacing: .1em; }
.dock-copy strong { max-width: 100%; overflow: hidden; color: rgba(244,241,233,.92); font-size: 10px; font-weight: 550; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.dock-arrow { position: absolute; inset-inline-end: 9px; inset-block-end: 8px; color: var(--chapter-accent); font: 11px/1 var(--font-en); }
.chapter-dock-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--chapter-accent) 75%, transparent); }
.chapter-dock-link:hover > img { opacity: .58; transform: scale(1.06); }
.chapter-dock-link.is-active { border-color: color-mix(in srgb, var(--chapter-accent) 92%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chapter-accent) 46%, transparent), 0 5px 20px color-mix(in srgb, var(--chapter-accent) 16%, transparent); }
.chapter-dock-link.is-active > img { opacity: .66; transform: scale(1.06); }
.chapter-dock-link.is-active .dock-shade { background: linear-gradient(0deg, rgba(4,7,11,.76), rgba(4,7,11,.12)), linear-gradient(125deg, color-mix(in srgb, var(--chapter-accent) 30%, transparent), transparent 78%); }
.chapter-dock-link.is-active .dock-copy strong { color: #fff; }
.noscript-note {
  position: fixed; z-index: 100; inset-inline: 12px; inset-block-start: 12px; margin: 0; padding: 12px 16px;
  border-radius: 12px; background: #202635; color: #fff;
}
.motion-ready .detail-copy, .motion-ready .detail-visual { animation: detail-enter 420ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes detail-enter { from { opacity: .65; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-height: 820px) and (min-width: 761px) {
  :root { --dock-height: 68px; }
  .workspace { padding-top: 10px; padding-bottom: calc(var(--dock-height) + 27px); }
  .workspace-frame {
    --frame-fields-row: minmax(130px, 23vh);
    --frame-selection-row: minmax(88px, 11.5vh);
    --frame-subnav-row: minmax(43px, 5.5vh);
    --frame-row-gap: 8px;
  }
  .field-grid { gap: 7px; padding: 6px; border-radius: 22px; }
  .field-card { padding: 12px; border-radius: 17px; }
  .field-name { font-size: clamp(13px, 1.25vw, 17px); }
  .field-caption { font-size: 9px; }
  .selection-band { padding-block: 8px; }
  .selection-copy h3 { font-size: clamp(18px, 1.9vw, 25px); }
  .selection-copy p { display: none; }
  .detail-stage { gap: 26px; }
  .detail-copy h2 { font-size: clamp(28px, 3.7vw, 46px); }
  .detail-description { margin-top: 6px; font-size: 11px; line-height: 1.7; }
  .detail-lower { padding-block: 8px 5px; }
  .detail-action { min-height: 34px; }
}
@media (max-width: 760px) {
  :root { --dock-height: 75px; }
  .workspace--hero { background-position: 67% center; }
  .workspace { padding: 10px 9px calc(var(--dock-height) + 31px); }
  .workspace-frame {
    --frame-fields-row: minmax(0, 1.13fr);
    --frame-selection-row: minmax(68px, .55fr);
    --frame-subnav-row: minmax(41px, .35fr);
    --frame-row-gap: 8px;
  }
  .field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 6px; padding: 5px; border-radius: 19px; }
  .field-card { padding: 9px 10px; border-radius: 14px; }
  .field-card > img { opacity: .78; }
  .field-number { inset-block-start: 6px; inset-inline-start: 7px; min-width: 25px; min-height: 20px; font-size: 7px; }
  .field-icon { inset-block-start: 6px; inset-inline-end: 7px; width: 26px; height: 26px; border-radius: 8px; }
  .field-icon svg { width: 14px; height: 14px; }
  .field-copy { gap: 1px; }
  .field-name { font-size: clamp(11px, 3vw, 14px); line-height: 1.45; }
  .field-caption { max-width: 100%; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .field-arrow { inset-inline-start: 8px; inset-block-end: 7px; font-size: 12px; }
  .selection-band { grid-template-columns: 40px minmax(0,1fr) 50px; gap: 8px; padding: 6px 9px; }
  .selection-way { min-height: 39px; padding-inline-start: 7px; }
  .selection-way strong { font-size: 23px; }
  .selection-way span, .selection-current > span { font-size: 5px; }
  .selection-copy h3 { font-size: clamp(14px, 4vw, 19px); }
  .selection-copy p { font-size: 8px; }
  .selection-overline { font-size: 6px; }
  .selection-current strong { font-size: 27px; }
  .subnav-bar { gap: 6px; padding: 4px 6px; border-radius: 14px; }
  .subnav-label { display: none; }
  .field-tabs { max-width: 100%; width: 100%; gap: 3px; }
  .field-tab { min-height: 39px; gap: 6px; padding: 3px 10px; font-size: 9px; }
  .field-tab-icon { flex-basis: 25px; width: 25px; height: 25px; }
  .field-tab-symbol { width: 22px; height: 22px; }
  .detail-stage { grid-template-columns: 1fr; grid-template-rows: minmax(82px, .38fr) minmax(0, 1.62fr); gap: 7px; padding-top: 0; }
  .detail-visual { border-radius: 15px; }
  .detail-visual img { object-position: center 46%; }
  .detail-visual figcaption { inset-inline: 11px; inset-block-end: 6px; }
  .detail-visual figcaption span { font-size: 6px; }
  .detail-visual figcaption strong { font-size: 10px; }
  .visual-corner { inset-inline-start: 8px; inset-block-start: 7px; font-size: 12px; }
  .detail-copy { padding: 1px 2px 0; }
  .detail-kicker { margin-bottom: 2px; font-size: 6px; }
  .detail-copy h2 { font-size: clamp(20px, 6vw, 27px); line-height: 1.24; }
  .detail-description { margin-top: 3px; font-size: 9px; line-height: 1.48; }
  .detail-lower { grid-template-columns: minmax(0,1.35fr) minmax(75px,.75fr); gap: 7px; padding-block: 5px 3px; }
  .deliverables h3 { gap: 4px; margin-bottom: 2px; font-size: 8px; }
  .deliverables h3 span { font-size: 11px; }
  .deliverables ul { gap: 2px 6px; }
  .deliverables li { padding-inline-start: 8px; font-size: 7px; line-height: 1.45; }
  .deliverables li::before { width: 3px; height: 3px; }
  .detail-outcome { padding-inline-start: 6px; }
  .detail-outcome span { font-size: 5px; }
  .detail-outcome p { margin-top: 1px; font-size: 7px; line-height: 1.45; }
  .detail-action { min-height: 27px; margin-top: 2px; gap: 12px; padding: 2px 12px; font-size: 8px; }
  .detail-action > span:last-child { font-size: 12px; }
  .chapter-dock { inset-block-end: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 18px); min-height: 62px; grid-template-columns: 1fr; gap: 0; padding: 5px; border-radius: 18px; }
  .dock-signature { display: none; }
  .chapter-dock-links { gap: 4px; }
  .chapter-dock-link { min-height: 49px; justify-content: center; padding: 6px 5px; border-radius: 12px; }
  .dock-number { inset-block-start: 4px; inset-inline-start: 5px; font-size: 6px; }
  .dock-copy { width: 100%; justify-items: center; }
  .dock-copy small { display: none; }
  .dock-copy strong { max-width: 90%; font-size: clamp(8px,2.8vw,10px); }
  .dock-arrow { inset-inline-end: 5px; inset-block-end: auto; inset-block-start: 4px; font-size: 8px; }
}
@media (max-width: 380px) {
  .workspace { padding-inline: 7px; padding-bottom: calc(var(--dock-height) + 26px); }
  .field-grid { gap: 5px; padding: 4px; }
  .field-card { padding-inline: 8px; }
  .field-name { font-size: 10px; }
  .field-caption { display: none; }
  .selection-band { grid-template-columns: 34px minmax(0,1fr) 43px; gap: 5px; padding-inline: 6px; }
  .selection-way strong { font-size: 20px; }
  .selection-current strong { font-size: 23px; }
  .selection-copy h3 { font-size: 13px; }
  .detail-stage { grid-template-rows: minmax(65px,.32fr) minmax(0,1.68fr); }
  .detail-lower { grid-template-columns: 1fr; }
  .detail-outcome { display: none; }
}
@media (max-height: 720px) and (max-width: 760px) {
  :root { --dock-height: 65px; }
  .workspace { padding-top: 7px; padding-bottom: calc(var(--dock-height) + 26px); }
  .workspace-frame {
    --frame-fields-row: minmax(0,.98fr);
    --frame-selection-row: minmax(58px,.46fr);
    --frame-subnav-row: minmax(36px,.3fr);
    --frame-row-gap: 6px;
  }
  .field-card { padding-block: 6px; }
  .field-number { min-height: 17px; }
  .field-icon { width: 22px; height: 22px; }
  .selection-way { min-height: 31px; }
  .selection-way strong { font-size: 20px; }
  .selection-current strong { font-size: 23px; }
  .field-tab { min-height: 36px; }
  .field-tab-icon { flex-basis: 23px; width: 23px; height: 23px; }
  .field-tab-symbol { width: 22px; height: 22px; }
  .detail-stage { grid-template-rows: minmax(60px,.3fr) minmax(0,1.7fr); gap: 5px; }
  .detail-copy h2 { font-size: 20px; }
  .detail-description { font-size: 8px; }
  .detail-lower { padding-block: 3px 1px; }
  .detail-action { min-height: 24px; margin-top: 1px; }
  .chapter-dock-link { min-height: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Immersive home: the four image fields drive one full-bleed hero. */
@media (max-width: 760px) {
  .workspace--hero.has-subnav .workspace-frame {
    grid-template-rows: minmax(0, 1.13fr) minmax(68px, .55fr) minmax(41px, .35fr) minmax(0, 1.55fr);
    gap: 8px;
  }
  .workspace--hero:not(.has-subnav) .workspace-frame {
    grid-template-rows: minmax(0, 1.13fr) minmax(68px, .55fr) minmax(0, 1.55fr);
    gap: 8px;
  }
  .workspace--hero .detail-stage { padding-top: 0; }
  .workspace--hero .detail-copy {
    width: 100%;
    max-width: none;
    padding: 1px 2px 0;
  }
  .workspace--hero .detail-copy h2 {
    font-size: clamp(21px, 6vw, 28px);
    text-shadow:
      var(--hero-specular-x,0px) var(--hero-specular-y,-1px) 0 rgba(255,255,255,.52),
      0 1px 0 color-mix(in srgb,var(--field-accent) 66%,#f3f1eb 34%),
      0 2px 0 color-mix(in srgb,var(--field-accent) 42%,#252033 58%),
      0 8px 15px rgba(0,0,0,.36),
      0 0 18px color-mix(in srgb,var(--field-accent) 18%,transparent);
  }
  .workspace--hero .detail-description { max-width: 100%; font-size: 9px; }
  .workspace--hero .detail-lower {
    grid-template-columns: minmax(0, 1.25fr) minmax(78px, .75fr);
    gap: 7px;
    padding-block: 5px 3px;
  }
  .workspace--hero .detail-outcome { display: block; }
}
@media (max-width: 380px) {
  .workspace--hero.has-subnav .workspace-frame { grid-template-rows: minmax(0, .82fr) minmax(62px, .45fr) minmax(36px, .25fr) minmax(0, 1.18fr); }
  .workspace--hero:not(.has-subnav) .workspace-frame { grid-template-rows: minmax(0, .82fr) minmax(62px, .45fr) minmax(0, 1.18fr); }
  .workspace--hero .detail-lower { grid-template-columns: 1fr; }
  .workspace--hero .detail-outcome { display: none; }
}
@media (max-height: 720px) and (max-width: 760px) {
  .workspace--hero.has-subnav .workspace-frame { grid-template-rows: minmax(0, .98fr) minmax(58px, .46fr) minmax(36px, .3fr) minmax(0, 1.7fr); }
  .workspace--hero:not(.has-subnav) .workspace-frame { grid-template-rows: minmax(0, .98fr) minmax(58px, .46fr) minmax(0, 1.7fr); }
  .workspace--hero .detail-copy h2 {
    font-size: clamp(19px, 5.6vw, 24px);
    text-shadow:
      var(--hero-specular-x,0px) var(--hero-specular-y,-1px) 0 rgba(255,255,255,.5),
      0 1px 0 color-mix(in srgb,var(--field-accent) 58%,#f3f1eb 42%),
      0 2px 0 rgba(27,22,38,.78),
      0 7px 12px rgba(0,0,0,.34);
  }
  .workspace--hero .detail-lower { padding-block: 3px 1px; }
}

@media (max-width: 760px) {
  .workspace--portfolio .workspace-frame {
    grid-template-rows: minmax(0, .86fr) minmax(38px, .24fr) minmax(0, 1.14fr);
    gap: 8px;
  }
  .workspace--portfolio .detail-stage { padding-top: 0; }
  .workspace--portfolio .detail-copy {
    width: 100%;
    max-width: none;
    padding: 1px 2px 0;
  }
  .workspace--portfolio .detail-copy h2 { font-size: clamp(21px, 6vw, 28px); }
  .workspace--portfolio .detail-description { max-width: 100%; font-size: 9px; }
  .workspace--portfolio .detail-lower {
    grid-template-columns: minmax(0, 1.25fr) minmax(78px, .75fr);
    gap: 7px;
    padding-block: 5px 3px;
  }
  .workspace--portfolio .detail-outcome { display: block; }
}
@media (max-width: 760px) {
  .workspace--collaboration .detail-stage { padding-top: 0; }
  .workspace--collaboration .detail-copy {
    width: 100%;
    max-width: none;
    padding: 1px 2px 0;
  }
  .workspace--collaboration .detail-copy h2 { font-size: clamp(21px, 6vw, 28px); }
  .workspace--collaboration .detail-description { max-width: 100%; font-size: 9px; }
  .workspace--collaboration .detail-stage.is-profile-mode { height: 100%; min-height: 0; overflow: hidden; }
  .profile-panel:not([hidden]) {
    height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--field-accent) 60%, transparent) transparent;
    border-radius: 15px; -webkit-overflow-scrolling: touch;
  }
  .profile-panel:not([hidden])::-webkit-scrollbar { width: 4px; }
  .profile-panel:not([hidden])::-webkit-scrollbar-thumb { border-radius: 99px; background: color-mix(in srgb, var(--field-accent) 58%, transparent); }
  .about-profile {
    width: 100%; height: auto; min-height: 100%; grid-template-columns: minmax(0,1fr); gap: 12px;
    padding: 8px; overflow: visible; border-radius: 14px; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .about-profile--story, .about-profile--resume, .about-profile--gallery { grid-template-columns: minmax(0,1fr); }
  .profile-photo-gallery { grid-template-rows: minmax(190px, 52vw) 48px; gap: 6px; }
  .profile-gallery-feature { border-radius: 13px; }
  .profile-gallery-feature figcaption { inset-inline: 10px; inset-block-end: 8px; }
  .profile-gallery-feature figcaption strong { font-size: 10px; }
  .profile-gallery-thumb { flex: 0 0 82px; min-height: 44px; grid-template-columns: 25px minmax(0,1fr); gap: 5px; padding: 3px 4px; border-radius: 10px; }
  .profile-gallery-thumb img { width: 25px; height: 34px; border-radius: 6px; }
  .profile-gallery-thumb span { font-size: 7px; }
  .profile-biography, .profile-resume-main { min-height: 250px; justify-content: flex-start; padding: 2px 2px 4px; }
  .profile-overline { margin-bottom: 5px; font-size: 7px; }
  .about-profile h2 { font-size: clamp(22px, 6.8vw, 30px); line-height: 1.45; }
  .profile-lead { margin-top: 7px; font-size: 10px; line-height: 1.9; }
  .profile-story-beats { gap: 5px; margin-top: 11px; padding-top: 0; }
  .profile-story-beats > div { gap: 2px; padding: 6px 5px; }
  .profile-story-beats small { font-size: 7px; }
  .profile-story-beats strong { font-size: 8px; white-space: normal; }
  .profile-birth-note { margin-top: 7px; font-size: 8px; }
  .profile-contact { min-height: 44px; margin-top: 8px; padding: 6px 10px; border-radius: 12px; }
  .profile-contact-copy strong { font-size: 12px; }
  .profile-timeline { gap: 6px; margin-top: 8px; }
  .profile-timeline li { grid-template-columns: 49px minmax(0,1fr); gap: 5px; padding: 6px; }
  .profile-timeline time { font-size: 8px; }
  .profile-timeline strong { font-size: 8px; }
  .profile-timeline li span { font-size: 7px; }
  .profile-resume-notes { grid-template-columns: 1fr; gap: 6px; margin-top: 7px; }
  .profile-resume-notes > div { padding-inline-start: 7px; }
  .profile-resume-notes small, .profile-resume-notes p { font-size: 8px; }
  .profile-resume-main .profile-contact { align-self: stretch; margin-top: 9px; }
  .profile-record { min-height: 230px; }
  .profile-record-index { margin-bottom: 6px; }
  .profile-record-placeholder { min-height: clamp(112px, 34vw, 155px); grid-template-columns: 45px minmax(0,1fr); gap: 10px; padding: 10px; }
  .profile-record-paper { width: 40px; height: 54px; }
  .profile-record h2 { margin-top: 7px; font-size: 19px; }
  .profile-record > p { font-size: 8px; }
  .profile-record-note { max-width: 100%; font-size: 7px; line-height: 1.55; }
  .profile-record .profile-contact { margin-top: 9px; }
}
@media (max-width: 380px) {
  .about-profile { gap: 9px; padding: 7px; }
  .profile-photo-gallery { grid-template-rows: 176px 46px; }
  .profile-gallery-thumb { flex-basis: 76px; }
  .profile-biography, .profile-resume-main { min-height: 230px; }
  .profile-story-beats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-story-beats strong { font-size: 7px; }
  .profile-timeline { grid-template-columns: minmax(0,1fr); }
  .profile-timeline li { grid-template-columns: 56px minmax(0,1fr); }
  .profile-record { min-height: 215px; }
  .workspace--portfolio .workspace-frame { grid-template-rows: minmax(0, .82fr) minmax(36px, .23fr) minmax(0, 1.18fr); }
  .workspace--portfolio .detail-lower { grid-template-columns: 1fr; }
  .workspace--portfolio .detail-outcome { display: none; }
}
@media (max-height: 720px) and (max-width: 760px) {
  .workspace--portfolio .workspace-frame { grid-template-rows: minmax(0, .78fr) minmax(34px, .22fr) minmax(0, 1.2fr); }
  .workspace--portfolio .detail-copy h2 { font-size: clamp(19px, 5.6vw, 24px); }
  .workspace--portfolio .detail-lower { padding-block: 3px 1px; }
}

/* A small, original glass-and-light companion for the four chapter explorer. */
#site-companion {
  --companion-accent: #b9a2f2;
  --gaze-x: 0px;
  --gaze-y: 0px;
  position: fixed; z-index: 82; inset: 0 auto auto 0; width: 78px; height: 78px;
  pointer-events: none; opacity: 0; visibility: hidden;
  transform: translate3d(var(--companion-x, -120px), var(--companion-y, -120px), 0);
  transform-origin: 50% 60%; will-change: transform;
  transition: opacity 220ms ease, visibility 220ms ease;
}
#site-companion.is-ready { opacity: 1; visibility: visible; }
#site-companion.is-flying { z-index: 84; }
.companion-trigger {
  position: absolute; inset: 0; display: grid; place-items: center; width: 78px; height: 78px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  pointer-events: auto; touch-action: manipulation;
}
.companion-trigger:focus-visible {
  outline: 2px solid var(--companion-accent); outline-offset: -1px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--companion-accent) 60%, transparent));
}
.companion-art { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 7px 8px rgba(0,0,0,.32)); }
.companion-creature { transform-origin: 50% 52%; animation: companion-hover 4.8s ease-in-out infinite; }
.companion-fin { transform-box: fill-box; transform-origin: 50% 75%; }
.companion-fin-left { animation: companion-fin-breathe 5.2s ease-in-out infinite; }
.companion-fin-right { animation: companion-fin-breathe 5.2s 1.1s ease-in-out infinite; }
.companion-eyes { transform: translate(var(--gaze-x),var(--gaze-y)); transform-box: fill-box; transform-origin: center; animation: companion-blink 7.2s 1.4s infinite; transition: transform 210ms cubic-bezier(.2,.7,.25,1); }
.companion-pupil { transition: cx 180ms ease, cy 180ms ease; }
.companion-mouth-open { display: none; }
#site-companion.is-speaking .companion-mouth-smile { display: none; }
#site-companion.is-speaking .companion-mouth-open { display: block; animation: companion-talk 320ms ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.companion-trail { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transition: opacity 160ms ease; }
#site-companion.is-flying .companion-trail { opacity: 1; animation: companion-trail-shimmer 500ms ease-in-out infinite alternate; }
#site-companion[data-flight-direction="left"] .companion-trail { transform: scaleX(-1); }
#site-companion.is-flying .companion-creature { animation: companion-flight-pose 420ms ease-in-out infinite alternate; }
#site-companion.is-flying .companion-floor-shadow { opacity: .14; }
#site-companion.is-noticed .companion-fin-right, #site-companion.react-wave .companion-fin-right { animation: companion-fin-wave 620ms cubic-bezier(.2,.7,.25,1) 1; }
#site-companion.react-peek .companion-creature { animation: companion-peek 560ms cubic-bezier(.2,.7,.25,1) 1; }
#site-companion.react-wiggle .companion-creature { animation: companion-wiggle 570ms cubic-bezier(.2,.7,.25,1) 1; }
#site-companion.react-twirl .companion-creature { animation: companion-twirl 680ms cubic-bezier(.2,.7,.25,1) 1; }
#site-companion.react-surprise .companion-eyes { animation: companion-eyes-pop 460ms ease-out 1; }
#site-companion.is-landed .companion-creature { animation: companion-land 440ms cubic-bezier(.2,.8,.25,1) 1; }
.companion-bubble {
  position: absolute; z-index: 2; left: -5px; bottom: calc(100% + 5px); width: min(224px,calc(100vw - 24px));
  padding: 9px 12px 10px; border: 1px solid color-mix(in srgb,var(--companion-accent) 52%,rgba(245,237,220,.24));
  border-radius: 15px 15px 15px 5px; color: #f8f5ed;
  background: linear-gradient(145deg,rgba(34,39,55,.96),rgba(11,16,24,.96));
  box-shadow: 0 10px 32px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.1), 0 0 19px color-mix(in srgb,var(--companion-accent) 16%,transparent);
  font-size: 11px; font-weight: 500; line-height: 1.75; text-align: right; direction: rtl;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(.97); transform-origin: var(--bubble-tail-x,50%) 100%;
  transition: opacity 190ms ease, transform 230ms cubic-bezier(.2,.7,.25,1), visibility 190ms ease;
}
.companion-bubble::after {
  position: absolute; left: calc(var(--bubble-tail-x,17px) - 4px); inset-block-end: -5px; width: 9px; height: 9px;
  border-inline-end: 1px solid color-mix(in srgb,var(--companion-accent) 52%,rgba(245,237,220,.24));
  border-block-end: 1px solid color-mix(in srgb,var(--companion-accent) 52%,rgba(245,237,220,.24));
  background: #151a27; content: ""; transform: rotate(45deg);
}
.companion-bubble.bubble-below { top: calc(100% + 5px); bottom: auto; border-radius: 5px 15px 15px 15px; transform-origin: var(--bubble-tail-x,50%) 0; }
.companion-bubble.bubble-below::after { inset-block-start: -5px; inset-block-end: auto; transform: rotate(225deg); }
.companion-bubble.bubble-side-right { border-radius: 5px 15px 15px 15px; transform-origin: 0 var(--bubble-tail-y,50%); }
.companion-bubble.bubble-side-right::after {
  left: -8px; right: auto; top: var(--bubble-tail-y,50%); bottom: auto; width: 10px; height: 14px;
  border: 0; border-radius: 2px; background: #222737; clip-path: polygon(100% 0,100% 100%,0 50%);
  box-shadow: -3px 0 7px rgba(0,0,0,.16); transform: translateY(-50%);
}
.companion-bubble.bubble-side-left { border-radius: 15px 5px 15px 15px; transform-origin: 100% var(--bubble-tail-y,50%); }
.companion-bubble.bubble-side-left::after {
  left: auto; right: -8px; top: var(--bubble-tail-y,50%); bottom: auto; width: 10px; height: 14px;
  border: 0; border-radius: 2px; background: #171c29; clip-path: polygon(0 0,100% 50%,0 100%);
  box-shadow: 3px 0 7px rgba(0,0,0,.16); transform: translateY(-50%);
}
#site-companion.has-line .companion-bubble { opacity: 1; visibility: visible; transform: scale(1); }
@keyframes companion-hover { 0%,100% { transform: translateY(0) rotate(-1deg); } 48% { transform: translateY(-2.2px) rotate(1deg); } }
@keyframes companion-fin-breathe { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-5deg); } }
@keyframes companion-fin-wave { 0%,100% { transform: rotate(0); } 28% { transform: rotate(-24deg); } 62% { transform: rotate(16deg); } }
@keyframes companion-flight-pose { from { transform: translateY(1px) rotate(-3deg) scaleX(.98); } to { transform: translateY(-2px) rotate(4deg) scaleX(1.035); } }
@keyframes companion-trail-shimmer { from { opacity: .55; } to { opacity: 1; } }
@keyframes companion-talk { from { transform: scaleY(.82); } to { transform: scaleY(1.08); } }
@keyframes companion-blink { 0%,4.5%,5.1%,100% { transform: translate(var(--gaze-x),var(--gaze-y)) scaleY(1); } 4.8%,5.4% { transform: translate(var(--gaze-x),var(--gaze-y)) scaleY(.06); } }
@keyframes companion-peek { 0%,100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-4px) rotate(-7deg); } 72% { transform: translateY(1px) rotate(3deg); } }
@keyframes companion-wiggle { 0%,100% { transform: rotate(0); } 22% { transform: rotate(-8deg); } 48% { transform: rotate(7deg); } 72% { transform: rotate(-4deg); } }
@keyframes companion-twirl { 0% { transform: rotate(0) scale(1); } 52% { transform: rotate(188deg) scale(1.07); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes companion-eyes-pop { 0%,100% { transform: translate(var(--gaze-x),var(--gaze-y)) scale(1); } 40% { transform: translate(var(--gaze-x),var(--gaze-y)) scale(1.19); } }
@keyframes companion-land { 0% { transform: translateY(-3px) scale(1.04,.95); } 58% { transform: translateY(1px) scale(.98,1.03); } 100% { transform: translateY(0) scale(1); } }
@media (max-width: 760px) {
  #site-companion, .companion-trigger { width: clamp(46px,14vw,56px); height: clamp(46px,14vw,56px); }
  .companion-bubble { width: min(132px,calc(100vw - 20px)); padding: 7px 8px; font-size: 9px; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  #site-companion, .companion-art, .companion-creature, .companion-fin, .companion-eyes, .companion-bubble { animation: none !important; transition-duration: .01ms !important; }
}

