/* twelve. studio — global + component styles
   Ported from the Claude Design "Twelve website redesign" component bundle. */

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

html {
  scroll-behavior: smooth;
  /* Global scale — dials the whole design back so it reads comfortably,
     a touch smaller than default but not shrunk. Applies to every page. */
  zoom: 0.93;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: var(--surface-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum-deep); text-decoration: none; }
a:hover { color: var(--plum-mid); }

img { max-width: 100%; }
picture { display: block; }
.about-picture { width: 100%; height: 100%; }

/* Every native interactive control keeps a visible keyboard focus indicator.
   Component-specific rules below may refine its colour or radius. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--plum-deep);
  outline-offset: 3px;
}

/* Hidden until keyboard focus, then placed above the fixed navigation. */
.tw-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--plum-deep);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-weight: 700;
  transform: translateY(calc(-100% - 20px));
  transition: transform .18s var(--ease-out);
}
.tw-skip-link:focus { transform: translateY(0); color: var(--text-inverse); }

@keyframes tw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- printed-paper noise overlay ---------- */
.tw-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.tw-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  background: linear-gradient(var(--surface-page) 70%, transparent);
}
.tw-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: var(--tracking-normal);
  color: var(--text-primary);
}
.tw-wordmark span { color: var(--accent-primary); }
.tw-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tw-nav-links ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
  white-space: nowrap;
}
/* Comfortable, higher-contrast links with a lavender-dot + underline accent.
   The underline lives in ::after (0-width at rest, grows on hover/active);
   the active dot lives in ::before. */
.tw-nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  color: var(--text-heading);
  font-weight: 600;
  transition: color .18s var(--ease-out);
}
.tw-nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease-out);
}
.tw-nav-links a:hover { color: var(--plum-deep); }
.tw-nav-links a:hover::after { transform: scaleX(1); }
.tw-nav-links a:focus-visible {
  outline: 2px solid var(--plum-deep);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* active page / current section */
.tw-nav-links a.is-active {
  color: var(--plum-deep);
  font-weight: 700;
}
.tw-nav-links a.is-active::after { transform: scaleX(1); }
.tw-nav-links a.is-active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* ---------- hero ---------- */
.tw-hero {
  position: relative;
  overflow: clip;
  min-height: 100vh; /* fallback */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px;
  box-sizing: border-box;
}
.tw-hero-content {
  position: relative;
  z-index: 2; /* keep copy above the decorative pills */
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  /* subtle downward nudge for vertical balance; transform adds no layout height
     so it can't collide with the absolutely-positioned scroll cue */
  transform: translateY(4vh);
}
.tw-hero-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin: 0;
  display: flex;
}
.tw-hero-wordmark [data-tw-letter] { display: inline-block; }
.tw-hero-wordmark [data-tw-letter].dot { color: var(--accent-primary); }
.tw-hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-normal);
  color: var(--text-heading);
  max-width: 20ch;
  margin: 28px 0 0;
}
.tw-hero-headline em {
  font-style: normal;
  color: var(--plum-mid);
  text-decoration: underline;
  text-decoration-color: var(--accent-secondary);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.tw-hero-copy {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  line-height: var(--leading-body-sm);
  letter-spacing: .01em;
  color: var(--text-primary);
  max-width: 52ch;
  margin: 20px 0 0;
}
.tw-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 34px;
}

/* decorative hero pills — non-interactive, muted, behind content */
.hero-sticker {
  position: absolute;
  z-index: 1;
}
.hero-sticker .tw-sticker {
  pointer-events: none;
  opacity: 1;
  border-color: var(--border-subtle);
  transition: none;
}
.hero-sticker .tw-sticker:hover {
  transform: rotate(var(--rot, 0deg));
  border-color: var(--border-subtle);
}
.hero-sticker .tw-sticker--pink { color: var(--text-accent-secondary-on-light); }
.hero-sticker .tw-sticker--blue { color: var(--text-accent-tertiary-on-light); }

/* scroll cue */
.tw-scrollcue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum-deep);
  padding: 8px 6px;
}
.tw-scrollcue span { animation: tw-float 1.8s var(--ease-out) infinite; }
.tw-scrollcue:hover { color: var(--plum-mid); }
.tw-scrollcue:focus-visible {
  outline: 2px solid var(--plum-deep);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
@keyframes tw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
/* section-level scroll cue — same look as .tw-scrollcue, in normal document flow */
.tw-section-cue {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 56px auto 0;      /* deliberate top gap; section bottom padding handles below */
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum-deep);
  padding: 8px 6px;
}
.tw-section-cue span { animation: tw-float 1.8s var(--ease-out) infinite; }
.tw-section-cue:hover { color: var(--plum-mid); }
.tw-section-cue:focus-visible {
  outline: 2px solid var(--plum-deep);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
/* Pricing hero cue: sit as a deliberate bridge, centered in the gap between the
   intro content and #price-factors — not attached to the buttons above. */
#price .tw-section-cue { margin-top: 104px; }

/* ---------- shared section header (kicker + rule + title) ---------- */
.tw-section {
  padding: var(--anchor-offset) 48px 140px;
  max-width: var(--section-max-width);
  margin: 0 auto;
}
/* Nudge the #services landing ~36px higher than its padding-driven default so the
   section sits more vertically balanced under the fixed nav. Section-scoped, so it
   leaves #about and every other anchor untouched. */
#services { scroll-margin-top: -36px; }
/* #about is a padded section: its own top padding (var(--anchor-offset)) already
   positions the landing (~40px below the fixed nav). Declare scroll-margin-top
   explicitly so the intended landing is documented, reusable, and identical for
   same-page nav clicks and cross-page index.html#about links. Padding is left
   unchanged and scales via --anchor-offset on mobile, so the heading is never
   hidden. Section-scoped — Services/Work/Process anchors untouched. */
#about { scroll-margin-top: 0; }
/* Padding-less anchor targets: offset their anchor landing to match the sections. */
#contact { scroll-margin-top: var(--anchor-offset); }
/* #price-factors has no top padding of its own; this scroll offset lands the
   section intro just below the nav (heading ~35px under it) for a clean framing. */
#price-factors { scroll-margin-top: calc(var(--anchor-offset) - 14px); }
.tw-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
  margin-bottom: 56px;
}
.tw-kicker {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--plum-mid);
  margin: 0;
}
.tw-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin: 0;
}
.tw-lead {
  font-size: 1.02rem;
  line-height: var(--leading-body);
  max-width: 56ch;
}

/* ---------- sticker ---------- */
.tw-sticker {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  color: var(--plum-mid);
  white-space: nowrap;
  display: inline-block;
  transform: rotate(var(--rot, 0deg));
  transition: transform .25s var(--ease-bounce), border-color .25s, color .25s;
}
.tw-sticker--pink { color: var(--text-accent-secondary-on-light); }
.tw-sticker--blue { color: var(--text-accent-tertiary-on-light); }
.tw-sticker:hover {
  transform: rotate(var(--rot, 0deg)) scale(1.08);
  border-color: var(--plum-deep);
  color: var(--plum-deep);
}
/* About pills are informational decorations, not interactive. pointer-events:none
   disables the .tw-sticker:hover transform/color/border entirely and yields the
   default cursor; scoped modifier so hero and other stickers keep their hover.
   The existing entrance transition still applies. */
.tw-sticker--static { pointer-events: none; cursor: default; }

/* ---------- button ---------- */
.tw-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 20px 44px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-med) ease, background var(--duration-med) ease, color var(--duration-med) ease;
}
.tw-btn:focus-visible { outline: 2px solid var(--plum-deep); outline-offset: 3px; }
.tw-btn--primary { background: var(--plum-deep); color: var(--text-inverse); }
.tw-btn--primary:hover { transform: scale(1.05); background: var(--plum-mid); color: var(--text-inverse); }
.tw-btn--ghost { background: transparent; color: var(--text-heading); border: 1.5px solid var(--border-strong); }
.tw-btn--ghost:hover { transform: scale(1.05); color: var(--text-heading); }
.tw-btn--cream { background: var(--cream); color: var(--plum-deep); }
.tw-btn--cream:hover { transform: scale(1.05); background: #fff; color: var(--plum-deep); }

/* ---------- badge (dark-card chip) ---------- */
.tw-badge {
  font-family: var(--font-mono);
  font-size: var(--text-tag);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-inverse);
  color: var(--text-inverse);
  display: inline-block;
  cursor: default;
}

/* ---------- service card ---------- */
.tw-service {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-card-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.tw-service .num {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}
.tw-service h3 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  margin: 0;
}
.tw-service p {
  font-size: var(--text-body);
  line-height: var(--leading-body-sm);
  opacity: .9;
  max-width: 42ch;
  margin: 12px 0 0;
}

/* capability icon — decorative, fills the unused right side of each card.
   The icon is absolute and resolves against .tw-service (the card), while the
   content div reserves matching space on the right so text never runs under it. */
.tw-service--icon > div { padding-right: 136px; }
.tw-service-icon {
  position: absolute;
  display: block;
  top: 50%;
  margin-top: -56px;   /* vertical centre: half of height */
  right: 44px;         /* centred in the 136px reserved band */
  width: 112px;
  height: 112px;
  color: var(--text-inverse);            /* currentColor → cream */
  --icon-accent: var(--accent-primary);  /* lav */
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}
.tw-service-icon svg { width: 100%; height: 100%; display: block; }

/* narrower two-column cards — smaller icon, more room for text */
@media (min-width: 821px) and (max-width: 1024px) {
  .tw-service--icon > div { padding-right: 112px; }
  .tw-service-icon { width: 90px; height: 90px; top: 50%; margin-top: -45px; right: 43px; }
}

/* very narrow — drop the icon into the flow, beneath the number, above the title */
@media (max-width: 560px) {
  .tw-service--icon > div { padding-right: 0; }
  .tw-service-icon {
    position: static;
    width: 60px;
    height: 60px;
    margin: 6px 0 10px;
    opacity: .9;
  }
}

/* pink underline emphasis — matches the hero headline treatment */
.tw-price-accent {
  font-style: normal;
  color: var(--plum-mid);
  text-decoration: underline;
  text-decoration-color: var(--accent-secondary);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* ---------- work card ---------- */
.tw-work-cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tw-work-cell > .label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum-mid);
  margin: 0;
}
.tw-work {
  position: relative;
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  transition: transform .25s ease;
  min-height: 260px;
  flex: 1;
}
.tw-work:hover { transform: translateY(-4px); }
.tw-work--mid { background: linear-gradient(160deg, var(--plum-mid), var(--plum-deep)); }
.tw-work--warm { background: linear-gradient(160deg, #8a6a3f, #3a2e22); }
.tw-work--lav { background: linear-gradient(160deg, var(--accent-primary), var(--plum-mid)); }
.tw-work--iris { background: linear-gradient(160deg, #6C5CB0, #2E2350); }
.tw-work--calm { background: linear-gradient(160deg, #4C5E74, #333F52); }
.tw-work--flat { background: var(--surface-inverse); }
/* non-clickable placeholder card: normal cursor, no hover lift */
.tw-work--static { cursor: default; }
.tw-work--static:hover { transform: none; }
.tw-work .shot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-inverse);
  background: rgba(35, 25, 51, .35);
}
.tw-work .shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-inverse);
}
.tw-work .shot-bar span { width: 8px; height: 8px; border-radius: 50%; }
.tw-work .shot-bar span:nth-child(1) { background: var(--accent-secondary); }
.tw-work .shot-bar span:nth-child(2) { background: var(--accent-primary); }
.tw-work .shot-bar span:nth-child(3) { background: var(--accent-tertiary); }
.tw-work .shot-body {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-inverse);
  opacity: .45;
  background: repeating-linear-gradient(45deg, rgba(245, 242, 232, .05) 0 8px, transparent 8px 16px);
}
.tw-work .shot-body--media {
  display: block;
  opacity: 1;
  background: var(--surface-inverse);
}
.tw-work .shot-body--media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.tw-work .shot-body--hero {
  height: auto;
  aspect-ratio: 3 / 2;
}
.tw-work .shot-body--hero img {
  object-fit: contain;
  object-position: center;
}
/* quieter "coming soon" placeholder: dim abstract wireframe bars */
.tw-work .shot--placeholder .shot-body {
  height: auto;
  aspect-ratio: 3 / 2;
  flex-direction: column;
  gap: 10px;
  opacity: .32;
  background: none;
}
.tw-work .shot--placeholder .ph-line {
  height: 8px;
  border-radius: 100px;
  background: rgba(245, 242, 232, .6);
}
.tw-work .shot--placeholder .ph-line:nth-child(1) { width: 58%; }
.tw-work .shot--placeholder .ph-line:nth-child(2) { width: 42%; }
.tw-work .shot--placeholder .ph-line:nth-child(3) { width: 50%; }
.tw-work .shot--placeholder em { margin-top: 4px; font-style: normal; }
.tw-work h2,
.tw-work h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-inverse);
  margin: 0 0 6px;
}
.tw-work p {
  font-size: .88rem;
  color: var(--text-inverse);
  opacity: .85;
  line-height: 1.5;
  margin: 0;
}
.tw-work .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.tw-work .tags span {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-inverse);
  color: var(--text-inverse);
  white-space: nowrap;
}
/* work-grid "next" cta cell — deep plum, cream text (section closing action) */
.tw-work-next {
  flex: 1;
  background: var(--plum-deep);
  border: none;
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.tw-work-next h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: var(--tracking-normal);
  color: var(--text-inverse);
  margin: 0;
}
.tw-work-next p { margin: 0; font-size: .95rem; line-height: 1.65; max-width: none; color: var(--text-inverse-muted); }
.tw-work-next .actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.tw-work-next a { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--text-inverse); }
.tw-work-next a.secondary { color: var(--accent-primary); }

/* ---------- footer ---------- */
.tw-footer {
  text-align: center;
  padding: 50px 48px 60px;
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.tw-footer a { color:inherit;text-decoration:underline;text-underline-offset:3px; }
.tw-footer a:hover { color:var(--plum-deep); }

/* ---------- generic bordered info card ---------- */
.tw-panel {
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
}

/* ---------- project case-study media ---------- */
.proj-media {
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface-inverse);
}
.proj-media--wide { aspect-ratio: 16 / 9; }
.proj-media--detail { aspect-ratio: 4 / 3; }
.proj-media--natural { aspect-ratio: auto; }
.proj-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.proj-media--natural img {
  height: auto;
  object-fit: contain;
}
.proj-demo-shell { display: block; }
.proj-demo-frame {
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface-inverse);
}
.proj-demo-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.proj-demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  max-width: 72ch;
  margin: 16px 0 0;
  font-size: .9rem;
  line-height: 1.65;
}
.proj-mobile-shots {
  display: none;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* pricing "what affects the price" — small decorative factor icons.
   Sits in normal flow between the // number and the card title; currentColor
   inherits the heading plum, --icon-accent falls back to pink. */
.factor-icon { display: block; width: 48px; height: 48px; margin: 0 0 16px; color: var(--text-heading); }
.factor-icon svg { display: block; width: 100%; height: 100%; }

/* ---------- dark contact CTA block ---------- */
.tw-cta {
  position: relative;
  background: var(--plum-deep);
  color: var(--text-inverse);
  border-radius: 24px;
  padding: 110px 64px;
  text-align: center;
  overflow: hidden;
}
.tw-cta .corner {
  position: absolute;
  top: 34px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.tw-cta .corner.left { left: 40px; color: var(--accent-primary); }
.tw-cta .corner.right { right: 40px; color: var(--text-inverse-muted); }
.tw-cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6.4vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0;
}
.tw-cta h2 span { color: var(--accent-primary); }
.tw-cta > p {
  max-width: 50ch;
  margin: 28px auto 40px;
  line-height: var(--leading-body);
  font-size: 1rem;
  color: var(--text-inverse-muted);
}
.tw-cta .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-inverse);
}

/* ---------- motion default (JS sets initial states; keep visible without JS) ---------- */
.no-js [data-tw-reveal] { opacity: 1 !important; transform: none !important; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  :root { --anchor-offset: 116px; }
  #price .tw-section-cue { margin-top: 72px; }
  .tw-nav { padding: 20px 24px; }
  .tw-nav-links { gap: 8px; }
  .tw-nav-links ul { gap: 2px 6px; flex-wrap: wrap; justify-content: flex-end; }
  .tw-section { padding: var(--anchor-offset) 24px 96px; }
  /* tablet: pull the decorative pills in so they don't crowd the copy */
  .tw-hero { padding: 110px 32px; }
  .hero-sticker .tw-sticker { font-size: .7rem; padding: 6px 12px; }
  .hero-sticker:nth-of-type(1) { top: 9%; right: 4%; }
  .hero-sticker:nth-of-type(2) { top: 40%; left: 1%; }
  .hero-sticker:nth-of-type(3) { bottom: 20%; left: 2%; }
  .hero-sticker:nth-of-type(4) { bottom: 8%; right: 6%; }
  .tw-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .tw-cta { padding: 72px 28px; }
  .tw-cta .corner { position: static; display: block; margin-bottom: 8px; }
  .tw-cta .corner.right { display: none; }
}

@media (max-width: 860px) {
  .proj-intro-grid,
  .proj-row,
  .proj-shots {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 767px) {
  .proj-demo-shell { display: none; }
  .proj-mobile-shots { display: grid; }
}

/* Section grids are defined with inline grid-template-columns, so these
   overrides need !important to collapse them to a single column on small
   screens. */
@media (max-width: 820px) {
  .about-grid,
  .services-grid,
  .work-grid,
  .process-grid,
  .price-lead,
  .factors-grid,
  .own-grid,
  .faq-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .services-grid > div { grid-column: auto !important; }
  /* stacked cards use natural heights, not the tallest-card equalisation */
  .services-grid,
  .work-grid { grid-auto-rows: auto !important; }
  .about-grid { gap: 40px !important; }
  .process-grid { gap: 48px !important; }
  /* keep the about illustration from ballooning full-width on its own row */
  .about-grid > div:last-child { max-width: 420px; }
}

/* Desktop/larger-tablet only: nudge the About photo up so it reads as
   vertically centered against the text. Grid is 2-col above 820px; below
   that the image stacks and gets no offset. */
@media (min-width: 821px) {
  .about-media { transform: translateY(-28px); }
}

@media (max-width: 640px) {
  /* The nav wraps to two rows on narrow phones (~83px tall), so the offset must
     clear that taller wrapped nav, not the single-row height. */
  :root { --anchor-offset: 138px; }
  #price .tw-section-cue { margin-top: 56px; }
  .tw-nav { flex-wrap: wrap; gap: 6px 12px; padding: 16px 18px; }
  .tw-nav-links ul { gap: 4px 8px; font-size: .82rem; }
  .tw-nav-links a { padding: 8px 8px; }
  .tw-btn { padding: 16px 32px; font-size: .95rem; }
  .tw-section { padding: var(--anchor-offset) 20px 80px; }
  .tw-cta { padding: 56px 22px; }
  .faq-row { gap: 12px !important; }

  /* mobile hero: reduce side padding, stack CTAs full-width */
  .tw-hero { padding: 104px 20px 96px; }
  .tw-hero-headline { margin-top: 22px; }
  .tw-hero-cta { flex-direction: column; align-self: stretch; }
  .tw-hero-cta .tw-btn { width: 100%; text-align: center; }
  /* keep only two pills so they never overlap the copy */
  .hero-sticker:nth-of-type(2),
  .hero-sticker:nth-of-type(3) { display: none; }
  .hero-sticker:nth-of-type(1) { top: 8%; right: 4%; }
  .hero-sticker:nth-of-type(4) { bottom: 7%; right: 5%; }
  .tw-scrollcue, .tw-section-cue { font-size: .82rem; letter-spacing: .1em; }
}

/* At the narrowest supported viewport, give the brand and links their own
   centred rows so the five destinations wrap symmetrically without overflow. */
@media (max-width: 360px) {
  :root { --anchor-offset: 150px; }
  .tw-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 12px 10px 14px;
  }
  .tw-nav-links { width: 100%; justify-content: center; }
  .tw-nav-links ul {
    justify-content: center;
    gap: 0 2px;
    font-size: .72rem;
    white-space: normal;
  }
  .tw-nav-links a { padding: 7px 5px; }
  .tw-nav-links a::after { left: 5px; right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-tw-reveal],
  [data-tw-letter],
  [data-tw-hero-headline],
  [data-tw-hero-copy],
  [data-tw-hero-cta],
  [data-tw-scrollcue],
  .hero-sticker {
    opacity: 1 !important;
    transform: none !important;
  }
  .tw-sticker, .tw-btn, .tw-work { transition: none; }
  .tw-scrollcue span, .tw-section-cue span { animation: none; }
}
