/* =====================================================================
   2ITZ STUDIO — Production stylesheet
   Extends design tokens from colors_and_type.css (inlined below).
   ===================================================================== */

@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;

  --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: 1200px;
}

/* --- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
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; }

/* --- Utilities ------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
}
.eyebrow--red  { color: var(--err); }
.eyebrow--tan  { color: var(--accent-tangerine); }

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

/* --- Button ---------------------------------------------------------- */
.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 ------------------------------------------------------------ */
.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--mono   { font-family: var(--font-mono); font-size: 11px; }

/* --- Card ------------------------------------------------------------ */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker);
  padding: 24px;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.header.is-scrolled { border-bottom-color: rgba(26, 23, 20, 0.12); }
.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.header__logo img { width: 36px; height: 36px; }
.header__logo span {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}
.header__nav { display: flex; gap: 24px; }
.header__nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms var(--ease-out);
  padding-bottom: 2px;
}
.header__nav a:hover { border-bottom-color: var(--accent-orange); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px 32px 64px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 16px 0 0;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin-top: 24px;
}
.hero__ctas   { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero__pills  { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }

.hero__motifs { position: relative; min-height: 420px; }
.hero__motif  { position: absolute; }
.hero__motif--rocket  { top: 20px; right: 40px; animation: bob 3s ease-in-out infinite; }
.hero__motif--rocket img  { width: 180px; height: 180px; transform: rotate(-8deg); }
.hero__motif--chest   { top: 220px; left: 10px; animation: bob 3.6s ease-in-out infinite; animation-delay: 0.4s; }
.hero__motif--chest img   { width: 140px; height: 140px; transform: rotate(6deg); }
.hero__motif--globe   { top: 60px; left: -10px; animation: bob 4s ease-in-out infinite; animation-delay: 0.8s; }
.hero__motif--globe img   { width: 90px; height: 90px; transform: rotate(-12deg); }
.hero__motif--seal    { bottom: 20px; right: 10px; }
.hero__motif--seal img    { width: 110px; height: 110px; transform: rotate(14deg); }

@keyframes bob {
  0%, 100% { transform: translateY(-4px); }
  50%      { transform: translateY(4px); }
}

/* =====================================================================
   SERVICE GRID
   ===================================================================== */
.services {
  background: var(--paper-2);
  padding: 96px 32px;
}
.services__heading {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 48px;
  max-width: 720px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  position: relative;
  padding-top: 40px;
}
.service--orange-shadow { box-shadow: var(--shadow-sticker-orange); background: var(--paper-2); }
.service__motif {
  position: absolute;
  top: -30px;
  left: 20px;
}
.service__motif img { width: 80px; height: 80px; transform: rotate(-6deg); }
.service__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin: 8px 0 12px;
}
.service__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.service__tags {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* =====================================================================
   LQA DEMO
   ===================================================================== */
.lqa {
  background: var(--paper-2);
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}
.lqa__watermark {
  position: absolute;
  left: -20px;
  bottom: -80px;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 340px;
  color: var(--paper-3);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}
.lqa__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.lqa__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.lqa__heading {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 0;
  max-width: 760px;
}
.lqa__intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 340px;
  margin: 0;
}

.lqa__source {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker-orange);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.lqa__source-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tangerine);
  min-width: 80px;
}
.lqa__source-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.lqa__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lqa__chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 150ms var(--ease-out);
}
.lqa__chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-sticker-sm); }
.lqa__chip.is-active {
  background: var(--accent-orange);
  box-shadow: var(--shadow-sticker-sm);
}
.lqa__chip-flag { font-size: 16px; }
.lqa__chip-code {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
}

.lqa__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lqa__panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker);
  padding: 22px;
  position: relative;
}
.lqa__panel--fix {
  background: var(--accent-peach);
  box-shadow: var(--shadow-sticker-orange);
}
.lqa__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}
.lqa__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--paper);
  background: var(--err);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 2px 10px;
}
.lqa__badge--ok { background: var(--ok); }
.lqa__translation {
  font-family: var(--font-jp), var(--font-body);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  min-height: 64px;
}
.lqa__translation--mt {
  text-decoration: line-through;
  text-decoration-color: var(--err);
  text-decoration-thickness: 2px;
}
.lqa__translation--fix { font-weight: 600; }
.lqa__explain {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(198, 58, 38, 0.08);
  border: 1px solid rgba(198, 58, 38, 0.3);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.lqa__explain-bang {
  color: var(--err);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}
.lqa__meta {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid rgba(26, 23, 20, 0.12);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.lqa__meta-status { color: var(--ok); }
.lqa__footline {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-3);
}

/* =====================================================================
   PORTFOLIO
   ===================================================================== */
.portfolio { background: var(--paper); padding: 96px 32px; }
.portfolio__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.portfolio__heading {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 0;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.title-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker);
  overflow: hidden;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.title-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-sticker-lg);
}
.title-card__art {
  height: 140px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.title-card__art-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--ink);
  letter-spacing: -0.02em;
  padding: 0 12px;
  text-align: center;
}
.title-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
.title-card__badge img {
  width: 44px;
  height: 44px;
  transform: rotate(-6deg);
}
.title-card__body { padding: 16px; }
.title-card__dev {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}
.title-card__locales {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.testimonials {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.testimonials__watermark {
  position: absolute;
  right: -60px;
  top: -40px;
  opacity: 0.15;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 400px;
  color: var(--accent-orange);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}
.testimonials__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.testimonials__heading {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 12px 0 36px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker-orange);
  padding: 22px;
}
.testimonial__quote-mark {
  font-family: var(--font-display);
  color: var(--accent-orange);
  font-size: 36px;
  line-height: 0.8;
}
.testimonial__quote {
  font-size: 15px;
  line-height: 1.55;
  margin: 4px 0 16px;
}
.testimonial__who {
  font-weight: 700;
  font-size: 14px;
}
.testimonial__role {
  font-size: 12px;
  color: var(--ink-3);
}

/* =====================================================================
   CONTACT CTA
   ===================================================================== */
.cta {
  background: var(--accent-orange);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.cta__watermark {
  position: absolute;
  left: -40px;
  top: -20px;
  transform: rotate(-12deg);
  opacity: 0.18;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 360px;
  color: var(--ink);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}
.cta__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.cta__heading {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.cta__sub {
  font-size: 18px;
  color: var(--ink);
  max-width: 560px;
  margin: 20px auto 28px;
}

/* =====================================================================
   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);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand img { width: 40px; height: 40px; }
.footer__brand span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-4);
  margin-top: 12px;
  max-width: 340px;
}
.footer__col-head {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tangerine);
  margin-bottom: 12px;
}
.footer__col div {
  font-size: 14px;
  color: var(--paper);
  margin-bottom: 8px;
}
.footer__legal {
  max-width: var(--max-w);
  margin: 36px auto 0;
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--ink-2);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-4);
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================================
   CONTACT MODAL
   ===================================================================== */
.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-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; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .hero__inner,
  .services__grid,
  .lqa__panels,
  .portfolio__grid,
  .testimonials__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__headline   { font-size: 64px; }
  .services__heading,
  .lqa__heading,
  .portfolio__heading { font-size: 44px; }
  .cta__heading     { font-size: 56px; }
  .testimonials__heading { font-size: 36px; }
  .hero__motifs     { min-height: 320px; }
  .header__nav      { display: none; }
  .lqa__watermark   { font-size: 220px; bottom: -40px; }
  .testimonials__watermark { font-size: 260px; }
  .cta__watermark   { font-size: 220px; }
  .footer__watermark { font-size: 220px; }
}
@media (max-width: 640px) {
  .container,
  .header__inner,
  .hero__inner,
  .services,
  .lqa,
  .portfolio,
  .testimonials,
  .cta,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero__headline   { font-size: 48px; }
  .services__heading,
  .lqa__heading,
  .portfolio__heading { font-size: 36px; }
  .cta__heading     { font-size: 44px; }
}
