/* OPQ site. The look grows out of the OPQ愛 logo: its teal letters, its raspberry 愛 seal and its pen-cut type. */

:root {
  /* brand: the logo's own colours, always at full strength */
  --teal: #00b8a9;
  --teal-ink: #00897e;  /* teal text on white, for contrast */
  --rasp: #f2195e;
  --rasp-hi: #ff2e6e;
  --rasp-lo: #c8126f;
  --ink: #0b1615;
  --white: #ffffff;
  --deep: #031a1f;
  --rasp-grad: linear-gradient(135deg, var(--rasp-hi), var(--rasp) 50%, var(--rasp-lo));
  --mist: #f2f6f5;      /* quiet panels on white */

  /* older names used across the stylesheets, now pointing at the brand */
  --ss-bg: var(--white);
  --ss-ink: var(--ink);
  --ss-deep: var(--deep);
  --ss-green: var(--teal-ink);
  --ss-lime: var(--teal);
  --ss-mint: var(--teal);
  --ss-chip: var(--mist);
  --ss-line: rgba(11, 22, 21, .1);
  --ss-line-strong: rgba(11, 22, 21, .5);
  /* the four studios, each its own pairing of the brand colours */
  --g-websites-bg: var(--teal); --g-websites-fg: var(--ink);
  --g-design-bg: var(--rasp); --g-design-fg: var(--white);
  --g-video-bg: var(--deep); --g-video-fg: var(--teal);
  --g-auto-bg: var(--ink); --g-auto-fg: var(--white);
  --em-bg: var(--white);
  --em-ink: var(--ink);
  --em-accent: var(--rasp);
  --em-soft: var(--mist);
  --at-bg: var(--deep);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Germania One", "Inter Tight", Georgia, serif;
  /* the old names: display lines take Germania One, labels take Inter Tight */
  --serif: var(--display);
  --mono: var(--sans);
  --tech: var(--sans);

  --header-h: 78px;
  --container: 1216px;
  --gutter: max(16px, calc((100% - var(--container)) / 2));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ss-bg);
  color: var(--ss-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

/* accent words (*word*) and connector words ({word}) inside headings: raspberry, white on teal grounds */
.h em, h1 em, h2 em, h3 em, .c {
  font-style: normal;
  font-weight: inherit;
  color: var(--conn, var(--rasp));
}
.d { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }

.wrap { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 1024px) { .wrap { width: min(var(--container), calc(100% - 96px)); } }

.dark { background: var(--ss-deep); color: var(--ss-bg); }

/* ---------- Superside type scale ---------- */

.center { text-align: center; }

/* ---------- Buttons: label rolls up on hover (Superside) ---------- */
.btn {
  display: inline-block;
  overflow: hidden;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  padding: 16px 24px;
  white-space: nowrap;
  transition: box-shadow .15s var(--ease-std), background-color .2s var(--ease-std), color .2s var(--ease-std);
}
.btn .roll { position: relative; display: block; overflow: hidden; }
.btn .roll > span { display: block; transition: transform .45s var(--ease-out); }
.btn .roll > span + span { position: absolute; inset: 0; transform: translateY(160%); }
.btn:hover .roll > span:first-child, .btn:focus-visible .roll > span:first-child { transform: translateY(-160%); }
.btn:hover .roll > span + span, .btn:focus-visible .roll > span + span { transform: none; }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { box-shadow: 0 8px 28px rgba(0, 184, 169, .35); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { box-shadow: 0 8px 28px rgba(11, 22, 21, .3); }

/* ---------- Header: sits at the top of the page and scrolls away with it ---------- */
.hdr {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 60;
  color: var(--ink);
}
.hdr.over { color: var(--white); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
/* the OPQ愛 logo (assets/brand/opq-logo.svg); its pill hangs below the letters, so it sits a touch high */
.logo { display: block; width: auto; height: 62px; }
.hdr-logo { display: flex; align-items: center; height: 100%; padding-top: 6px; }
/* over the ocean or a dark opening, a soft shadow keeps the teal letters crisp */
.hdr.over .logo { filter: drop-shadow(0 1px 10px rgba(2, 38, 36, .45)); }
.nav { display: none; height: 100%; margin-inline: auto; }
.nav > li { height: 100%; }
.nav-a {
  position: relative; height: 100%; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; font-size: 15px; line-height: 20px; font-weight: 500;
}
.nav-a::before {
  content: ""; width: 0; height: 5px; border-radius: 50%; background: var(--rasp); opacity: 0;
  margin-right: -8px; transition: width .3s ease-in-out, opacity .3s ease-in-out, margin .3s ease-in-out;
}
.nav-a:hover::before, .nav-a.is-open::before, .nav-a[aria-current="page"]::before { width: 5px; opacity: 1; margin-right: 0; }
.nav-a svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.nav-a.is-open svg { transform: rotate(180deg); }
.hdr-cta { display: none; gap: 12px; margin-left: auto; }
.burger { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.burger span { display: grid; gap: 7px; }
.burger i { display: block; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.burger i + i { width: 18px; justify-self: end; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .hdr-cta { display: flex; margin-left: 0; }
  .burger { display: none; }
}
main { padding-top: var(--header-h); }
.hdr.over ~ main { padding-top: 0; }

/* ---------- Mega menu: one column per studio, sliding down under the bar ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  z-index: 55;
  background: var(--white);
  color: var(--ink);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 30px 80px rgba(3, 26, 31, .18);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}
.mega.is-open { visibility: visible; }
.mega-col { display: flex; flex-direction: column; gap: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--display); font-size: 26px; line-height: 1;
  padding: 10px 16px 11px; border-radius: 999px;
}
.pill svg { width: 16px; height: 16px; }
.pill.websites { background: var(--g-websites-bg); color: var(--g-websites-fg); }
.pill.design { background: var(--g-design-bg); color: var(--g-design-fg); }
.pill.video { background: var(--g-video-bg); color: var(--g-video-fg); }
.pill.setup { background: var(--g-auto-bg); color: var(--g-auto-fg); }
.mrows { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.mrow { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ss-line); padding-bottom: 12px; }
.mrow:last-child { border-bottom: 0; padding-bottom: 0; }
.mrow-t { position: relative; display: flex; align-items: center; font-size: 16px; line-height: 24px; font-weight: 500; }
.mrow-t::before { content: ""; display: block; width: 0; transition: width .3s ease-in-out; }
.mrow-t::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--rasp); transform: translateY(-50%); opacity: 0; transition: opacity .3s ease-in-out;
}
.mrow:hover .mrow-t::before, .mrow:focus-visible .mrow-t::before { width: 13px; }
.mrow:hover .mrow-t::after, .mrow:focus-visible .mrow-t::after { opacity: 1; }
.mrow-s { display: block; font-size: 14px; line-height: 21.6px; opacity: .55; }
.mrow-txt { flex: 1; }
.mrow svg { width: 22px; height: 22px; opacity: .45; flex: none; }
.badge-new {
  display: inline-flex; margin-left: 8px; font-size: 11px; line-height: 18px; font-weight: 600; letter-spacing: .02em;
  padding: 1px 8px; border-radius: 999px; background: var(--rasp); color: var(--white);
}
.veil {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: rgba(3, 26, 31, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s var(--ease-std);
}
.veil.is-on { opacity: 1; }

/* ---------- Phone menu: full screen, white, studios as their colour pills ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-std), transform .45s var(--ease-out), visibility 0s .3s;
}
.mnav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease-std), transform .45s var(--ease-out); }
.mnav-top { flex: none; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.mnav-top .logo { height: 56px; padding-top: 4px; }
.mnav-x { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); }
.mnav-x svg { width: 22px; height: 22px; }
.mnav-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; }
.mnav-k { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(11, 22, 21, .55); margin-bottom: 8px; }
.mnav details { border-bottom: 1px solid var(--ss-line); }
.mnav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .pill { font-size: 22px; padding: 8px 14px 9px; }
.mnav summary > svg { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.mnav details[open] summary > svg { transform: rotate(180deg); }
.mnav-svc { display: grid; padding: 0 0 14px 14px; }
.mnav-svc a { padding: 9px 0; font-size: 16px; color: rgba(11, 22, 21, .75); }
.mnav-links { display: grid; margin-top: 18px; }
.mnav-links a { padding: 10px 0; font-family: var(--display); font-size: 40px; line-height: 1.05; border-bottom: 1px solid var(--ss-line); }
.mnav-foot { flex: none; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--ss-line); }
.mnav-foot .btn { width: 100%; }

/* ---------- Placeholders (everything not available yet) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--ph1, var(--teal-ink)), var(--ph2, var(--deep)));
  color: rgba(247, 249, 242, .85);
}
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  font-family: var(--mono); font-size: 10px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Custom cursor bubble (Superside) ---------- */
.cur-blur, .cur-label {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 0; height: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cur-blur { background: rgba(10, 33, 31, .5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transition: background-color .1s ease-in-out; }
.cur-blur[data-mood="light"] { background: rgba(247, 249, 242, .5); }
.cur-label { z-index: 10000; display: none; align-items: center; justify-content: center; gap: 4px; color: var(--ss-bg); font-size: 14px; line-height: 21.6px; }
.cur-label[data-mood="light"] { color: var(--ss-ink); }
.cur-label svg { width: 14px; height: 14px; }
.cur-label .in { display: flex; align-items: center; gap: 4px; opacity: 0; transform: scale(.85); }
@media (hover: hover) and (pointer: fine) {
  .cur-blur.on, .cur-label.on { display: flex; }
  [data-cursor] { cursor: none; }
}

/* ---------- Pop-up project gallery (Superside "Expand") ---------- */
.gal {
  position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column;
  background: rgba(16, 18, 18, .82);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  color: var(--ss-bg);
  opacity: 0; transition: opacity .35s var(--ease-std);
}
.gal.is-open { opacity: 1; }
.gal-x {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(247, 249, 242, .12); border: 1px solid rgba(247, 249, 242, .3);
}
.gal-x svg { width: 20px; height: 20px; }
.gal-track {
  flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: clamp(220px, 21vw, 300px); gap: 16px; padding: 24px;
  cursor: grab;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.drag { cursor: grabbing; }
.gal-card { border-radius: 10px; overflow: hidden; transform: translateY(24px); opacity: 0; }
.gal.is-open .gal-card { transform: none; opacity: 1; transition: transform .7s var(--ease-out), opacity .5s var(--ease-std); }
.gal-card .ph { width: 100%; height: 100%; }
.gal-info { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 8px 24px 24px; align-items: end; }
.gal-title { font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.gal-svc { font-size: 16px; }
.gal-desc { font-size: 16px; line-height: 24px; max-width: 430px; }
.gal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpill { font-size: 12px; line-height: 18px; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; }
@media (min-width: 900px) {
  .gal-info { grid-template-columns: 464px 1fr auto; }
  .gal-track { padding-right: 0; }
}
@media (max-width: 899px) {
  .gal-track { grid-template-rows: 1fr; grid-auto-columns: 78vw; }
}

/* ---------- Home hero (Superside) ---------- */

@keyframes colUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes colDown { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

/* logo strip */
.logos { padding-block: 64px 24px; }

@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Services flow (Superside "20+ services", rebuilt in code) ---------- */

.flow {
  container-type: inline-size; position: relative; margin-top: 72px;
  aspect-ratio: 1216 / 428; border-radius: 24px;
  background: radial-gradient(60% 70% at 40% 50%, rgba(216, 255, 133, .18), transparent 70%);
}

@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.96); } 35% { opacity: 1; transform: scale(1.03); } 60% { opacity: .8; } }
@keyframes beam { 0%, 100% { opacity: .35; } 30%, 45% { opacity: 1; } }

@keyframes chip { 0%, 100% { transform: none; filter: none; } 8% { transform: scale(1.045); filter: brightness(1.06); } 16% { transform: none; filter: none; } }

@keyframes mark { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.06); } 48% { transform: scale(1); } }

@keyframes dash { to { stroke-dashoffset: -28; } }
.who {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  animation: who 11.5s ease-in-out infinite;
}
.who .face { border-radius: 50%; width: var(--s, 6cqw); height: var(--s, 6cqw); }
.who .face.ph::after { display: none; }
.who b {
  margin-top: -1.1cqw; font-weight: 400; font-size: 1.2cqw; line-height: 1; padding: .35cqw .8cqw; border-radius: .5cqw;
  background: var(--tb, #2b2321); color: var(--tf, var(--white)); white-space: nowrap; position: relative;
}
@keyframes who { 0%, 44% { transform: translate(-50%, -50%) scale(.96); } 52% { transform: translate(-50%, -50%) scale(1.06); } 60%, 100% { transform: translate(-50%, -50%) scale(1); } }
@container (max-width: 700px) {
  .flow-chips { position: static; width: 100%; }
}
@media (max-width: 760px) {
  .flow { aspect-ratio: auto; padding: 16px; display: grid; gap: 24px; justify-items: center; }
  
  
  
  
  
  
  
  .who { position: static; transform: none; animation: none; }
  .who .face { --s: 64px !important; }
  .who b { font-size: 12px; padding: 3px 8px; margin-top: -10px; border-radius: 6px; }
}

/* ---------- Work grid (Superside home "Our work") ---------- */

/* ---------- Footer: the page ends on raspberry and signs itself "The OPQ愛 Agency" ---------- */
.foot { position: relative; z-index: 1; overflow: hidden; background: var(--rasp); color: var(--white); --conn: var(--ink); }
.foot-cta { display: grid; justify-items: center; text-align: center; padding: 130px 0 110px; }
.foot-k { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.foot-h { max-width: 15ch; margin-top: 22px; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.6vw, 84px); line-height: .98; }
.foot-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; margin-top: 40px; }
.foot .u-link { color: var(--white); border-color: rgba(255, 255, 255, .6); font-weight: 500; }
.btn-white { background: var(--white); color: var(--ink); padding: 18px 30px; font-size: 15px; }
.btn-white:hover { box-shadow: 0 10px 34px rgba(80, 0, 30, .3); }
.foot-note { max-width: 46ch; margin-top: 24px; font-size: 15px; color: rgba(255, 255, 255, .82); }
/* the signature, set huge across the width; the 3D 愛 (white, as on the logo's seal) stands in for the character */
.foot-sign { padding: 20px 16px 40px; overflow: hidden; }
.foot-sign-in { position: relative; display: flex; align-items: center; justify-content: center; gap: .1em; font-family: var(--display); font-size: clamp(54px, 11vw, 196px); line-height: .9; white-space: nowrap; }
.seal-stage.footer { flex: none; width: 1.05em; height: 1.05em; margin: 0 .04em; }
.foot-print { position: absolute; right: 2%; bottom: .02em; width: .34em; height: .34em; border-radius: 3px; box-shadow: 0 0 0 3px var(--white), 0 8px 20px rgba(80, 0, 30, .35); transform: rotate(-8deg); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 28px 36px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 14px; }
.foot-links, .foot-copy { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a, .foot-copy a { color: rgba(255, 255, 255, .86); transition: color .2s; }
.foot-links a:hover, .foot-copy a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot-copy span { color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) {
  .foot-cta { padding: 96px 0 72px; }
  .foot-sign-in { flex-wrap: wrap; font-size: clamp(50px, 17vw, 80px); white-space: normal; row-gap: .05em; }
  .foot-print { right: 8%; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- The 3D 愛 (assets/seal3d.js), on the homepage and in every footer ---------- */
.seal-stage { position: relative; }
.seal-stage canvas { position: absolute; inset: -12%; width: 124% !important; height: 124% !important; max-width: none; cursor: grab; touch-action: pan-y; }
.seal-stage canvas:active { cursor: grabbing; }
.seal-glow { position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 46, 110, .55), rgba(242, 25, 94, .22) 42%, transparent 70%); filter: blur(28px); opacity: 0; transition: opacity 1.4s var(--ease-std) .4s; }
.seal-stage.footer .seal-glow { background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12) 45%, transparent 70%); filter: blur(18px); }
.seal-stage.is-live .seal-glow, .seal-stage.is-still .seal-glow { opacity: 1; }
.seal-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; cursor: pointer; }
.seal-stage.is-still canvas { display: none; }
.seal-stage.is-still .seal-still { display: block; }

/* ---------- Service page (Superside service template) ---------- */

.two { display: grid; gap: 48px; align-items: center; padding-block: 112px; }
.two .ph { aspect-ratio: 1; width: 100%; }

.two .btn { margin-top: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; }  }

.offer { padding-block: 112px; }
.offer h2 { margin: 16px auto 0; max-width: 820px; }
.offer > .wrap > p { max-width: 600px; margin: 40px auto 0; opacity: .8; }

.process { padding-block: 112px; }
.process .wrap { display: grid; gap: 64px; }

.steps { position: relative; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 32px; padding-bottom: 88px; }
.step:last-child { padding-bottom: 0; }
.step .n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(247, 249, 242, .3); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; background: var(--ss-deep); transition: border-color .4s; }
.step.on .n { border-color: var(--ss-bg); }
.step h4 { font-size: 24px; line-height: 28px; margin-top: 12px; }
.step p { font-size: 18px; line-height: 26px; opacity: .55; margin-top: 8px; }
.steps-line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1.5px; background: rgba(247, 249, 242, .3); }
.steps-line i { display: block; width: 100%; height: 0; background: var(--ss-bg); }
@media (min-width: 900px) { .process .wrap { grid-template-columns: 1fr 1fr; gap: 64px; }  }

/* ---------- Emotion: typography, FAQ, profile ---------- */
.em { background: var(--em-bg); color: var(--em-ink); }

.profile { grid-column: 1 / -1; }
.profile .nm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.profile h3 { font-family: var(--serif); font-size: 24px; line-height: .8; }
.profile .tag { font-family: var(--mono); font-size: 12px; color: var(--em-accent); text-transform: uppercase; }
.profile .bio { font-size: 14px; line-height: 1; font-weight: 500; margin-top: 24px; max-width: 324px; }
.profile .ph { width: 100%; max-width: 324px; aspect-ratio: 324 / 468; border-radius: 24px; margin-top: 20px; --ph1: #1b1424; --ph2: #050307; }
.profile .lnk { display: inline-flex; gap: 6px; margin-top: 20px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.profile .lnk svg { width: 12px; height: 12px; }
.fill-text { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.fill-text span { opacity: .22; transition: opacity .2s linear; }
.fill-text span.on { opacity: 1; }

@media (min-width: 900px) {
  .profile { grid-column: 4 / span 3; }
  .profile + .profile { grid-column: 8 / span 3; }
  
  
  
}

/* ---------- Active Theory: featured work helix ---------- */
.helix { position: relative; height: 520vh; background: var(--at-bg); color: #f4f4f4; }

.helix-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 50% at 12% 88%, rgba(0, 184, 169, .28), transparent 70%),
    radial-gradient(45% 40% at 88% 14%, rgba(242, 25, 94, .14), transparent 70%);
}
.helix-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }
.helix-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 48px; z-index: 2; font-family: var(--tech); text-transform: uppercase; letter-spacing: .02em; pointer-events: none; }
.helix-ui > * { pointer-events: auto; }
.helix-ui h4 { font-size: 14px; line-height: 21px; color: #f4f4f4; }
.helix-ui ul { margin-top: 12px; display: grid; gap: 12px; }
.helix-ui li button { color: var(--teal); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; font-family: var(--tech); }
.helix-ui li button:hover, .helix-ui li button.on { color: #fff; }
.helix-ask { display: inline-flex; margin-top: 32px; padding: 13px 26px; border-radius: 999px; border: 1px solid rgba(169, 156, 255, .5); color: rgba(169, 156, 255, .85); font-size: 13px; letter-spacing: .06em; }
.helix-ask:hover { color: #fff; border-color: #fff; }

@media (min-width: 1024px) { .helix-ui { left: 58px; right: auto; bottom: 60px; padding: 0; }  }
@media (max-width: 700px) { .helix-ui ul { grid-template-columns: 1fr 1fr; }  }

/* page title band used on Work */

/* ---------- Real work (live sites, phones, Live Rooms, open slots, proof) ---------- */
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ddc84; opacity: 0; animation: livePulse 2s var(--ease-out) infinite; }
@keyframes livePulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.phone { position: relative; container-type: inline-size; aspect-ratio: 390 / 844; padding: 2.6%; border-radius: 13% / 6%; background: linear-gradient(145deg, #30363a, #0d0f10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px rgba(0, 0, 0, .35); }
.phone::before { content: ""; position: absolute; z-index: 1; top: .9%; left: 50%; width: 22%; height: .6%; transform: translateX(-50%); border-radius: 999px; background: rgba(255, 255, 255, .18); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11% / 5.2%; }
.games { height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 3cqw; padding: 14cqw 4.5cqw 4.5cqw; border-radius: 11% / 5.2%; background: radial-gradient(rgba(10, 33, 31, .12) 1px, transparent 1px) 0 0 / 14px 14px, #f5f0e6; color: var(--ss-ink); }
.games-top { display: flex; align-items: center; gap: 3cqw; margin-bottom: 2cqw; padding-left: 1.5cqw; font-family: var(--mono); font-size: 4.2cqw; text-transform: uppercase; letter-spacing: .08em; }
.game { display: flex; align-items: center; gap: 4.5cqw; padding: 4.2cqw 4.5cqw; border-radius: 5cqw; background: #fff; box-shadow: 0 1px 0 rgba(10, 33, 31, .08); }
.game b { font-family: var(--serif); font-weight: 400; font-size: 10cqw; line-height: 1; color: #2a9d8f; }
.game span { font-size: 4.2cqw; line-height: 1.3; color: rgba(10, 33, 31, .6); }
.game strong { display: block; font-size: 5.4cqw; font-weight: 600; color: var(--ss-ink); }



.proof { padding-block: 96px 32px; }

.proof.none { padding-block: 72px 24px; }

/* gallery with real screenshots: one row, each card sized by its device */
.gal-track.one { display: flex; align-items: stretch; }
.gal-track.one .gal-card { position: relative; flex: none; height: 100%; }
.gal-card.desk, .gal-card.tall { aspect-ratio: 16 / 10; }
.gal-card.phone { aspect-ratio: 390 / 844; }
.gal-card.tile { aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: #f5f0e6; color: var(--ss-ink); }
.gal-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-user-drag: none; user-select: none; }
.gal-card.tall img { transition: object-position 9s linear; }
.gal-card.tall:hover img { object-position: bottom; }
.gal-card.tile b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; color: #2a9d8f; }
.gal-card.tile h4 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; }
.gal-card.tile p { margin-top: 8px; font-size: 14px; opacity: .7; }
.gal-cap { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(16, 18, 18, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.gal-stat { margin-top: 10px; font-size: 14px; opacity: .85; }
.gal-stat b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.gal-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 16px; border-radius: 999px; background: var(--ss-lime); color: var(--ss-ink); font-size: 14px; font-weight: 500; }
.gal-live[hidden] { display: none; }
.gal-live svg { width: 14px; height: 14px; }

/* ---------- Service pages without placeholders ---------- */

/* About page: real photos in Emotion's frames */

/* mega menu: one column per studio, then a strip into the NGO page */
.mega-in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.mega-in { display: grid; padding-block: 36px 40px; }
.mega-in .mrows { gap: 8px; margin-top: 22px; }
.mega-in .mrow { padding-bottom: 8px; }
.mega-ngo { display: grid; grid-template-columns: 1fr auto; gap: 12px 10px; align-items: start; padding: 18px; border-radius: 18px; background: var(--mist); color: var(--ink); transition: background-color .25s var(--ease-std); }
.mega-ngo:hover { background: #e6efed; }
.mega-ngo .pill.ngo { background: var(--ink); color: var(--white); font-size: 22px; }
.mega-ngo .t { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; opacity: .75; }
.mega-ngo > svg { grid-column: 2; grid-row: 1; align-self: center; width: 20px; height: 20px; }
@media (max-width: 1199px) { .mega-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact panel (every page; assets/contact.js) ---------- */
html.cp-lock { overflow: hidden; }
.cp { width: min(940px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: var(--white); color: var(--ink); overflow: auto; box-shadow: 0 40px 120px rgba(3, 26, 31, .35); }
.cp::backdrop { background: rgba(3, 26, 31, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cp[open] { animation: cpIn .32s var(--ease-out); }
.cp[open]::backdrop { animation: cpFade .32s var(--ease-out); }
.cp.out { animation: cpOut .22s var(--ease-std) forwards; }
.cp.out::backdrop { animation: cpFade .22s reverse forwards; }
@keyframes cpIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes cpOut { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes cpFade { from { opacity: 0; } }
.cp-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding: 44px; }
.cp-x { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s; }
.cp-x:hover { background: var(--mist); }
.cp-x svg { width: 20px; height: 20px; }
.cp-l { grid-column: 1; display: grid; align-content: space-between; gap: 32px; }
.cp-in:focus { outline: none; }
.cp-k { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(11, 22, 21, .6); }
.cp-k b { color: var(--rasp); font-weight: 500; }
.cp-t { margin-top: 14px; font-family: var(--display); font-size: clamp(36px, 4vw, 52px); line-height: .98; }
.cp-s { margin-top: 14px; max-width: 34ch; color: rgba(11, 22, 21, .66); }
.cp-rows { display: grid; border-top: 1px solid var(--ss-line); }
.cp-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--ss-line); transition: background-color .2s, padding .3s var(--ease-out); }
.cp-row:hover, .cp-row:focus-visible { background: var(--mist); padding-inline: 12px 8px; outline: none; }
.cp-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--teal-ink); }
.cp-ic svg { width: 21px; height: 21px; }
.cp-row[data-row^="book"] .cp-ic { background: var(--teal); color: var(--ink); }
.cp-tx { display: grid; gap: 2px; min-width: 0; }
.cp-tx b { font-size: 17px; font-weight: 600; }
.cp-tx small { font-size: 14px; color: rgba(11, 22, 21, .6); overflow-wrap: anywhere; }
.cp-row > svg { width: 16px; height: 16px; opacity: .55; }
.cp-form { grid-column: 2; align-self: stretch; display: grid; align-content: start; gap: 14px; padding: 28px; border-radius: 20px; background: var(--mist); }
.cp-fk { font-size: 14px; color: rgba(11, 22, 21, .66); margin-bottom: 4px; }
.cp-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.cp-form input, .cp-form textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(11, 22, 21, .14); border-radius: 12px; background: var(--white); font: 16px/1.4 var(--sans); color: var(--ink); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.cp-form input:focus, .cp-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 184, 169, .2); }
.cp-form .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 760px) {
  .cp { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .cp[open] { animation: cpUp .28s var(--ease-out); }
  .cp.out { animation: cpDown .22s var(--ease-std) forwards; }
  @keyframes cpUp { from { transform: translateY(100%); } }
  @keyframes cpDown { to { transform: translateY(100%); } }
  .cp-in { grid-template-columns: 1fr; gap: 24px; padding: 30px 16px 28px; }
  .cp-form { grid-column: 1; padding: 20px 16px; }
  .cp-x { right: 10px; top: 10px; }
}
.mega-in .pill { font-size: 21px; white-space: nowrap; }
.mega-ngo .pill.ngo { justify-self: start; }
/* while the menu is open, the bar turns solid so it reads as one sheet with the menu */
.hdr:has(.nav-a.is-open) { background: var(--white); color: var(--ink); transition: background-color .2s, color .2s; }
.hdr:has(.nav-a.is-open) .logo { filter: none; }
@media (max-width: 1023px) { .mega { display: none; } }
