/* ============================================================
   TANDEM — additions: rondesignlab-style header, menu overlay,
   pages (work/about/method/contact), mobile responsive.
   ============================================================ */

/* Header — replace nav bar visuals */
.site-header { padding: 18px clamp(16px, 3vw, 32px); }

.brand-mark {
  height: 48px;
  background: transparent;
  font-size: 18px;
}
.brand-mark .word { font-weight: 600; letter-spacing: -0.015em; }

.header-right { gap: 8px; }
.header-right .lang-switch { height: 48px; }
.header-right .lang-switch button { height: 40px; min-width: 40px; }

.menu-btn {
  height: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 4px 6px 4px 18px;
  border-radius: var(--r-action);
  border: 1px solid var(--line);
  background: rgba(15,16,17,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.menu-btn:hover { border-color: var(--line-2); }
.menu-btn .menu-btn-icon {
  width: 40px; height: 40px;
  background: var(--fg);
  border-radius: 999px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  transition: background .25s var(--ease-out);
}
.menu-btn .menu-btn-icon span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--bg);
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
}
.menu-btn.open .menu-btn-icon { background: var(--accent); }
.menu-btn.open .menu-btn-icon span { background: #fff; }
.menu-btn.open .menu-btn-icon span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-btn.open .menu-btn-icon span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.btn-hello {
  height: 48px;
  padding-inline: 22px 18px;
}

/* Menu overlay — fullscreen */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 70;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: 120px clamp(20px, 6vw, 80px) 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-nav {
  flex: 1;
  display: flex; flex-direction: column;
  gap: clamp(12px, 1.4vw, 22px);
  margin-top: clamp(12px, 4vw, 32px);
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 4vw, 48px);
}
.menu-nav a {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(40px, 7vw, 92px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
  color: var(--fg);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .25s var(--ease-out);
}
.menu-overlay.open .menu-nav a { opacity: 1; transform: none; }
.menu-nav a:hover { color: var(--accent); }
.menu-nav .menu-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; color: var(--mute-2);
  text-transform: uppercase;
  align-self: center;
}
.menu-nav .menu-arrow {
  font-family: var(--font-mono); font-size: 18px; color: var(--mute);
  align-self: center;
  transition: transform .35s var(--ease-out), color .25s var(--ease-out);
}
.menu-nav a:hover .menu-arrow { transform: translateX(8px); color: var(--accent); }

.menu-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  font-family: var(--font-mono); font-size: 13px; color: var(--mute);
  letter-spacing: 0.04em;
}
.menu-foot a { color: var(--fg); }
.menu-foot a:hover { color: var(--accent); }

body.menu-open { overflow: hidden; }

/* ============================================================
   Page hero (Work / About / Method)
   ============================================================ */
.page-hero {
  padding: 180px var(--pad) clamp(60px, 10vw, 120px);
}
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero-title {
  margin: 0;
  font-size: var(--t-h1);
  letter-spacing: -0.04em;
  line-height: 0.94;
  font-weight: 500;
  max-width: 18ch;
}
.page-hero-lede {
  margin-top: 28px;
  color: var(--mute);
  font-size: var(--t-h4);
  max-width: 56ch;
}

/* ============================================================
   Work index — long-row list
   ============================================================ */
.work-index {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.work-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 140px 80px 24px;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease-out), padding .3s var(--ease-out);
}
.work-row:hover { background: var(--d-1); padding-inline: 24px; }
.work-row .work-row-num { font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: 0.06em; }
.work-row-body h3 { margin: 0 0 4px 0; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; font-weight: 500; }
.work-row-body p { margin: 0; color: var(--mute); font-size: 14px; }
.work-row-tag, .work-row-stat, .work-row-year { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.work-row-stat { color: var(--accent); }
.work-row-arrow { font-family: var(--font-mono); color: var(--mute); transition: transform .3s var(--ease-out), color .3s var(--ease-out); text-align: right; }
.work-row:hover .work-row-arrow { transform: translateX(6px); color: var(--accent); }

@media (max-width: 880px) {
  .work-row {
    grid-template-columns: 36px 1fr 24px;
    gap: 16px;
    padding: 22px 4px;
  }
  .work-row-tag, .work-row-stat, .work-row-year { display: none; }
}

/* ============================================================
   About page
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-portrait {
  position: sticky; top: 120px;
}
.about-portrait .founder-photo { border: 1px solid var(--line); border-radius: var(--r-card-lg); }
.about-portrait-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--mute);
}
.about-portrait-meta .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 999px; }
.about-portrait-meta strong { color: var(--fg); display: block; font-weight: 500; font-size: 14px; font-family: var(--font-sans); letter-spacing: -0.01em; }
.about-story p {
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 28px;
  color: var(--fg);
  max-width: 38ch;
  white-space: pre-line;
}
.about-story p:nth-child(2), .about-story p:nth-child(3) { color: var(--mute); }

.principles {
  margin-top: clamp(60px, 10vw, 120px);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.principles h2 {
  margin: 0 0 32px 0;
  font-size: var(--t-h2);
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 1;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.principle {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--d-1);
}
.principle .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mute); }
.principle h4 { margin: 8px 0 8px 0; font-size: 20px; letter-spacing: -0.015em; font-weight: 500; }
.principle p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.5; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; }
  .about-portrait .founder-photo { aspect-ratio: 4 / 3 !important; max-width: 320px; }
  .principles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Method page extras
   ============================================================ */
.stack-grid, .pricing { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stack-row, .pricing-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.stack-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stack-logo {
  width: 24px; height: 24px;
  flex: 0 0 24px;
  display: inline-block;
  background-color: var(--fg);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  opacity: 1;
}
.stack-row strong { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; line-height: 1; }
.stack-row span { color: var(--mute); }
.pricing-row { grid-template-columns: 1.6fr 1fr 180px; }
.pricing-row h4 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.pricing-row .time { font-family: var(--font-mono); font-size: 13px; color: var(--mute); letter-spacing: 0.04em; }
.pricing-row .tier { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .stack-row, .pricing-row { grid-template-columns: 1fr; gap: 4px; }
  .pricing-row .tier { text-align: left; }
}

/* ============================================================
   Contact / Say hello page
   ============================================================ */
.contact-hero {
  padding: 180px var(--pad) 32px;
  text-align: left;
}
.contact-hero .eyebrow { margin-bottom: 28px; }
.hello-title {
  margin: 0;
  font-size: clamp(80px, 18vw, 280px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-weight: 500;
  color: var(--fg);
}
.hello-title em {
  font-style: italic;
  font-family: 'Times New Roman', serif;
  color: var(--accent);
  font-weight: 400;
}
.hello-title .dot-period { color: var(--accent); }
.contact-sub {
  margin: 24px 0 0;
  color: var(--mute);
  font-size: var(--t-h4);
  max-width: 50ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.contact-form {
  background: var(--d-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 24px;
}
.contact-progress {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--mute);
  letter-spacing: 0.06em;
}
.contact-progress .bar {
  flex: 1; height: 2px; background: var(--d-3); border-radius: 999px; overflow: hidden;
}
.contact-progress .bar > div {
  height: 100%; background: var(--accent);
  transition: width .35s var(--ease-out);
}
.contact-q {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 500;
}
.contact-input {
  width: 100%;
  background: var(--d-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  color: var(--fg);
  font: inherit;
  font-size: 18px;
  padding: 16px 18px;
  outline: none;
  transition: border-color .25s var(--ease-out);
  font-family: inherit;
  resize: vertical;
}
.contact-input:focus { border-color: var(--accent); }
.contact-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  height: 44px; padding-inline: 18px;
  border-radius: var(--r-action);
  border: 1px solid var(--line-2);
  background: var(--d-2);
  color: var(--fg);
  font-size: 15px;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.chip-btn:hover { border-color: var(--fg); }
.chip-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.contact-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.contact-done h3 { margin: 0; font-size: 32px; letter-spacing: -0.02em; font-weight: 500; }
.contact-done p { margin: 8px 0 0; color: var(--mute); font-size: 16px; }

.contact-aside { display: grid; gap: 16px; align-content: start; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--d-1);
  padding: 24px;
  display: grid; gap: 8px;
}
.contact-card .eyebrow { margin-bottom: 8px; }
.contact-mail {
  font-size: 18px; letter-spacing: -0.01em; font-weight: 500;
  display: block; padding: 4px 0;
}
.contact-mail:hover { color: var(--accent); }
.contact-card p { margin: 0; color: var(--mute); font-size: 14px; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Mobile pass — tighten common things
   ============================================================ */
@media (max-width: 760px) {
  .site-header { padding: 12px 14px; }
  .brand-mark .word { display: inline; }
  .menu-btn .menu-btn-label { display: none; }
  .menu-btn { padding: 4px; padding-inline: 4px; gap: 0; }
  .lang-switch { height: 44px; }
  .lang-switch button { height: 36px; min-width: 36px; font-size: 11px; }
  .btn-hello { padding-inline: 14px 12px; font-size: 13px; height: 44px; }
  .btn-hello .arrow { display: none; }
  .brand-mark { height: 44px; font-size: 16px; }

  .hero { padding-top: 80px; padding-bottom: 32px; min-height: 100svh; }
  .hero-headline { letter-spacing: -0.035em; }
  .hero-bottom { gap: 18px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }

  .section { padding-block: clamp(56px, 14vw, 96px); }
  .section-head { padding-block: 16px; gap: 8px; }

  .footer { padding: 48px 16px 24px; gap: 36px; margin-top: 80px; }
  .footer-mark { font-size: clamp(48px, 17vw, 96px); }
  .footer-grid { gap: 20px; padding-top: 24px; }

  .cta { padding: 32px 22px; }
  .cta h2 { font-size: clamp(40px, 11vw, 64px); }
  .cta-row { gap: 8px 12px; }
  .cta-row .btn { width: 100%; justify-content: center; }

  .stat { padding: 22px; }

  .compare-col { padding: 20px; }
  .compare-col li { font-size: 16px; }

  .faq-q { font-size: 18px; padding: 20px 4px; }

  .work-cover { aspect-ratio: 4 / 3; }
  .work-cover.tall { aspect-ratio: 3 / 4; }
  .work-meta { padding: 18px 18px; grid-template-columns: 1fr; }
  .work-meta .stats { text-align: left; }

  .page-hero { padding-top: 110px; padding-bottom: 48px; }
  .menu-overlay { padding: 90px 20px 28px; }
  .menu-nav { padding-top: 24px; gap: 4px; }
  .menu-nav a {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    padding-block: 12px;
    align-items: center;
  }
  .menu-nav .menu-num { display: none; }
  .menu-nav .menu-label { min-width: 0; overflow: hidden; }
  .menu-foot { font-size: 11px; }
}

@media (max-width: 460px) {
  .lang-switch button { min-width: 32px; height: 32px; font-size: 10px; padding-inline: 8px; }
  .lang-switch { height: 40px; padding: 3px; }
  .btn-hello { padding-inline: 12px; font-size: 12px; }
}
