/* Pilas Studios — shared styles
   Palette is black, white and #f4f4f4 only. Colour comes from thumbnails and app icons. */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --white: #fff;
  --grey: #f4f4f4;
  --text-2: #4a4a4a;
  --text-3: #6b6b6b;
  --line: #d6d6d6;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --r-panel: 28px;
  --r-card: 24px;
  --r-btn: 14px;
  --r-btn-inner: 9px;
  --gap: 12px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #555; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono { font-family: var(--mono); }
.wrap { max-width: calc(var(--max) + 48px); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #222; color: var(--white); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: #e8e8e8; color: var(--black); }
.btn-ghost { background: var(--white); color: var(--black); border-color: #d0d0d0; }
.btn-ghost:hover { border-color: var(--black); color: var(--black); }

/* button with the small square arrow on the right */
.btn-arrow { gap: 10px; padding: 0 8px 0 18px; }
.btn-arrow .sq {
  width: 32px; height: 32px; border-radius: var(--r-btn-inner);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.btn-black .sq { background: var(--white); color: var(--black); }
.btn-white .sq { background: var(--black); color: var(--white); }
.btn-lg { min-height: 52px; font-size: 16px; font-weight: 600; padding: 0 10px 0 22px; }
.btn-lg .sq { width: 34px; height: 34px; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 12px 0; }
.site-nav {
  position: relative;
  max-width: 1120px; margin: 0 auto; min-height: 64px;
  padding: 8px 8px 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid #e4e4e4; border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.site-nav .logo { display: flex; align-items: center; min-height: 44px; }
.site-nav .logo img { width: 80px; height: 39px; }
.nav-links { display: flex; align-items: center; gap: 2px; font-size: 15px; }
.nav-top { display: block; padding: 12px 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-top[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* hover dropdowns (desktop) */
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; z-index: 60;
  padding-top: 14px; /* bridge so the pointer can travel from link to menu */
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.dropdown-card {
  width: max-content; padding: 6px;
  background: var(--white); border: 1px solid #e4e4e4; border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; gap: 2px;
}
.dropdown-wide .dropdown-card { width: 340px; }
.dropdown-card a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 12px; color: var(--black); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.dropdown-card a:hover, .dropdown-card a:focus-visible { background: var(--grey); color: var(--black); }
.dd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dd-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dd-desc { font-size: 13px; color: var(--text-3); }
.dd-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
@media (min-width: 761px) {
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition: opacity .16s ease, transform .16s ease;
  }
}
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none;
  min-height: 48px; padding: 0 16px;
  background: transparent; border: 1px solid #d0d0d0; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 500; color: var(--black); cursor: pointer;
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid #e4e4e4; border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    font-size: 17px;
  }
  .nav-links { max-height: calc(100vh - 110px); overflow-y: auto; background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 6px 6px 10px; }
  .nav-top { padding: 12px 12px 6px; font-size: 14px; }
  .nav-top[aria-current="page"] { text-decoration: none; }
  /* on phones the dropdowns become a compact list under each heading */
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; padding: 0 0 8px; transition: none; }
  .dropdown-card { width: auto; min-width: 0; padding: 0 8px; border: 0; box-shadow: none; background: transparent; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .dropdown-card a { padding: 7px 11px; background: var(--grey); border-radius: 10px; gap: 7px; font-size: 13.5px; font-weight: 500; }
  .dd-desc { display: none; }
  .dd-title { font-size: 13.5px; font-weight: 500; }
  .dd-icon { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
  .site-nav.open .nav-links { display: flex; }
  .site-nav { padding-left: 16px; }
}
@media (max-width: 380px) {
  .nav-end .btn-arrow { padding-left: 14px; }
}

/* ---------- interlocking panels ----------
   Light panels get NOTCHES cut in (264 x 45, 34px radius, 10px inverted corners).
   Black panels get TABS sticking out (240 x 45, 22px radius, 22px inverted corners).
   Panels stack in a .stack with a 12px white gap. */

.stack { display: flex; flex-direction: column; gap: var(--gap); padding: 0 var(--gap) var(--gap); }
.stack.has-tab-top { padding-top: 44px; }

.panel { position: relative; border-radius: var(--r-panel); }
.panel-light { background: var(--grey); z-index: 1; }
.panel-dark { background: var(--ink); color: var(--white); z-index: 2; }
.panel-dark a { color: var(--white); }
.panel-dark a:hover { color: #b5b5b5; }
.panel-dark .btn-white, .panel-dark .btn-white:hover { color: var(--black); }

.notch, .tab {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.notch::before, .notch::after, .tab::before, .tab::after { content: ""; position: absolute; }

.notch { width: 264px; height: 45px; background: var(--white); color: var(--black); }
.notch::before, .notch::after { width: 10px; height: 10px; }
.notch-top { top: -1px; border-radius: 0 0 34px 34px; }
.notch-top::before { left: -10px; top: 1px; background: radial-gradient(circle at 0 100%, transparent 9.5px, var(--white) 10px); }
.notch-top::after { right: -10px; top: 1px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, var(--white) 10px); }
.notch-bottom { bottom: -1px; border-radius: 34px 34px 0 0; }
.notch-bottom::before { left: -10px; bottom: 1px; background: radial-gradient(circle at 0 0, transparent 9.5px, var(--white) 10px); }
.notch-bottom::after { right: -10px; bottom: 1px; background: radial-gradient(circle at 100% 0, transparent 9.5px, var(--white) 10px); }

.tab { width: 240px; height: 45px; background: var(--ink); color: var(--white); z-index: 1; }
.tab::before, .tab::after { width: 22px; height: 22px; }
.tab-top { top: -44px; border-radius: 22px 22px 0 0; }
.tab-top::before { left: -22px; bottom: 1px; background: radial-gradient(circle at 0 0, transparent 21.5px, var(--ink) 22px); }
.tab-top::after { right: -22px; bottom: 1px; background: radial-gradient(circle at 100% 0, transparent 21.5px, var(--ink) 22px); }
.tab-bottom { bottom: -44px; border-radius: 0 0 22px 22px; }
.tab-bottom::before { left: -22px; top: 1px; background: radial-gradient(circle at 0 100%, transparent 21.5px, var(--ink) 22px); }
.tab-bottom::after { right: -22px; top: 1px; background: radial-gradient(circle at 100% 100%, transparent 21.5px, var(--ink) 22px); }
.tab img { height: 28px; width: auto; }

/* ---------- section heads ---------- */

.h2 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head p { font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 420px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3); }

.pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- hero ---------- */

.hero { padding-bottom: 88px; }
.hero-grid {
  padding-top: 72px;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; gap: 56px;
}
.hero h1 { font-size: clamp(56px, 7.2vw, 112px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 700; }
.hero h1 span { color: #6b6b6b; }
.hero-text { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 32px; max-width: 540px; }
.hero-copy p { font-size: 20px; line-height: 1.5; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.btn-lg-plain { min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: 600; }
.text-link { font-size: 16px; font-weight: 600; padding: 14px 6px; margin-left: 4px; }
.text-link:hover { color: var(--text-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* the cycling showcase card */
.hero-show { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-stage { position: relative; aspect-ratio: 1 / 1.08; }
.hero-card {
  position: absolute; inset: 0; border-radius: var(--r-card); padding: 40px;
  display: flex; overflow: hidden;
  opacity: 0; transform: scale(0.97); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hero-card.is-active { opacity: 1; transform: none; }
.hero-tabs { display: flex; justify-content: center; gap: 8px; }
.hero-tab {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--text-3); border: 1px solid #e0e0e0; font-size: 14px; font-weight: 500;
}
.hero-tab:hover { color: var(--black); border-color: #bdbdbd; }
.hero-tab[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
@media (prefers-reduced-motion: reduce) { .hero-card { transition: none; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 56px; gap: 44px; }
  .hero-stage { aspect-ratio: 4 / 5; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-show { align-items: stretch; }
  .hero { padding-bottom: 64px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(48px, 14.5vw, 80px); }
  .hero-copy p { font-size: 18px; }
  .hero-card { padding: 28px; }
}

/* ---------- mock UI bits (illustrative thumbnails) ---------- */

.bar { border-radius: 3px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2e2e2; }
.shadow-lg { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); }

/* ---------- services ---------- */

.services-inner { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.service { background: var(--white); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.service-art { height: 248px; }
.service-body { padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.service-body .num { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.service-body h3 { font-size: 38px; line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.service-body p { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.service-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.service-foot .price { font-size: 15px; color: var(--text-3); }

@media (max-width: 560px) {
  .services-inner { padding-top: 88px; padding-bottom: 64px; padding-left: 16px; padding-right: 16px; }
  .service-art { height: 240px; }
  .service-body { padding: 28px 24px; }
  .service-body h3 { font-size: 36px; }
}

/* ---------- project grid (home + work) ---------- */

.work-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 40px 16px; }
.project { display: flex; flex-direction: column; gap: 14px; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.project-meta .name { font-weight: 500; }
.project-meta .kind { color: var(--text-3); }
.project .blurb { font-size: 14px; color: var(--text-3); margin-top: -10px; }

.thumb {
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.thumb-web { align-items: flex-end; padding-bottom: 0; }
.thumb-web .screen {
  width: 100%; height: 86%; background: var(--white); border-radius: 10px 10px 0 0;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.thumb-web .dots i { width: 7px; height: 7px; }
.thumb-auto { gap: 12px; }
.thumb-auto .sheet {
  flex: 1; background: var(--white); border-radius: 10px; padding: 12px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px;
}
.thumb-auto .sheet i { height: 10px; border-radius: 2px; background: #f0f0f0; }
.thumb-auto .arrow { color: var(--white); font-family: var(--mono); font-size: 18px; }
.thumb-auto .doc { flex: 1; background: var(--white); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.thumb-app .icon {
  width: 96px; height: 96px; border-radius: 24px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 42px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 560px) {
  .work-inner { padding-top: 88px; padding-bottom: 88px; }
}

/* ---------- process (black) ---------- */

.process-grid {
  max-width: calc(var(--max) + 72px);
  padding: 72px 36px 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px;
}
.step { display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--mono); font-size: 13px; color: #8a8a8a; }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.step p { font-size: 16px; line-height: 1.5; color: #b5b5b5; }

@media (max-width: 560px) {
  .process-grid { padding: 80px 24px 88px; gap: 32px; }
}

/* ---------- studio apps ---------- */

.studio-inner { max-width: calc(var(--max) + 72px); margin: 0 auto; padding: 96px 36px 104px; display: flex; flex-direction: column; gap: 36px; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app-card {
  background: var(--white); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; min-height: 216px; color: var(--black);
}
a.app-card:hover { color: var(--black); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; color: var(--white);
}
.app-card .text { display: flex; flex-direction: column; gap: 6px; }
.app-card .name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.app-card .desc { font-size: 15px; line-height: 1.45; color: #5a5a5a; }
.app-card .foot {
  margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px;
  font-size: 12px; font-family: var(--mono); color: var(--text-3);
}
.app-card .foot .cta { color: var(--black); }

@media (max-width: 1100px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-inner { padding: 96px 20px 112px; gap: 36px; }
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-card { min-height: 0; }
}

/* ---------- footer (black panel) ---------- */

.site-footer { padding-bottom: 64px; }
.footer-rings { position: absolute; inset: 0; border-radius: var(--r-panel); overflow: hidden; pointer-events: none; }
.footer-rings svg { width: 100%; height: 100%; }

.footer-grid {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 72px 36px 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 40px;
  text-align: center;
}
.footer-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-col .eyebrow { color: #8a8a8a; margin-bottom: 10px; }
.footer-col a, .footer-col .line { color: var(--white); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; }
.footer-big { font-size: clamp(48px, 5.5vw, 76px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.footer-big span { color: #8a8a8a; }
.availability { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: #b5b5b5; }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: #12A150; flex: none; }

.footer-bar {
  position: relative; max-width: 1240px; margin: 32px auto 0; padding: 0 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-bar .stack-list { display: flex; flex-wrap: wrap; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); }

/* the legal bits sit in white cut-outs at the panel's bottom corners.
   The cut-out is exactly two corner radii tall (22 + 22) so its rounded top corner
   and the inverted corner at its foot join in one smooth S-curve. */
.cutout {
  --cr: 22px;
  position: absolute; bottom: -1px; height: calc(var(--cr) * 2 + 1px);
  display: flex; align-items: center; gap: 20px;
  background: var(--white); color: var(--black);
  font-size: 13px; font-weight: 500; white-space: nowrap; z-index: 2;
}
.cutout::before, .cutout::after { content: ""; position: absolute; width: var(--cr); height: var(--cr); }
.cutout-left { left: -1px; border-radius: 0 var(--cr) 0 0; padding: 1px 18px 0 7px; }
.cutout-left::before { top: calc(var(--cr) * -1); left: 0; background: radial-gradient(circle at 100% 0, transparent calc(var(--cr) - 0.5px), var(--white) var(--cr)); }
.cutout-left::after { bottom: 0; right: calc(var(--cr) * -1); background: radial-gradient(circle at 100% 0, transparent calc(var(--cr) - 0.5px), var(--white) var(--cr)); }
.cutout-right { right: -1px; border-radius: var(--cr) 0 0 0; padding: 1px 7px 0 18px; }
.cutout-right::before { top: calc(var(--cr) * -1); right: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--cr) - 0.5px), var(--white) var(--cr)); }
.cutout-right::after { bottom: 0; left: calc(var(--cr) * -1); background: radial-gradient(circle at 0 0, transparent calc(var(--cr) - 0.5px), var(--white) var(--cr)); }
.panel-dark .cutout a { color: var(--black); }
.panel-dark .cutout a:hover { color: #555; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 80px 24px 0; }
  .footer-grid .footer-big { order: -1; }
  .footer-bar { justify-content: center; padding: 0 24px; }
  .footer-bar .stack-list { display: none; }
}
@media (max-width: 420px) {
  .cutout { font-size: 12px; gap: 14px; }
  .cutout-left { padding-right: 12px; }
  .cutout-right { padding-left: 12px; }
}
@media (max-width: 359px) {
  .cutout { --cr: 16px; font-size: 11px; gap: 12px; }
  .cutout-left { padding: 1px 8px 0 5px; }
  .cutout-right { padding: 1px 5px 0 8px; }
}

/* ---------- cover flow ---------- */

.coverflow {
  --tile: 240px;
  position: relative; width: 100%; height: 320px; margin-top: 32px;
  perspective: 1100px; overflow: hidden;
}
.cf-tile {
  position: absolute; left: 50%; top: 20px;
  width: var(--tile); height: var(--tile); margin-left: calc(var(--tile) / -2);
  border: none; padding: 0; cursor: pointer; border-radius: 18px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1), opacity 0.4s;
  -webkit-box-reflect: below 6px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.cf-tile:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.cf-letter { font-size: calc(var(--tile) * 0.433); font-weight: 700; color: var(--white); letter-spacing: -0.05em; line-height: 1; }
.cf-web {
  width: 78%; height: 70%; align-self: flex-end; background: var(--white); border-radius: 10px 10px 0 0;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.cf-web .dots i { width: 7px; height: 7px; background: #ddd; }
.cf-auto { width: 80%; display: flex; flex-direction: column; gap: 10px; }
.cf-auto .card { background: var(--white); border-radius: 8px; padding: 10px; }
.cf-auto .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.cf-auto .down { align-self: center; color: var(--white); font-family: var(--mono); font-size: 16px; }

.cf-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 4px; }
.cf-arrow {
  width: 48px; height: 48px; border-radius: var(--r-btn); flex: none;
  border: 1px solid #3a3a3a; background: transparent; color: var(--white); font-size: 18px; cursor: pointer;
}
.cf-arrow:hover { border-color: #777; }
.cf-label { min-width: 260px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cf-name { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.cf-kind { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: #8a8a8a; text-transform: uppercase; }

@media (max-width: 640px) {
  .coverflow { --tile: 160px; height: 240px; margin-top: 40px; perspective: 800px; }
  .cf-tile { top: 16px; }
  .cf-web, .cf-auto .card { padding: 8px; }
  .cf-web { gap: 6px; }
  .cf-controls { gap: 16px; }
  .cf-label { min-width: 0; flex: 1; max-width: 200px; }
  .cf-name { font-size: 20px; }
}

/* ---------- work page ---------- */

.page-head { padding-top: 72px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 32px; }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.page-head .lede { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 560px; margin-top: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  background: var(--white); color: var(--black); border: 1px solid #d0d0d0;
}
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.chip .count { opacity: 0.55; margin-left: 4px; }
.work-grid-wrap { padding-bottom: 140px; }
.work-grid-wrap .project-grid { gap: 44px 16px; }

.simple-footer { border-top: 1px solid #e8e8e8; }
.simple-footer .wrap {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3);
}
.simple-footer a { color: var(--text-3); }
.simple-footer a:hover { color: var(--black); }
.simple-footer .links { display: flex; gap: 20px; }

/* ---------- contact page ---------- */

.contact-hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.contact-hero .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.contact-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 900px; }
.contact-hero p { font-size: 21px; line-height: 1.45; color: var(--text-2); max-width: 600px; }

.contact-inner { padding-top: 88px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.form-card { flex: 999 1 560px; min-width: 0; background: var(--white); border-radius: var(--r-card); padding: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 32px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--text-3); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-btn);
  font: inherit; font-weight: 400; font-size: 16px; background: var(--white); color: var(--black);
}
.field input { min-height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.chips { border: none; margin: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.chips .row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { border-radius: 12px; border-color: var(--line); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot .note { font-size: 14px; color: var(--text-3); }
.form-error { font-size: 15px; line-height: 1.5; color: var(--black); background: var(--grey); border-radius: 12px; padding: 14px 16px; }
.form-error[hidden] { display: none; }
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

.thanks { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.thanks[hidden] { display: none; }
.thanks h2 { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; }
.thanks p { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 420px; }

.contact-aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aside-card { border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; background: var(--white); }
.aside-call { background: var(--ink); color: var(--white); gap: 14px; }
.aside-call .eyebrow { font-size: 12px; letter-spacing: 0.08em; color: #9a9a9a; }
.aside-call h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.aside-call p { font-size: 15px; line-height: 1.5; color: #b5b5b5; }
.aside-call .btn { align-self: flex-start; margin-top: 6px; font-weight: 600; }
.aside-info { gap: 18px; }
.aside-info .item { display: flex; flex-direction: column; gap: 4px; }
.aside-info .value { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.aside-next { gap: 16px; }
.aside-next .step-line { display: flex; gap: 14px; font-size: 15px; line-height: 1.45; }
.aside-next .step-line .mono { font-size: 13px; color: var(--text-3); padding-top: 1px; }

.compact-footer .footer-grid { padding-bottom: 24px; }
.compact-footer .footer-col a, .compact-footer .footer-col .line { font-size: 20px; letter-spacing: 0; }
.compact-footer .footer-logo img { width: 240px; height: auto; }

@media (max-width: 860px) {
  .compact-footer .footer-grid .footer-logo { order: -1; }
}
@media (max-width: 560px) {
  .contact-hero { padding-top: 64px; padding-bottom: 72px; }
  .contact-hero p { font-size: 18px; }
  .contact-inner { padding: 88px 12px 112px; }
  .form-card { padding: 24px 20px; }
  .aside-card { padding: 28px 24px; }
  .compact-footer .footer-logo img { width: 180px; }
}

/* ---------- legal pages ---------- */

.legal { padding-top: 88px; padding-bottom: 120px; max-width: 760px; }
.legal h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; margin-bottom: 16px; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--text-3); }

/* ---------- inner pages: services / studio / about ---------- */

.page-hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.page-hero .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 960px; }
.page-hero p { font-size: 21px; line-height: 1.45; color: var(--text-2); max-width: 620px; }
.page-hero .btn-row { margin-top: 8px; }

.panel-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.panel-inner.tall-bottom { padding-bottom: 112px; }

/* service detail: art on one side, copy on the other */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.feature-art { border-radius: var(--r-card); overflow: hidden; min-height: 420px; display: flex; }
.feature-card { background: var(--white); border-radius: var(--r-card); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.feature-card .num { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.feature-card h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.feature-card > p { font-size: 17px; line-height: 1.55; color: var(--text-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; }
.checklist li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  background: var(--black); color: var(--white); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.feature-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.feature-foot .price { font-size: 15px; color: var(--text-3); }
.feature.flip .feature-art { order: 2; }

@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-art { order: 0; }
  .feature-art { min-height: 300px; }
}
@media (max-width: 560px) {
  .panel-inner { padding: 80px 12px 72px; }
  .feature-card { padding: 28px 22px; }
  .feature-art { min-height: 260px; }
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--white); border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: var(--r-btn-inner);
  background: var(--grey); display: flex; align-items: center; justify-content: center; font-weight: 500;
}
.faq details[open] summary::after { content: "–"; background: var(--black); color: var(--white); }
.faq details p { padding: 0 24px 24px; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 760px; }

/* studio app rows */
.app-list { display: flex; flex-direction: column; gap: 16px; }
.app-row {
  background: var(--white); border-radius: var(--r-card); padding: 28px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.app-row .tile {
  aspect-ratio: 1 / 1; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 88px; font-weight: 700; letter-spacing: -0.05em; color: var(--white);
}
.app-row .info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-row h2 { font-size: 36px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.app-row .tagline { font-size: 19px; line-height: 1.4; font-weight: 500; }
.app-row .info p { font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.app-row .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.app-row .meta span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.app-row .status { font-family: var(--mono); font-size: 13px; color: var(--text-3); white-space: nowrap; }

@media (max-width: 860px) {
  .app-row { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
  .app-row .tile { font-size: 56px; border-radius: 18px; }
  .app-row .action { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .app-row { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .app-row .tile { width: 96px; font-size: 44px; }
  .app-row h2 { font-size: 30px; }
}

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.photo-slot {
  background: var(--white); border: 1px dashed #c8c8c8; border-radius: var(--r-card); min-height: 460px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  font-family: var(--mono); font-size: 13px; color: var(--text-3);
}
.story { background: var(--white); border-radius: var(--r-card); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.story h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
.story p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.fact { background: var(--white); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.fact .value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; padding: 72px 36px 80px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-slot { min-height: 300px; }
}
@media (max-width: 560px) {
  .story { padding: 28px 22px; }
  .values { padding: 64px 24px 72px; gap: 32px; }
}

/* closing call-to-action panel on inner pages */
.cta-panel { padding: 88px 24px 112px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta-panel h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.cta-panel p { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 520px; }
.page-hero .note-line { font-size: 15px; color: var(--text-3); margin-top: -4px; }

/* light-panel version of the numbered steps */
.panel-light .step .num { color: var(--text-3); }
.panel-light .step p { color: var(--text-2); }
.steps-light { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.panel-section + .panel-section { margin-top: 32px; }
.feature-card .lead { font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--black); }

/* ---------- "battery charge" steps ----------
   A battery outline whose cells get brighter left to right, with each step under its cell.
   Used for "how it works" (home, services). */

.battery-wrap { padding-top: 72px; padding-bottom: 80px; }
.battery { display: flex; align-items: center; gap: 6px; margin-bottom: 36px; }
.battery-body {
  flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding: 8px; border: 3px solid var(--white); border-radius: 22px;
}
.battery-cell { height: 44px; border-radius: 12px; background: var(--white); }
.battery-cell:nth-child(1) { opacity: 0.35; }
.battery-cell:nth-child(2) { opacity: 0.57; }
.battery-cell:nth-child(3) { opacity: 0.78; }
.battery-nub { width: 10px; height: 26px; border-radius: 0 6px 6px 0; background: var(--white); flex: none; }
.battery-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 11px; margin-right: 16px; }
.battery-step { padding: 0 8px; display: flex; flex-direction: column; gap: 8px; }
.battery-step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.battery-step p { font-size: 15px; line-height: 1.5; color: #9a9a9a; }

/* on a light panel the battery is drawn in black */
.panel-light .battery-body { border-color: var(--black); }
.panel-light .battery-cell { background: var(--black); }
.panel-light .battery-nub { background: var(--black); }
.panel-light .battery-step p { color: var(--text-2); }

@media (max-width: 760px) {
  .battery { margin-bottom: 28px; }
  .battery-body { gap: 6px; padding: 6px; border-radius: 18px; }
  .battery-cell { height: 28px; border-radius: 9px; }
  .battery-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0; margin: 0; }
  .battery-step { padding: 0; }
  .battery-wrap { padding-top: 64px; padding-bottom: 72px; }
}
.panel-section .battery { margin-bottom: 4px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.price-card { background: var(--white); border-radius: var(--r-card); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.price-card .num { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.price-card h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.price-card .lead { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.price-card .price { display: flex; align-items: baseline; gap: 10px; padding: 18px 0; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
.price-card .from { font-size: 15px; color: var(--text-3); }
.price-card .amount { font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price-card .btn { align-self: flex-start; margin-top: auto; }
.price-card-dark { background: var(--ink); color: var(--white); }
.price-card-dark .lead { color: #b5b5b5; }
.price-card-dark .num, .price-card-dark .from { color: #8a8a8a; }
.price-card-dark .price { border-color: #2a2a2a; }
.price-card-dark .checklist li::before { background: var(--white); color: var(--black); }
.price-card-dark .btn-white, .price-card-dark .btn-white:hover { color: var(--black); }
@media (max-width: 560px) { .price-card { padding: 28px 22px; } }

/* ---------- services overview ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 16px; }
.svc-card { background: var(--white); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; color: var(--black); transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { color: var(--black); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); }
.svc-card .svc-art { border-radius: 0; min-height: 300px; }
.svc-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.svc-body .num { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.svc-body h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.svc-body p { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.svc-body .btn { align-self: flex-start; margin-top: auto; }
.svc-card-dark { background: var(--ink); color: var(--white); }
.svc-card-dark:hover { color: var(--white); }
.svc-card-dark .svc-body p { color: #b5b5b5; }
.svc-card-dark .svc-body .num { color: #8a8a8a; }
.pricing-strip {
  margin-top: 16px; background: var(--white); border-radius: var(--r-card); padding: 24px 24px 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 18px; color: var(--text-2);
}
.pricing-strip strong { color: var(--black); font-weight: 600; letter-spacing: -0.02em; font-size: 22px; margin-right: 6px; }
.pricing-strip:hover { color: var(--text-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.cross-link { margin-top: 32px; font-size: 16px; color: var(--text-2); }
@media (max-width: 560px) {
  .svc-body { padding: 26px 22px; }
  .svc-card .svc-art { min-height: 240px; }
  .pricing-strip { padding: 22px; }
}
.app-group { display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 110px; }
.app-group + .app-group { margin-top: 48px; }
.price-card .unit { font-size: 15px; color: var(--text-3); } .price-card-dark .unit { color: #8a8a8a; }
.aside-next .step-line .dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--black); }

/* key phrases in the intro paragraph under each page title */
.hero-copy p strong, .page-hero p strong, .contact-hero p strong, .page-head .lede strong { color: var(--black); font-weight: 600; }
