/* ===== Tokens ===== */
:root {
  --navy: #0F1B3D;
  --navy-2: #182554;
  --ink: #0A0F22;
  --paper: #FFFFFF;
  --bg: #F7F6F2;
  --bg-2: #EFEDE6;
  --line: rgba(15, 27, 61, 0.10);
  --line-soft: rgba(15, 27, 61, 0.06);
  --muted: #5B6478;
  --muted-2: #8A92A3;
  --accent: #C9A96E;          /* warm sand */
  --shadow-sm: 0 1px 2px rgba(15,27,61,.04), 0 2px 6px rgba(15,27,61,.04);
  --shadow-md: 0 4px 14px rgba(15,27,61,.06), 0 12px 32px rgba(15,27,61,.06);
  --shadow-lg: 0 10px 30px rgba(15,27,61,.08), 0 30px 60px rgba(15,27,61,.10);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --container: 1380px;
  --pad-y: clamp(64px, 9vw, 104px);
  --pad-x: clamp(20px, 4vw, 40px);
  --gap-card: clamp(14px, 1.6vw, 24px);
}

[data-density="compact"] {
  --pad-y: clamp(48px, 7vw, 72px);
}
[data-density="airy"] {
  --pad-y: clamp(72px, 12vw, 128px);
}

[data-theme="ink"] {
  --navy: #0A0F22;
  --navy-2: #1A2240;
  --accent: #B7A98A;
}
[data-theme="indigo"] {
  --navy: #1E2A78;
  --navy-2: #2A3893;
  --accent: #C9A96E;
}
[data-theme="forest"] {
  --navy: #1F3A36;
  --navy-2: #2C534D;
  --accent: #B89968;
}
[data-theme="charcoal"] {
  --navy: #1B1D22;
  --navy-2: #2A2D34;
  --accent: #B7A98A;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  text-wrap: pretty;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding: var(--pad-y) 0;
  position: relative;
}

/* ===== Type ===== */
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--navy);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0;
}

.h-display {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.h-section {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.h-card {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
}
.lead {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}
.kicker {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--navy);
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arrow {
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(15,27,61,.18),
    0 8px 22px rgba(15,27,61,.22),
    inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(201,169,110,.28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(15,27,61,.20),
    0 14px 32px rgba(15,27,61,.26),
    0 0 0 4px rgba(201,169,110,.14);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  border-color: var(--navy);
  box-shadow: 0 8px 22px rgba(15,27,61,.10);
}
.btn-sm { padding: 11px 18px; font-size: 13.5px; }

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* glass-card mixin: subtle frosted glass over animated bg */
.reason,
.service,
.tech-card,
.proj,
.proj-sm-card,
.profile-card,
.career-card,
.values-bar,
.profile-bottom,
.channel,
.post,
.cta-banner,
.contact-info,
.form,
.note-box,
.contact-note {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.banner {
  background: linear-gradient(135deg, rgba(239, 237, 230, 0.85), rgba(229, 226, 215, 0.85));
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.chip-outline {
  background: transparent;
  border: 1px solid var(--line);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Noto Sans JP", "Inter", sans-serif;
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: "Inter", serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.brand .name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand .role { font-size: 11.5px; color: var(--muted); letter-spacing: 0.05em; }

.nav-links {
  display: flex; align-items: center; gap: 30px;
  font-size: 14.5px;
  color: var(--ink);
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink);
  font-weight: 500;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--navy);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 3px;
  background: var(--paper);
}
.lang-toggle button {
  border: 0; background: transparent;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.lang-toggle button.active {
  background: var(--navy); color: #fff;
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(72px + 56px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 92% 8%, rgba(201,169,110,0.10), transparent 60%),
    radial-gradient(900px 600px at 5% 95%, rgba(30,42,120,0.06), transparent 65%);
}
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.site-header,
main,
.site-footer { position: relative; z-index: 1; }
.hero > .container { position: relative; z-index: 2; }
.hero .hero-bg { z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.hero-tagline {
  margin: 0 0 20px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.55;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-tagline::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.20), 0 0 12px rgba(201, 169, 110, 0.55);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,169,110,.20), 0 0 12px rgba(201,169,110,.55); }
  50% { box-shadow: 0 0 0 9px rgba(201,169,110,.06), 0 0 22px rgba(201,169,110,.40); }
}
.hero h1 .accent {
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: 12px;
  background: linear-gradient(90deg, rgba(201,169,110,.45), rgba(201,169,110,0));
  z-index: -1;
}
.hero-rule {
  width: 56px; height: 1px; background: var(--ink);
  margin: 24px 0;
}
.hero-desc {
  max-width: 540px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-microcopy {
  margin-top: 20px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 12.5px;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.cta-microcopy .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-microcopy .item svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Mobile sticky CTA bar ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: rgba(247, 246, 242, 0.96);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(15, 27, 61, 0.08);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow:
    0 1px 2px rgba(15,27,61,.18),
    0 8px 22px rgba(15,27,61,.22);
}
.sticky-cta a::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.30);
  animation: pulse-dot-sticky 2.4s ease-in-out infinite;
}
@keyframes pulse-dot-sticky {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,169,110,.30); }
  50% { box-shadow: 0 0 0 6px rgba(201,169,110,.10); }
}
.sticky-cta a span.arrow { display: inline-flex; }
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }
}

.hero-visual {
  position: relative;
  height: 520px;
}
.hero-visual img {
  position: absolute;
  border-radius: var(--r-xl);
  box-shadow:
    0 1px 3px rgba(15,27,61,.10),
    0 12px 32px rgba(15,27,61,.14),
    0 32px 80px rgba(15,27,61,.20);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.6);
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -28px; right: -28px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.45), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  bottom: -32px; left: -32px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,42,120,.35), transparent 70%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: -40px -120px -40px 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(15,27,61,.05), transparent 60%);
  z-index: 0;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.stat {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 22px 22px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.stat .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--navy);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.stat .num {
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 16px;
  line-height: 1.3; color: var(--ink);
}
.stat .lbl {
  font-size: 12.5px; color: var(--muted); margin-top: 4px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ===== Section header ===== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head .sh-right { padding-bottom: 6px; }
.section-head h2 small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ===== Reasons ===== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.reason {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 300px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.reason {
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.reason:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(15,27,61,.06),
    0 12px 28px rgba(15,27,61,.10),
    0 24px 60px rgba(15,27,61,.10);
  border-color: rgba(201,169,110,.35);
}
.reason .num {
  font-family: "Inter", sans-serif;
  font-size: 12.5px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.14em;
  margin-bottom: 2px;
}
.reason h3 { font-size: 19px; line-height: 1.45; }
.reason p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin: 0; }
.reason .ph {
  margin-top: auto;
  height: 150px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.reason .ph img { object-position: center top; }

.banner {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--bg-2), #E5E2D7);
  border-radius: var(--r-xl);
  padding: 32px 44px;
  display: flex; align-items: center; gap: 28px;
  position: relative;
  overflow: hidden;
}
.banner-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.banner h3 { font-size: 21px; line-height: 1.45; margin-bottom: 6px; }
.banner p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.7; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.service {
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(15,27,61,.06),
    0 12px 28px rgba(15,27,61,.10),
    0 24px 60px rgba(15,27,61,.10);
  border-color: rgba(201,169,110,.35);
}
.service .img {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  position: relative;
  overflow: hidden;
}
.service .img::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(15,27,61,.025) 12px 13px);
  display: none;
}
.service .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.service .ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  display: grid; place-items: center;
  margin-top: -38px;
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}
.service h3 { font-size: 17px; line-height: 1.45; }
.service p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.75; }
.service .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.service .tags .chip { font-size: 11.5px; padding: 5px 10px; }

/* CTA banner */
.cta-banner {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 24px 32px;
  display: flex; align-items: center; gap: 22px;
}
.cta-banner .ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--navy);
  display: grid; place-items: center;
}
.cta-banner h3 { font-size: 19px; line-height: 1.45; margin-bottom: 4px; }
.cta-banner p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.cta-banner .spacer { flex: 1; }

/* ===== Tech Stack ===== */
.tech-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}
.tech-diagram {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 245px;
}
.tech-diagram .diagram-img { object-fit: contain; padding: 24px; }
.tech-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.tech-col { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tech-col .lbl { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 8px; }
.tech-col .box {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 11px; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.tech-col .pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  display: inline-flex; align-items: center; gap: 6px;
}

.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tech-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(15,27,61,.06),
    0 10px 24px rgba(15,27,61,.10);
  border-color: rgba(201,169,110,.35);
}
.tech-card .num-row { display: flex; align-items: center; gap: 10px; }
.tech-card .num { font-family: "Inter"; font-size: 12px; color: var(--navy); font-weight: 600; letter-spacing: 0.14em; }
.tech-card h3 { font-size: 16px; line-height: 1.4; }
.tech-card .ph {
  height: 140px;
  background: var(--bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: var(--muted-2);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
}
.tech-card .ph img { object-position: center top; }
.tech-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.75; }
.tech-card .stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  align-self: stretch;
}
.tech-card .stack .chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.tech-card .stack .chip:hover {
  border-color: var(--navy);
  background: var(--bg);
  transform: translateX(2px);
}
.tech-card .stack .chip .tech-ico {
  width: 18px; height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.tech-card .stack .chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  margin-left: 4px;
}
.tech-card .ph { height: 130px; }
.tech-cards { align-items: stretch; }
.tech-card { height: 100%; }
/* ===== Featured Projects ===== */
.note-box {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.note-box strong { color: var(--ink); font-weight: 600; }

.projects-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.proj {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: stretch;
}
.proj-sm { grid-template-columns: 1fr 1fr; }
.proj .img {
  background: var(--bg);
  border-radius: var(--r-md);
  border: 0;
  min-height: 240px;
  height: 100%;
  color: var(--muted-2);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
  overflow: hidden;
}
.proj .img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: transparent;
  display: block;
}
.proj > div:nth-child(2) { display: flex; flex-direction: column; }
.proj .img::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(15,27,61,.03) 14px 15px);
  display: none;
}
.proj .num-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.proj .num { font-family: "Inter"; font-size: 12px; color: var(--navy); font-weight: 600; letter-spacing: 0.14em; }
.proj h3 { font-size: 18px; line-height: 1.4; margin-top: 2px; }
.proj .cat { font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }
.proj dl { margin: 14px 0 0; }
.proj dl div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.proj dl div:last-child { border-bottom: 1px solid var(--line-soft); }
.proj dt { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-top: 2px; letter-spacing: 0.02em; font-weight: 500; }
.proj dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.7; }

.projects-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.proj-sm-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
}
.proj-sm-card .img {
  height: 180px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.proj-sm-card .img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: transparent;
  display: block;
}
.proj-sm-card h3 { font-size: 16.5px; line-height: 1.4; }
.proj-sm-card dl { margin-top: 14px; }
.proj-sm-card dl div { padding: 8px 0; grid-template-columns: 84px 1fr; }
.proj-sm-card dt { font-size: 12px; }
.proj-sm-card dd { font-size: 13px; line-height: 1.7; }

/* ===== Profile ===== */
.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.profile-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
.profile-photo {
  background: linear-gradient(180deg, #EFEDE6 0%, #E5E2D7 100%);
  position: relative;
  display: block;
  width: 100%;
  height: clamp(360px, 38vw, 460px);
  overflow: hidden;
}
.profile-photo .portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.02) saturate(0.95);
}
.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 27, 61, 0.22) 100%);
}
.profile-info { padding: 32px 32px 28px; }
.profile-info h3 { font-size: 28px; line-height: 1.3; }
.profile-info .role-line { color: var(--navy); font-size: 13.5px; margin: 6px 0 18px; letter-spacing: 0.04em; }
.profile-info .meta { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.profile-info .meta div { display: flex; gap: 8px; align-items: center; }
.profile-info p { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.85; }
.profile-info .badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.profile-info .badge {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.profile-info .badge:hover {
  border-color: rgba(201,169,110,.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,27,61,.06);
}
.profile-info .badge .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: var(--navy);
  flex-shrink: 0;
}
.profile-info .badge b {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.35;
}
.profile-info .badge > span:not(.ico) {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 768px) {
  .profile-info .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.profile-info .badge .ico { color: var(--navy); }
.profile-info .badge b { font-weight: 600; }
.profile-info .stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.career-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  overflow: hidden;
}
.career-photo {
  width: calc(100% + 64px);
  height: 132px;
  object-fit: cover;
  object-position: center;
  margin: -28px -32px 24px;
}
.career-card h3 { font-size: 19px; line-height: 1.4; margin-bottom: 22px; }
.timeline { display: flex; flex-direction: column; gap: 20px; position: relative; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute; left: -24px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--muted-2);
}
.tl-item.current::before { background: var(--navy); border-color: var(--navy); }
.tl-item .yr { font-family: "Inter"; font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.tl-item h4 { font-size: 15.5px; line-height: 1.45; margin: 4px 0 6px; }
.tl-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.75; }

.values-bar {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.values-bar .v { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.values-bar .v .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 10px;
  flex-shrink: 0;
}

.profile-bottom {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  border-radius: var(--r-xl);
  padding: 24px 32px;
  display: flex; align-items: center; gap: 22px;
}
.profile-bottom .ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  display: grid; place-items: center;
}
.profile-bottom h3 { font-size: 19px; line-height: 1.45; margin-bottom: 6px; }
.profile-bottom p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.profile-bottom .actions { margin-left: auto; display: flex; gap: 12px; }

/* ===== Contact ===== */
.contact-head { margin-bottom: 40px; max-width: 720px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
}
.contact-left { display: flex; flex-direction: column; gap: 18px; }
.contact-photo {
  height: 220px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--muted-2);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}
.contact-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(15,27,61,.025) 12px 13px);
  display: none;
}
.contact-info {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 26px 28px;
}
.contact-info h3 { font-size: 18px; line-height: 1.4; margin-bottom: 6px; }
.contact-info .sub { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.contact-info .row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); align-items: flex-start; }
.contact-info .row:first-of-type { border-top: 0; padding-top: 0; }
.contact-info .row .ico { color: var(--navy); margin-top: 2px; flex-shrink: 0; }
.contact-info .row .lbl { font-size: 12px; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.02em; }
.contact-info .row .val { font-size: 14.5px; color: var(--ink); font-weight: 500; line-height: 1.55; }
.contact-info .row .val small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 4px; line-height: 1.65; }
.contact-info ul { margin: 8px 0 0; padding: 0 0 0 20px; }
.contact-info ul li { font-size: 13.5px; color: var(--muted); line-height: 1.75; padding: 3px 0; }
.contact-note {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 11.5px;
  color: var(--muted);
  display: flex; gap: 8px; align-items: flex-start;
}

.form {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 28px 32px 32px;
}
.form h3 { font-size: 19px; line-height: 1.4; margin-bottom: 12px; }
.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.form-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-trust span svg {
  color: var(--accent);
  flex-shrink: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.field label .req { background: #C04848; color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #FCFBF8;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,27,61,.08);
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  font-size: 13.5px;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.radio:hover {
  border-color: var(--navy);
  background: var(--bg);
}
.radio:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15,27,61,.12), 0 6px 14px rgba(15,27,61,.10);
}
.radio:has(input:checked) input { accent-color: #fff; }
.radio input {
  margin: 0;
  accent-color: var(--navy);
  width: 14px; height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.form .submit-row { margin-top: 20px; }
.btn-submit {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15,27,61,.18),
    0 8px 22px rgba(15,27,61,.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(201,169,110,.28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn-submit:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(15,27,61,.20),
    0 14px 32px rgba(15,27,61,.26),
    0 0 0 4px rgba(201,169,110,.14);
}
.btn-submit:hover::after { transform: translateX(110%); }
.btn-submit:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
  box-shadow: none;
}
.btn-submit:disabled::after { display: none; }
.form-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.5; }
.form-error,
.form-cooldown {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.form-error { color: #C04848; }
.form-cooldown { color: var(--muted); }
.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-success {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 48px 24px;
}
.contact-success .success-icon {
  color: var(--navy);
  display: inline-flex;
}
.contact-success h3 { margin-bottom: 0; }
.contact-success p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  margin-top: 64px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-brand .name { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.foot-brand p { font-size: 13.5px; color: rgba(255,255,255,.6); margin: 0; max-width: 360px; line-height: 1.8; }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot ul a { font-size: 14px; color: rgba(255,255,255,.65); }
.foot ul a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.show { opacity: 1; transform: translateY(0); }

/* Subtle floating shapes for visual interest */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
}
.banner, .cta-banner, .profile-bottom {
  position: relative;
  overflow: hidden;
}
.banner::after, .cta-banner::after, .profile-bottom::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.18), transparent 70%);
  pointer-events: none;
  animation: float-slow 8s ease-in-out infinite;
}

/* Decorative section eyebrow accent */
.section-head h2 small::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 12px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(201,169,110,.18);
}

/* ===== EN mode ===== */
[data-lang="en"] .jp { display: none; }
[data-lang="jp"] .en { display: none; }

/* ===== Mobile menu (toggled via React state) ===== */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  align-items: center; justify-content: center;
  color: var(--ink);
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--navy); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 12px; right: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a:hover { background: var(--bg-2); }
.mobile-menu .ext {
  display: inline-flex;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.mobile-menu hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 4px 0;
}

/* ===== Responsive (desktop-down) ===== */

/* Large laptop: tighter container padding */
@media (max-width: 1280px) {
  .nav-links { gap: 22px; font-size: 13px; }
  .hero-grid { gap: 40px; }
  .tech-intro { gap: 36px; }
}

/* Medium laptop / large tablet landscape */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; font-size: 12.5px; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tech-cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .projects-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .profile-info .badges { gap: 8px; }
  .hero-visual { height: 460px; }
}

/* Tablet landscape (~iPad) */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand .role { display: none; }
  .hero { padding-top: calc(72px + 32px); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { height: clamp(280px, 50vw, 420px); }
  .hero-desc { max-width: 600px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .sh-right { padding-bottom: 0; }
  .tech-intro { grid-template-columns: 1fr; gap: 28px; }
  .profile-intro { grid-template-columns: 1fr; gap: 16px; }
  .profile-grid { grid-template-columns: 1fr; gap: 18px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-photo { min-height: 0; aspect-ratio: 4/3; max-height: 420px; }
  .career-photo { width: calc(100% + 64px); height: 110px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .projects-row, .proj { grid-template-columns: 1fr; gap: 18px; }
  .proj { padding: 22px; }
  .proj .img { height: clamp(180px, 30vw, 260px); }
  .channels { grid-template-columns: 1fr; }
  .channel { padding: 24px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .banner { flex-direction: column; align-items: flex-start; padding: 28px; gap: 16px; }
  .profile-bottom { flex-direction: column; align-items: flex-start; padding: 24px; }
  .profile-bottom .actions { margin-left: 0; flex-wrap: wrap; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 22px 24px; gap: 14px; }
  .cta-banner .spacer { display: none; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* Tablet portrait / small tablet */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-cards { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .reason { padding: 22px 20px; min-height: 0; }
  .reason .ph { height: 130px; }
  .projects-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .h-display { font-size: clamp(36px, 7vw, 56px); }
  .h-section { font-size: clamp(30px, 6vw, 44px); }
}

/* Mobile (large) */
@media (max-width: 640px) {
  .container { padding: 0 var(--pad-x); }
  .nav { height: 64px; }
  .brand .name { font-size: 14px; }
  .brand .mark { width: 34px; height: 34px; font-size: 14px; }
  .lang-toggle button { padding: 5px 10px; font-size: 11.5px; }
  .btn-sm { padding: 8px 14px; font-size: 12px; }
  .hero { padding-top: calc(64px + 24px); padding-bottom: 56px; }
  .hero-rule { margin: 18px 0; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { padding: 12px 18px; font-size: 12.5px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 16px; gap: 12px; }
  .stat .ico { width: 32px; height: 32px; }
  .stat .num { font-size: 13.5px; }
  .reasons-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .tech-cards { grid-template-columns: 1fr; }
  .projects-grid-4 { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .profile-info { padding: 24px 22px 22px; }
  .career-card { padding: 24px; }
  .career-photo { width: calc(100% + 48px); margin: -24px -24px 22px; height: 100px; }
  .values-bar { grid-template-columns: 1fr; padding: 18px 22px; }
  .contact-info { padding: 22px; }
  .form { padding: 22px; }
  .field input, .field textarea { padding: 12px 14px; font-size: 13px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .banner { padding: 24px 22px; }
  .banner h3 { font-size: 17px; }
  .channel { padding: 22px; flex-direction: column; gap: 14px; }
  .channel .arrow-btn { top: 22px; bottom: auto; right: 22px; }
  .channel .stats { gap: 20px; }
  .proj-cta-actions { flex-wrap: wrap; }
}

/* Small mobile */
@media (max-width: 420px) {
  .brand .name { font-size: 13px; }
  .lang-toggle { padding: 2px; }
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr; }
  .h-display { font-size: clamp(28px, 8vw, 40px); }
  .h-section { font-size: clamp(26px, 7vw, 36px); }
  .profile-info .badge { padding: 10px 12px; }
  .timeline { padding-left: 18px; }
}
