/* =====================================================================
   2ITZ STUDIO — v3 production stylesheet
   Design tokens inlined below; section styles follow.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@500;700;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --paper:        #FBF5EA;
  --paper-2:      #F2E9D6;
  --paper-3:      #E8DCC2;
  --ink:          #1A1714;
  --ink-2:        #3B342E;
  --ink-3:        #6B6158;
  --ink-4:        #9E958A;

  --accent-orange:     #F26B1F;
  --accent-orange-2:   #D95814;
  --accent-tangerine:  #FFB169;
  --accent-peach:      #FCE0C4;

  --ok:    #2C6E7F;
  --warn:  #E0A020;
  --err:   #C63A26;

  --partner-bg: #AC9685;
  --partner-dark-tile: #4A413A;

  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-jp:      "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --shadow-sticker:        4px 4px 0 var(--ink);
  --shadow-sticker-lg:     6px 6px 0 var(--ink);
  --shadow-sticker-sm:     2px 2px 0 var(--ink);
  --shadow-sticker-orange: 4px 4px 0 var(--accent-orange);

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --max-w:    1280px;
  --max-w-md: 1200px;
}

/* --- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* --- Atom primitives ------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
}

.accent { color: var(--accent-orange); }

.btn {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--accent-orange);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: var(--shadow-sticker);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 150ms var(--ease-bounce), box-shadow 150ms var(--ease-out);
}
.btn:hover    { transform: translate(-1px, -1px); box-shadow: var(--shadow-sticker-lg); }
.btn:active   { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--sm      { font-size: 13px; padding: 6px 14px; }
.btn--secondary { background: var(--paper); }
.btn--dark      { background: var(--ink); color: var(--paper); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 3px 12px;
}
.pill--peach  { background: var(--accent-peach); }
.pill--ink    { background: var(--ink); color: var(--paper); }
.pill--orange { background: var(--accent-orange); }
.pill--ocean  { background: var(--ok); color: var(--paper); }
.pill--amber  { background: var(--warn); color: var(--ink); }
.pill--anchor {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* =====================================================================
   HEADER v3 — dark
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* Brand PNG (white-on-transparent, sits on dark header). */
.header__logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.header__wordmark {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.header__nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.header__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  opacity: 0.9;
  text-decoration: none;
  transition: opacity 150ms var(--ease-out);
}
.header__nav a:hover { opacity: 1; }

/* =====================================================================
   HOOK HERO v3
   ===================================================================== */
.hook-hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.hook-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url(assets/hero-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hook-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 620px;
  align-items: stretch;
  max-width: none;
}

/* --- LEFT: copy --------------------------------------------------- */
.hook-hero__copy {
  position: relative;
  padding: 72px 56px 64px 72px;
  background: transparent;
  overflow: hidden;
}
.hook-hero__wordmark-block {
  display: inline-block;
  width: max-content;
}
.hook-hero__wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 168px;
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--ink);
  border-bottom: 6px solid var(--ink);
  padding-bottom: 6px;
}
/* STUDIO sits below the rule, letters flex-distributed to match the
   2ITZ width above. */
.hook-hero__wordmark--studio {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 10px;
  padding: 0 4px;
}
.hook-hero__wordmark--studio span { display: inline-block; }

/* Hero slogan — char-by-char typewriter (see [data-typewriter] in script.js).
   Word-level color is applied via inline spans the JS injects; this rule
   sets the resting type (warm grey "Make it" / "Keep it" fragments). */
.hook-hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  margin: 22px 0 0;
  min-height: 1.6em;
}
.hook-hero__slogan-word--accent { color: var(--accent-orange); font-weight: 700; }
.hook-hero__slogan-word--ink    { color: var(--ink);            font-weight: 700; }
.hook-hero__slogan-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent-orange);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: hook-hero-blink 0.6s step-end infinite;
}
@keyframes hook-hero-blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hook-hero__slogan-cursor { animation: none; }
}

.hook-hero__tagline {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 36px 0 0;
  max-width: 460px;
  text-wrap: balance;
}
.hook-hero__lang-pill {
  display: inline-block;
  background: var(--accent-orange);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 2px 14px 4px;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(2px);
}
.hook-hero__body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 420px;
  margin-top: 28px;
  text-wrap: pretty;
}
.hook-hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* --- RIGHT: pill tiles ------------------------------------------- */
.hook-hero__tiles {
  position: relative;
  padding: 72px 56px 56px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: visible;
}
.pill-tile-wrap {
  text-decoration: none;
  display: block;
}
.pill-tile-wrap--01 { transform: translateX(0)    rotate(-1.8deg); }
.pill-tile-wrap--02 { transform: translateX(30px) rotate(1.2deg); }
.pill-tile-wrap--03 { transform: translateX(10px) rotate(-1.2deg); }

.pill-tile {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 14px 22px 14px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  transition: transform 220ms var(--ease-bounce), box-shadow 220ms ease-out;
}
.pill-tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.pill-tile__copy { position: relative; }
.pill-tile__idx {
  position: absolute;
  top: -10px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.pill-tile__label {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.pill-tile__sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.pill-tile__learn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pill-tile__learn-rule {
  display: inline-block;
  width: 12px;
  height: 2px;
}
.pill-tile__disc {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
}
.pill-tile__disc img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(2px 2px 0 var(--ink));
}

/* Per-theme palettes */
.pill-tile--dark {
  background: var(--ink);
  color: var(--paper);
}
.pill-tile--dark .pill-tile__idx,
.pill-tile--dark .pill-tile__sub  { color: var(--accent-tangerine); }
.pill-tile--dark .pill-tile__learn { color: #C8BFB3; }
.pill-tile--dark .pill-tile__learn-rule { background: var(--accent-tangerine); }
.pill-tile--dark .pill-tile__disc { background: var(--accent-orange); }

.pill-tile--cream {
  background: var(--paper);
  color: var(--ink);
}
.pill-tile--cream .pill-tile__idx,
.pill-tile--cream .pill-tile__sub { color: var(--ink-2); }
.pill-tile--cream .pill-tile__learn { color: var(--ink-3); }
.pill-tile--cream .pill-tile__learn-rule { background: var(--ok); }
.pill-tile--cream .pill-tile__disc { background: #E8E2D4; }

.pill-tile--orange {
  background: var(--accent-orange);
  color: var(--ink);
}
.pill-tile--orange .pill-tile__idx,
.pill-tile--orange .pill-tile__sub { color: var(--ink); }
.pill-tile--orange .pill-tile__learn { color: var(--ink-2); }
.pill-tile--orange .pill-tile__learn-rule { background: var(--ink); }
.pill-tile--orange .pill-tile__disc { background: #F9A26B; }

/* --- Hero black bar + tickertape --------------------------------- */
.hook-hero__bar {
  height: 18px;
  background: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 2;
}
.tickertape {
  position: relative;
  z-index: 2;
  background: var(--accent-orange);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  padding: 14px 0;
}
.tickertape__track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}
.tickertape__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.tickertape__emoji { font-size: 18px; }
.tickertape__dot {
  color: var(--paper);
  font-weight: 900;
  font-size: 14px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================================
   PROFILE (Portfolio v3)
   ===================================================================== */
.profile {
  background: var(--paper);
  padding: 88px 32px 96px;
}
.profile__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.profile__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.profile__heading {
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
/* PROFILE heading as a link to /portfolio/. On hover, each letter
   cycles through a rainbow, staggered per-letter to make a wave. */
.profile__heading-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  cursor: pointer;
}
.profile__heading-letter {
  display: inline-block;
  color: var(--ink);
  transition: color 200ms var(--ease-out);
}
/* During the post-hover fade-out, give the letter a longer, gentler
   color transition so the rainbow → ink fade reads as smooth rather
   than snapped. JS adds .is-rainbow-fading to the link for ~700ms. */
.profile__heading-link.is-rainbow-fading .profile__heading-letter {
  transition: color 600ms var(--ease-out);
}
.profile__heading-arrow {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.7em;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.profile__heading-link:hover .profile__heading-arrow,
.profile__heading-link:focus-visible .profile__heading-arrow {
  opacity: 1;
  transform: translateX(0);
}
/* Rainbow runs while the .is-rainbowing class is on the link. JS adds
   the class on hover/focus and only removes it on the next
   animationiteration after the pointer leaves — so the wave always
   finishes its current loop instead of cutting mid-color. */
.profile__heading-link.is-rainbowing .profile__heading-letter {
  animation: rainbow-wave 1.4s linear infinite;
}
/* Stagger the animation start per letter so the colors flow across
   the word like a wave. */
.profile__heading-link.is-rainbowing .profile__heading-letter:nth-child(1) { animation-delay: 0.00s; }
.profile__heading-link.is-rainbowing .profile__heading-letter:nth-child(2) { animation-delay: 0.10s; }
.profile__heading-link.is-rainbowing .profile__heading-letter:nth-child(3) { animation-delay: 0.20s; }
.profile__heading-link.is-rainbowing .profile__heading-letter:nth-child(4) { animation-delay: 0.30s; }
.profile__heading-link.is-rainbowing .profile__heading-letter:nth-child(5) { animation-delay: 0.40s; }
.profile__heading-link.is-rainbowing .profile__heading-letter:nth-child(6) { animation-delay: 0.50s; }
.profile__heading-link.is-rainbowing .profile__heading-letter:nth-child(7) { animation-delay: 0.60s; }
@keyframes rainbow-wave {
  0%   { color: #FF4D4D; }
  14%  { color: #FF9F1C; }
  28%  { color: #FFD60A; }
  42%  { color: #34D399; }
  57%  { color: #38BDF8; }
  71%  { color: #818CF8; }
  85%  { color: #C084FC; }
  100% { color: #FF4D4D; }
}
@media (prefers-reduced-motion: reduce) {
  .profile__heading-link.is-rainbowing .profile__heading-letter {
    animation: none;
    color: var(--accent-orange);
  }
}
.profile__intro {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 460px;
  margin-top: 14px;
}
.profile__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Profile card */
.profile-card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* "And many more" CTA tile that closes the home PROFILE grid. */
.profile-card--more {
  grid-column: span 2;             /* sits beside slot 4 — fills the row's last 2 cells */
  position: relative;
  background: var(--accent-orange);
  color: var(--ink);
  text-decoration: none;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 32px;
  min-height: 240px;
  transition: transform 220ms var(--ease-bounce), box-shadow 220ms var(--ease-out);
}
.profile-card--more:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}
.profile-card__more-watermark {
  position: absolute;
  right: 18px;
  top: 4px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}
.profile-card__more-inner {
  position: relative;
  max-width: 520px;
}
.profile-card__more-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}
.profile-card__more-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 10px;
  text-wrap: balance;
}
.profile-card__more-note {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 12px;
}
.profile-card__more-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  margin-top: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}
.profile-card--more:hover .profile-card__more-cta {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.profile-card__cover {
  position: relative;
  aspect-ratio: 5 / 3;
  border-bottom: 2.5px solid var(--ink);
  overflow: hidden;
}
/* Banner cover: real artwork fills the cover. A top-down vignette keeps
   the title legible no matter what's behind it; the title/disc/tag sit
   above the vignette via z-index. */
.profile-card__cover--banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 42%, transparent 72%);
  pointer-events: none;
}
.profile-card__cover--banner .profile-card__title,
.profile-card__cover--banner .profile-card__disc,
.profile-card__cover--banner .profile-card__tag {
  z-index: 1;
}
.profile-card__stripes {
  position: absolute;
  inset: 0;
  opacity: 0.16;
}
.profile-card__glyph {
  position: absolute;
  right: -10px;
  top: -30px;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 220px;
  line-height: 0.8;
  opacity: 0.16;
  user-select: none;
  pointer-events: none;
}
.profile-card__title {
  position: absolute;
  left: 18px;
  top: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: pre-line;
  text-wrap: balance;
  max-width: 75%;
}
.profile-card__disc {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.profile-card__disc img {
  width: 52px;
  height: 52px;
  transform: rotate(-8deg);
}
/* When the disc holds a full circular logo (PNG) instead of a small icon,
   let the image fill the disc and skip the rotation so logotype stays readable. */
.profile-card__disc--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  transform: none;
}
.profile-card__tag {
  position: absolute;
  right: 12px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.profile-card__bottom {
  padding: 14px 16px 16px;
}
.profile-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.profile-card__dev {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.profile-card__services {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
  margin-top: 8px;
}
.profile-card__services-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange-2);
  margin-right: 6px;
  font-weight: 700;
}
.profile-card__locales {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.profile-card__locale {
  font-family: var(--font-mono);
  font-size: 10px;
}

/* =====================================================================
   PARTNER
   ===================================================================== */
.partner {
  background: var(--partner-bg);
  padding: 88px 32px 96px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.partner__watermark {
  position: absolute;
  right: -40px;
  top: -60px;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 320px;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.partner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.partner__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.partner__heading {
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.partner__intro {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: #2B1F16;
  max-width: 480px;
  margin-top: 14px;
}
.partner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.logo-tile {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  min-height: 168px;
  display: grid;
  place-items: center;
  padding: 24px 26px;
  overflow: hidden;
  transition: background-color 380ms ease;
}
.logo-tile--dark {
  background: var(--partner-dark-tile);
}
.logo-tile__idx {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  transition: color 380ms ease;
}
.logo-tile--dark .logo-tile__idx { color: #A89B8C; }
.logo-tile__dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-orange);
}
.logo-tile img {
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.logo-tile__img--multiply { mix-blend-mode: multiply; }

/* Logo-rotation stage — multiple logos stack in one grid cell.
   Active logo is visible + centered; others sit "below" (off-stage)
   until they're swapped in. Outgoing logo slides up and out. */
.logo-tile__stage {
  display: grid;
  place-items: center;
  width: 100%;
}
.logo-tile__stage > .logo-tile__logo {
  grid-area: 1 / 1;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.logo-tile__stage > .logo-tile__logo.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.logo-tile__stage > .logo-tile__logo.is-leaving {
  opacity: 0;
  transform: translateY(-22px);
}

@media (prefers-reduced-motion: reduce) {
  .logo-tile__stage > .logo-tile__logo {
    transition: none;
  }
}

/* =====================================================================
   SERVICE v3
   ===================================================================== */
.services {
  background: var(--paper);
  padding: 88px 32px 96px;
}
.services__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.services__heading {
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.services__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 22px;
  scroll-margin-top: 90px;
  display: flex;
  flex-direction: column;
}
.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.service-card__bubble {
  position: relative;
  width: 78px;
  height: 60px;
  background: var(--accent-peach);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.service-card__bubble::after {
  content: '';
  position: absolute;
  left: 12px;
  bottom: -10px;
  width: 14px;
  height: 14px;
  background: var(--accent-peach);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.service-card__bubble img {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
}
.service-card__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-top: 22px;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
  margin: 6px 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.service-card__desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}
.service-card__tags {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* =====================================================================
   CONTACT CTA v3
   ===================================================================== */
.cta {
  background: var(--accent-orange);
  padding: 104px 32px 110px;
  position: relative;
  overflow: hidden;
}
.cta__watermark {
  position: absolute;
  left: -30px;
  top: -10px;
  transform: rotate(-8deg);
  opacity: 0.18;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 380px;
  color: var(--ink);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}
.cta__halftone {
  position: absolute;
  right: -40px;
  top: 20px;
  width: 320px;
  height: 320px;
  background-image: radial-gradient(var(--ink) 1.4px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
  mask-image: radial-gradient(circle, black 30%, transparent 70%);
  pointer-events: none;
}
.cta__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.cta__heading {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.cta__sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 560px;
  margin: 22px auto 30px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 32px 40px;
  position: relative;
  overflow: hidden;
}
.footer__watermark {
  position: absolute;
  right: -30px;
  bottom: -80px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 380px;
  color: var(--ink-2);
  line-height: 0.8;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
}
.footer__grid {
  max-width: var(--max-w-md);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer__brand img {
  height: 48px;
  width: auto;
  display: block;
}
.footer__brand span {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-4);
  margin-top: 12px;
  max-width: 340px;
}
.footer__col-head {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tangerine);
  margin-bottom: 12px;
}
.footer__col div {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  margin-bottom: 8px;
}
.footer__col a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.footer__col a:hover {
  color: var(--accent-tangerine, #FFB169);
  border-bottom-color: currentColor;
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-4);
  transition: color 0.2s;
}
.footer__social-link:hover { color: var(--paper); }
.footer__legal {
  max-width: var(--max-w-md);
  margin: 36px auto 0;
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--ink-2);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-4);
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================================
   CONTACT MODAL (unchanged from v2)
   ===================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 23, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-sticker-lg);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 92vh;
  overflow: auto;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: var(--r-pill);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  margin: 10px 0 20px;
  letter-spacing: -0.02em;
}
.form__group { margin-bottom: 14px; }
.form__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form__input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: box-shadow 150ms var(--ease-out);
}
.form__input:focus { box-shadow: var(--shadow-sticker-sm); }
.form__services {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form__chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  cursor: pointer;
}
.form__chip.is-active { background: var(--accent-orange); }
.modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.modal__sent {
  text-align: center;
  padding: 16px 0 8px;
}
.modal__stamp {
  display: inline-block;
  animation: stamp 600ms var(--ease-bounce);
}
.modal__stamp img { width: 120px; height: 120px; }
.modal__sent-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
}
.modal__sent-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-2);
  max-width: 360px;
  margin: 0 auto 18px;
}
@keyframes stamp {
  0%   { transform: scale(3) rotate(-40deg); opacity: 0; }
  60%  { transform: scale(0.9) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Hero stacks below 980px */
@media (max-width: 980px) {
  .hook-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hook-hero__copy {
    padding: 48px 24px 36px;
  }
  .hook-hero__wordmark         { font-size: 104px; border-bottom-width: 4px; padding-bottom: 4px; }
  .hook-hero__wordmark--studio { font-size: 32px; margin-top: 8px; }
  .hook-hero__tagline          { font-size: 34px; }
  .hook-hero__body             { font-size: 15px; }
  .hook-hero__tiles {
    padding: 32px 20px 40px;
    min-height: 540px;
  }
}

/* Cards collapse below 960px */
@media (max-width: 960px) {
  .profile__grid,
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile__heading,
  .partner__heading,
  .services__heading {
    font-size: 72px;
  }
  .cta__heading { font-size: 60px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .header__nav { display: none; }
  .profile__grid,
  .services__grid,
  .partner__grid {
    grid-template-columns: 1fr;
  }
  .profile-card--more { grid-column: 1 / -1; min-height: 200px; padding: 28px 22px; }
  .profile-card__more-title { font-size: 32px; }
  .profile-card__more-watermark { font-size: 96px; right: 8px; }
  .profile,
  .partner,
  .services,
  .cta,
  .footer { padding-left: 20px; padding-right: 20px; }

  .profile__heading,
  .partner__heading,
  .services__heading { font-size: 56px; }
  .cta__heading      { font-size: 46px; }
  .footer__grid      { grid-template-columns: 1fr; }

  .pill-tile__label  { font-size: 30px; }
  .pill-tile__disc   { width: 64px; height: 64px; }
  .pill-tile__disc img { width: 42px; height: 42px; }
}
