:root {
  --ink: #0b1a2b;
  --ink-soft: #13263d;
  --paper: #f6f4ef;
  --paper-2: #eeece5;
  --teal: #1f5f70;
  --teal-deep: #153f4d;
  --teal-glow: rgba(42, 107, 122, 0.18);
  --silver: #b9c3cb;
  --accent: #7f612d;
  --accent-light: #d4b07a;
  --muted: #394b60;
  --line: rgba(11, 26, 43, 0.075);
  --line-dark: rgba(246, 244, 239, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

section[id] { scroll-margin-top: 100px; }

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  section[id] { scroll-margin-top: 72px; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--teal); color: var(--paper); }

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 140px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(246, 244, 239, 0.88);
  border-bottom: 1px solid var(--line);
  transition: height 0.3s ease, background 0.3s ease;
  overflow: visible;
}

nav.scrolled {
  height: 112px;
  background: rgba(246, 244, 239, 0.96);
  box-shadow: 0 4px 24px -8px rgba(11, 26, 43, 0.12);
}

nav.scrolled .nav-logo img { height: 86px; }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.75; }

.nav-logo img {
  height: 108px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(11, 26, 43, 0.18));
  transition: height 0.3s ease;
  position: relative;
  z-index: 101;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.35s ease;
}

nav a:hover { color: var(--teal); }
nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.6rem 1.3rem;
  padding-bottom: 0.6rem;
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--teal-deep); color: var(--paper) !important; transform: translateY(-1px); }

.burger { display: none; }

/* ========== HERO ========== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: clamp(12rem, 16vh, 14rem) 3rem 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(42, 107, 122, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(196, 160, 98, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(42, 107, 122, 0.04) 0%, transparent 70%),
    linear-gradient(165deg, var(--paper) 0%, var(--paper-2) 100%);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11, 26, 43, 0.03) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.8;
}

/* 背景 X */
.hero-x {
  position: absolute;
  right: -10vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 54vw;
  font-weight: 300;
  line-height: 0.85;
  color: var(--teal);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.hero-grid {
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  max-width: 100%;
  min-width: 0;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.7rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 1;
  transform: none;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 44px; height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2.2rem;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.4s;
}

.hero-title em {
  font-style: italic;
  color: var(--teal);
  font-weight: 600;
}

.hero-tagline {
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 2.1;
  max-width: 1040px;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}


.hero-philosophy {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 2;
  max-width: 1080px;
  margin-top: 1.6rem;
  margin-bottom: 3.4rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.72s;
}

.hero-tagline strong {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.mobile-only-break {
  display: none;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.8s;
}

.btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(11, 26, 43, 0.45);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(5px); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.4s;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ========== SECTION BASE ========== */
section {
  padding: 8rem 3rem;
  position: relative;
}

.section-inner {
  max-width: 1380px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.section-number {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.section-number::before {
  content: '';
  display: block;
  width: 44px; height: 1px;
  background: var(--teal);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--teal);
}

/* ========== SERVICE ========== */
.service-section > .section-inner > .section-header {
  margin-bottom: 1.4rem;
}

.service-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}


.blog-header {
  margin-top: clamp(4rem, 7vw, 7rem);
}
.service-intro {
  max-width: 920px;
  font-size: 1.18rem;
  line-height: 2.1;
  color: var(--ink-soft);
  margin-bottom: 5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 107, 122, 0.28);
  background: var(--paper);
  box-shadow: 0 24px 48px -20px rgba(11, 26, 43, 0.22);
}

.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--teal);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.service-icon svg { width: 100%; height: 100%; }

.service-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.service-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(42, 107, 122, 0.78);
  margin-bottom: 1rem;
  font-weight: 500;
}

.service-desc {
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ========== X SECTION ========== */













/* ========== OUTLINE ========== */
.outline-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.outline-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.outline-left h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.outline-left h3 em {
  font-style: italic;
  color: var(--teal);
}

.outline-left p {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
}

.outline-table {
  width: 100%;
  border-collapse: collapse;
}

.outline-table tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.outline-table tr:hover { background: var(--paper-2); }
.outline-table tr:first-child { border-top: 1px solid var(--line); }

.outline-table th,
.outline-table td {
  padding: 1.4rem 1rem;
  text-align: left;
  vertical-align: top;
}

.outline-table th {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  width: 30%;
  white-space: nowrap;
}

.outline-table td {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
}

.outline-bridge {
  max-width: 760px;
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(31, 113, 135, 0.45);
}

.outline-bridge p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ========== BUSINESS PILLARS ========== */
.pillars-wrap {
  margin-top: 7rem;
  padding-top: 5rem;
  border-top: 1px solid var(--line);
}

.pillars-header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}

.pillars-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.pillars-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.pillars-title em {
  font-style: italic;
  color: var(--teal);
}

.pillars-intro {
  font-size: 1.12rem;
  line-height: 2;
  color: var(--ink-soft);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.pillar {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2.2rem 1.55rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar:hover {
  transform: translateY(-5px);
  background: var(--paper);
  border-color: var(--teal);
  box-shadow: 0 20px 40px -18px rgba(11, 26, 43, 0.22);
}

.pillar:hover::before { transform: scaleX(1); }

.pillar-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.pillar-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.pillar-body {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--muted);
}

.pillars-footnote {
  margin-top: 3rem;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-top: 2rem;
  border-top: 1px dashed var(--line);
}

/* ========== CONTACT ========== */
.contact-section {
  background: var(--ink);
  color: var(--paper);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(42, 107, 122, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.contact-section .section-title { color: var(--paper); }
/* ========== PHILOSOPHY ========== */
.philosophy-section {
  background: var(--ink);
  color: var(--paper);
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy-inner {
  max-width: 720px;
  margin: 0 auto;
}
.philosophy-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem;
  line-height: 0.5;
  color: var(--teal);
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}
.philosophy-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 2.5rem;
}
.philosophy-quote em {
  font-style: italic;
  color: var(--accent-light);
}
.philosophy-body {
  font-size: 1.12rem;
  line-height: 2.2;
  color: rgba(246, 244, 239, 0.72);
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}
.philosophy-body p { margin-bottom: 1rem; }
.philosophy-body p:last-child { margin-bottom: 0; }
.philosophy-section .section-number { color: var(--accent-light); }
.philosophy-section .section-number::before { background: var(--accent-light); }

.contact-section .section-title em { color: var(--accent-light); }
.contact-section .section-number { color: var(--accent-light); }
.contact-section .section-number::before { background: var(--accent-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-intro {
  font-size: 1.12rem;
  line-height: 2.1;
  color: rgba(246, 244, 239, 0.72);
  margin-bottom: 2.5rem;
}

.contact-info-item {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.contact-info-item:first-of-type { border-top: 1px solid var(--line-dark); }

.contact-info-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-light);
  flex-shrink: 0;
  font-weight: 700;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--paper);
  text-align: right;
  line-height: 1.5;
  word-break: break-all;
}

.contact-info-value a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 244, 239, 0.3);
  transition: border-color 0.3s ease;
}
.contact-info-value a:hover { border-color: var(--accent-light); }

/* form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.form-field label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
}

.form-field label .required { color: #ff8870; margin-left: 0.3rem; }

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(246, 244, 239, 0.2);
  padding: 0.8rem 0;
  color: var(--paper);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.3s ease;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--accent-light);
}

.form-field textarea { min-height: 120px; }

.form-field select option {
  background: var(--ink);
  color: var(--paper);
}

.form-submit {
  margin-top: 1rem;
  align-self: flex-start;
  background: var(--accent-light);
  color: var(--ink);
  border: 1px solid var(--accent-light);
  padding: 1.2rem 2.8rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.form-submit:hover {
  background: transparent;
  color: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(196, 160, 98, 0.3);
}

.form-note {
  font-size: 1rem;
  color: rgba(246, 244, 239, 0.45);
  margin-top: 1rem;
  line-height: 1.8;
}

/* ========== FOOTER ========== */
footer {
  padding: 3rem;
  background: #080f18;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.7);
  transition: opacity 0.3s ease;
}
.footer-logo img:hover { opacity: 1; filter: brightness(0) invert(1) opacity(1); }

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(246, 244, 239, 0.6);
}

.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 50;
  font-family: 'Space Mono', monospace;
}

.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-3px); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 0 1.2rem;
    height: 72px;
  }
  nav.scrolled { height: 64px; }
  nav.scrolled .nav-logo img { height: 50px; }

  .nav-logo { min-width: 0; }
  .nav-logo img {
    height: 58px;
    max-width: min(36vw, 168px);
    object-fit: contain;
  }

  nav ul {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1rem;
    right: 1rem;
    background: rgba(246, 244, 239, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 40px -24px rgba(11, 26, 43, 0.35);
    z-index: 101;
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-align: center;
  }
  .nav-cta {
    justify-content: center;
    padding: 0.95rem 1rem;
    font-size: 1rem;
  }

  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
    z-index: 102;
  }
  .burger span {
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s ease;
    display: block;
  }
  .burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Hero */
  .hero {
    padding: 8.4rem 1.5rem 4.5rem;
    min-height: 100svh;
  }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 3rem); }
  .hero-tagline { font-size: 1.04rem; max-width: 100%; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.22em; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn { width: 100%; justify-content: center; }
  .u-002 { max-width: 100%; margin-top: 2rem; }
  .u-003,
  .u-008 { grid-template-columns: 1fr; }
  .u-009 { align-items: flex-start; }
  .u-012 { margin-left: 0; padding-top: 0.2rem; }

  /* Sections */
  section { padding: 5rem 1.5rem; }
  .contact-section { padding: 6rem 1.5rem; }
  .section-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .section-header { flex-direction: column; gap: 1rem; margin-bottom: 3rem; }

  /* Grids */
  .service-grid { grid-template-columns: 1fr; }
  .name-left { position: static; }
  .name-heading { font-size: clamp(2rem, 7vw, 2.8rem); }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillars-wrap { margin-top: 4rem; padding-top: 3rem; }
  .outline-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Contact */
  .contact-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .contact-info-value { text-align: left; word-break: break-word; }
  .form-submit { width: 100%; justify-content: center; }

  /* Footer */
  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Letter rows */
  .letter-row { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.5rem 0; }
  .letter-char { font-size: 3.2rem; }
  .u-034 { align-items: flex-start; gap: 0.6rem; }
  .u-035 { font-size: 0.78rem; letter-spacing: 0.18em; min-width: 6.5rem; }
  .u-036 { font-size: 0.78rem; line-height: 1.6; }
  .u-039 { grid-template-columns: 1fr; gap: 1.8rem; }
  .u-040 { max-width: 180px; }
  .u-041,
  .u-044,
  .u-045,
  .u-046 { font-size: 0.8rem; }
  .u-066,
  .u-071 { grid-template-columns: 48px 1fr; gap: 1rem; }
  .u-067,
  .u-070 { font-size: 2.8rem; }
  .u-074 { grid-template-columns: 1fr; }

  /* X definitions */
  .x-def-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .hero { padding: 7rem 1.2rem 4.5rem; }
  .hero-title { font-size: clamp(1.5rem, 7vw, 2.6rem); }
  section { padding: 4rem 1.2rem; }
  .section-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}

/* ========== 追加コンポーネント レスポンシブ ========== */

/* Hero 3+2カード */
@media (max-width: 768px) {
  /* 上段3枚 → 1列 */
  div[style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 下段2枚 → 1列 */
  div[style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Servicesタブ → 横スクロール */
  #services .section-inner > div[style*="display:flex"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }
  /* X とは何か 3×2 → 1列 */
  div[style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Philosophyカード内テキスト */
  .philosophy-inner { padding: 0; }
  .philosophy-quote { font-size: clamp(1.4rem, 5vw, 2rem); }
  /* 組織図グリッド → 1列 */
  div[style*="repeat(auto-fit, minmax(200px"] {
    grid-template-columns: 1fr !important;
  }
  /* 折りたたみボタンのサブラベル → 非表示 */
  button > span[style*="font-size:0.72rem; color:var(--muted)"] {
    display: none;
  }
}

/* Extracted inline styles */
.u-001 { font-size:0.55em; letter-spacing:0.18em; color:var(--teal); font-family:'Space Mono',monospace; font-weight:400; display:block; margin-bottom:1.2em; }
.u-002 { margin-top:2.5rem; max-width:100%; }
.u-003 { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:0.85rem; margin-bottom:0.85rem; }
.u-004 { font-family:'Space Mono',monospace; font-size: 0.72rem; letter-spacing:0.12em; color:#c4a062; margin-bottom:0.5rem; text-transform:uppercase; }
.u-005 { font-family:'Cormorant Garamond',serif; font-size:1.4rem; font-weight:500; color:#f6f4ef; margin-bottom:0.6rem; line-height:1.12; overflow-wrap:anywhere; }
.u-006 { font-size: 0.88rem; color:rgba(246,244,239,0.86); line-height:1.65; }
.u-007 { font-family:'Space Mono',monospace; font-size: 0.72rem; letter-spacing:0.12em; color:#7aacbc; margin-bottom:0.5rem; text-transform:uppercase; }
.u-008 { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:0.85rem; }
.u-009 { display:flex; align-items:center; gap:0.8rem; }
.u-010 { font-family:'Space Mono',monospace; font-size: 0.72rem; letter-spacing:0.12em; color:#b3d7df; margin-bottom:0.5rem; text-transform:uppercase; }
.u-011 { font-family:'Cormorant Garamond',serif; font-size:1.4rem; font-weight:500; color:rgba(246,244,239,0.92); margin-bottom:0.6rem; line-height:1.12; overflow-wrap:anywhere; }
.u-012 { margin-left:auto; font-family:'Space Mono',monospace; font-size: 1rem; color:rgba(246,244,239,0.95); letter-spacing:0.1em; }
.u-013 { margin-top:2rem; }
.u-014 { position:relative; top:-0.08em; }
.u-015 { font-family:'Space Mono',monospace; font-size:0.78rem; letter-spacing:0.16em; color:rgba(127,97,45,0.78); text-transform:uppercase; margin-top:0.8rem; }
.u-016 { display:flex; gap:0; margin-bottom:3.6rem; border-bottom:1px solid rgba(11, 26, 43, 0.06); flex-wrap:wrap; }
.u-017 { font-family:'Space Mono',monospace; font-size: 0.92rem; letter-spacing:0.08em; padding:0.92rem 1.35rem; background:none; border:none; border-bottom:1px solid var(--teal); color:var(--teal); cursor:pointer; transition:all 0.2s; margin-bottom:-1px; line-height:1.35; text-align:left; }
.u-018 { font-size:0.62rem; background:var(--teal); color:var(--paper); padding:2px 6px; border-radius:2px; letter-spacing:0.1em; vertical-align:middle; }
.u-019 { font-family:'Space Mono',monospace; font-size: 0.92rem; letter-spacing:0.08em; padding:0.92rem 1.35rem; background:none; border:none; border-bottom:1px solid transparent; color:rgba(86,104,125,0.8); cursor:pointer; transition:all 0.2s; margin-bottom:-1px; line-height:1.35; text-align:left; }
.tab-core {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.tab-core span {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 97, 45, 0.3);
  background: rgba(212, 176, 122, 0.12);
  white-space: nowrap;
  line-height: 1.4;
}
[role="tab"][aria-selected="true"] {
  border-bottom-color: var(--teal) !important;
  color: var(--teal) !important;
}
[role="tab"][aria-selected="false"] {
  border-bottom-color: transparent !important;
  color: var(--muted) !important;
}
.u-020 { border:none; padding:0; margin-bottom:1.5rem; }
.brand-line {
  font-family:'Space Mono',monospace;
  font-size:0.68rem;
  letter-spacing:0.2em;
  color:var(--accent);
  text-transform:uppercase;
  margin-bottom:0.7rem;
}
.u-021 { font-family:'Cormorant Garamond',serif; font-size:clamp(1.6rem,3vw,2.2rem); font-weight:500; color:var(--ink); }
.u-022 { font-style:italic; color:var(--teal); }
.u-023 { display:none; }
.u-024 { text-align:center; padding:4rem 2rem; }
.u-025 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.28em; color:var(--teal); text-transform:uppercase; margin-bottom:1.5rem; }
.u-026 { font-family:'Cormorant Garamond',serif; font-size:clamp(1.2rem,2.5vw,1.8rem); font-weight:500; color:var(--ink); line-height:1.6; margin-bottom:1.2rem; }
.u-027 { font-size:1rem; line-height:2.0; color:var(--muted); max-width:500px; margin:0 auto; }
.u-028 { text-align:center; padding: 5rem 0; }
.u-029 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.28em; color:var(--teal); text-transform:uppercase; margin-bottom:1.2rem; }
.u-030 { font-family:'Cormorant Garamond',serif; font-size:clamp(1.4rem,3vw,2rem); font-weight:500; color:var(--ink); margin-bottom:1rem; line-height:1.5; }
.u-031 { font-size:1rem; color:var(--muted); line-height:1.9; }
.social-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.6rem 0 1rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.social-links a:hover {
  background: var(--teal);
  color: var(--paper);
  transform: translateY(-2px);
}
.social-sub-links { margin-top: 0.7rem; }
.social-sub-links a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 107, 122, 0.35);
}
.social-sub-links a:hover { border-color: var(--teal); }
.u-032 { font-size: 1rem; line-height:1.9; }
.u-033 { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.u-034 { display:flex; align-items:center; gap:0.8rem; background:none; border:none; cursor:pointer; padding:0; width:100%; text-align:left; }
.u-035 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.22em; color:var(--teal); text-transform:uppercase; }
.u-036 { font-family:'Space Mono',monospace; font-size: 1rem; color:var(--muted); }
.u-037 { margin-left:auto; color:var(--teal); font-size:1rem; transition:transform 0.3s ease; }
.u-038 { max-height:0px; opacity:0; overflow:hidden; transition: max-height 0.5s ease, opacity 0.4s ease; }
.u-039 { display:grid; grid-template-columns: 200px 1fr; gap: 3rem; align-items:start; padding: 2rem 0 1rem; }
.u-040 { width:100%; aspect-ratio:3/4; overflow:hidden; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; background:var(--paper-2); color:var(--ink-soft); font-family:'Space Mono',monospace; font-size:1.2rem; letter-spacing:0.1em; }
.u-041 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.24em; color:var(--teal); text-transform:uppercase; margin-bottom:0.6rem; }
.u-042 { font-family:'Cormorant Garamond',serif; font-size:clamp(1.6rem,3vw,2.2rem); font-weight:500; color:var(--ink); margin-bottom:1.6rem; line-height:1.2; }
.u-043 { display:flex; gap:0.5rem; flex-wrap:wrap; margin-bottom:1.6rem; }
.u-044 { font-family:'Space Mono',monospace; font-size: 1rem; padding:3px 9px; border:1px solid var(--teal); color:var(--teal); }
.u-045 { font-family:'Space Mono',monospace; font-size: 1rem; padding:3px 9px; border:1px solid var(--muted); color:var(--muted); }
.u-046 { font-family:'Space Mono',monospace; font-size: 1rem; padding:3px 9px; border:1px solid var(--accent); color:var(--accent); }
.u-047 { font-size:1rem; line-height:2.0; color:var(--ink-soft); margin-bottom:1rem; }
.u-048 { color:var(--ink); }
.u-049 { font-size:1rem; line-height:2.0; color:var(--ink-soft); }
.u-050 { margin-top:2.5rem; border-top:1px solid var(--line); padding-top:1.5rem; }
.u-051 { padding: 1.5rem 0 1rem; }
.u-052 { border-left:2px solid var(--teal); margin:0; padding:0.8rem 0 0.8rem 1.5rem; }
.u-053 { font-family:'Cormorant Garamond',serif; font-size:clamp(1.2rem,2.5vw,1.6rem); font-weight:500; color:var(--ink); line-height:1.7; margin-bottom:0.8rem; }
.u-054 { margin-top:1.2rem; border-top:1px solid var(--line); padding-top:1rem; }
.u-055 { max-height:0px; opacity:0; overflow:hidden; transition: max-height 0.6s ease, opacity 0.4s ease; }
.u-056 { padding-top:1.5rem; }
.u-057 { background:var(--paper-2); border-radius:8px; padding:3rem 2rem; margin-top:1.5rem; text-align:center; border:1px solid var(--line); }
.u-058 { font-family:'Cormorant Garamond',serif; font-size:5rem; line-height:0.5; color:var(--teal); opacity:0.3; margin-bottom:1rem; display:block; }
.u-059 { font-family:'Cormorant Garamond',serif; font-size:clamp(1.6rem,3vw,2.4rem); font-weight:500; color:var(--ink); line-height:1.3; margin-bottom:2rem; }
.u-060 { font-style:italic; color:var(--accent-light); }
.u-061 { font-family:'Cormorant Garamond','Yu Mincho','Hiragino Mincho ProN',serif; font-size:clamp(1.08rem,2.1vw,1.28rem); line-height:2.05; color:var(--ink-soft); max-width:620px; margin:0 auto 1.5rem; text-align:left; letter-spacing:0.02em; }
.u-061 p { margin-bottom:0.9rem; }
.u-061 p:last-child { margin-bottom:0; }
.u-062 { margin-bottom:1.1rem; font-size:clamp(1.12rem,2.2vw,1.36rem); line-height:1.9; }
.u-063 { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:1.1rem; color:var(--accent); letter-spacing:0.04em; }
.u-064 { padding: 2rem 0 1rem; }
.u-065 { font-size:1rem; line-height:2.0; color:var(--ink-soft); margin-bottom:2rem; }
.u-066 { display:grid; grid-template-columns:80px 1fr; gap:1.5rem; align-items:center; padding:1.2rem 0; border-bottom:1px solid var(--line); }
.u-067 { font-family:'Cormorant Garamond',serif; font-size:3.5rem; font-weight:500; color:var(--teal); text-align:center; }
.u-068 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.1em; color:var(--ink); }
.u-069 { font-size:1rem; line-height:1.9; color:var(--ink-soft); margin-top:0.4rem; }
.u-070 { font-family:'Cormorant Garamond',serif; font-size:3.5rem; font-weight:500; color:var(--accent); text-align:center; }
.u-071 { display:grid; grid-template-columns:80px 1fr; gap:1.5rem; align-items:center; padding:1.2rem 0; }
.u-072 { background:var(--paper-2); border-radius:8px; padding:2rem; margin-top:0; border:1px solid var(--line); }
.u-073 { font-size:1rem;line-height:2.0;color:var(--ink-soft);margin-bottom:2rem; }
.u-074 { display:grid;grid-template-columns:repeat(3, 1fr);gap:1rem; }
.u-075 { background:var(--paper);border:0.5px solid var(--line);border-radius:6px;padding:1.2rem; }
.u-076 { font-family:'Space Mono',monospace;font-size: 1rem;letter-spacing:0.2em;color:var(--accent);margin-bottom:0.5rem; }
.u-077 { font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-weight:500;color:var(--ink);margin-bottom:0.5rem; }
.u-078 { font-size:0.7em;color:var(--teal); }
.u-079 { font-size: 1rem;line-height:1.9;color:var(--ink-soft); }
.u-080 { font-size: 1rem; line-height:1.9; color:var(--ink-soft); margin-bottom:1.5rem; }
.u-081 { font-family:'Space Mono',monospace; font-size: 1rem; color:var(--muted); margin-top:1.5rem; letter-spacing:0.08em; }
.u-082 { background:var(--paper-2); border-radius:8px; padding: 3rem 2rem; margin-top: 1.5rem; border:1px solid var(--line); }
.u-083 { font-family:'Noto Sans JP',sans-serif; font-size:1rem; line-height:2.0; color:var(--ink-soft); max-width:640px; margin-bottom:2rem; }
.u-084 { display:flex; justify-content:center; margin-bottom:0; }
.u-085 { background:var(--paper); border:1px solid var(--accent); border-radius:8px; padding:1rem 2rem; text-align:center; min-width:180px; }
.u-086 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.22em; color:var(--accent); margin-bottom:0.4rem; font-weight:500; }
.u-087 { font-family:'Cormorant Garamond',serif; font-size:1.4rem; font-weight:500; color:var(--ink); }
.u-088 { display:flex; justify-content:center; position:relative; height:2rem; margin:0 auto; }
.u-089 { width:1.5px; height:2rem; background:linear-gradient(to bottom,#b18434,#1f7187); position:relative; z-index:1; }
.u-090 { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:0.8rem; position:relative; margin-top:1.4rem; }
.u-090::before { content:""; position:absolute; left:calc((100% - 2.4rem) / 8); right:calc((100% - 2.4rem) / 8); top:-1.4rem; height:1.5px; background:linear-gradient(to right, rgba(31,113,135,0.95), rgba(31,113,135,0.9), rgba(177,132,52,0.9)); z-index:0; }
.u-091 { background:var(--paper); border:0.5px solid var(--teal); border-radius:8px; padding:1rem; overflow:visible; position:relative; }
.u-091::before { content:""; position:absolute; left:50%; top:-1.4rem; width:1.5px; height:1.4rem; background:rgba(31,113,135,0.95); }
.u-092 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.2em; color:var(--teal); margin-bottom:0.6rem; font-weight:500; }
.u-093 { font-size: 1rem; font-weight:500; color:var(--ink); margin-bottom:0.3rem; font-family:'Noto Sans JP',sans-serif; line-height:1.35; overflow-wrap:anywhere; }
.u-094 { font-family:'Space Mono',monospace; font-size: 1rem; color:var(--teal); margin-bottom:0.8rem; font-weight:500; }
.u-095 { display:flex; flex-direction:column; gap:0.4rem; }
.u-096 { background:rgba(42,107,122,0.9); border:1px solid rgba(42,107,122,1.0); border-radius:4px; padding:0.5rem 0.8rem; display:flex; flex-direction:column; gap:0.15rem; }
.u-097 { font-family:'Space Mono',monospace; font-size: 1rem; color:#ffffff; font-weight:700; }
.u-098 { font-family:'Noto Sans JP',sans-serif; font-size:0.72rem; color:rgba(255,255,255,0.9); margin-left:0; font-weight:500; }
.u-099 { background:var(--paper); border:0.5px solid var(--accent); border-radius:8px; padding:1rem; overflow:visible; position:relative; }
.u-099::before { content:""; position:absolute; left:50%; top:-1.4rem; width:1.5px; height:1.4rem; background:rgba(177,132,52,0.95); }
.u-100 { font-family:'Space Mono',monospace; font-size: 1rem; letter-spacing:0.2em; color:var(--accent); margin-bottom:0.6rem; font-weight:500; }
.u-101 { background:rgba(196,160,98,0.65); border:1px solid rgba(196,160,98,1.0); border-radius:4px; padding:0.5rem 0.8rem; display:flex; flex-direction:column; gap:0.15rem; }
.u-102 { font-family:'Space Mono',monospace; font-size: 0.78rem; letter-spacing:0.14em; color:rgba(196,160,98,0.6); margin-bottom:0.6rem; text-transform:uppercase; }

/* Extracted interaction and accessibility styles */
.hero-entry {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}
.hero-entry-consulting {
  background: rgba(26,42,108,0.9);
  border: 1px solid rgba(196,160,98,0.8);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
}
.hero-entry-technology {
  background: rgba(11,40,60,0.9);
  border: 1px solid rgba(42,107,122,0.85);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
}
.hero-entry-execution {
  background: rgba(72,54,86,0.86);
  border: 1px solid rgba(196,160,98,0.62);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
}
.hero-entry-enable {
  background: rgba(20,50,40,0.7);
  border: 1px solid rgba(42,107,122,0.4);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
}
[data-tab-target="strategy"]:hover {
  background: rgba(31,113,135,0.96) !important;
  border-color: rgba(196,160,98,1) !important;
  box-shadow: 0 8px 28px rgba(31,113,135,0.24);
  transform: translateY(-3px);
}
[data-tab-target="technology"]:hover {
  background: rgba(20,80,110,1) !important;
  border-color: rgba(42,107,122,1) !important;
  box-shadow: 0 8px 32px rgba(42,107,122,0.3);
  transform: translateY(-3px);
}
[data-tab-target="execution"]:hover {
  background: rgba(92,66,110,0.96) !important;
  border-color: rgba(196,160,98,0.86) !important;
  box-shadow: 0 8px 28px rgba(92,66,110,0.24);
  transform: translateY(-3px);
}
[data-tab-target="enablement"]:hover {
  background: rgba(30,70,55,0.95) !important;
  border-color: rgba(42,107,122,0.7) !important;
  box-shadow: 0 4px 16px rgba(42,107,122,0.2);
}
.tab-panel[hidden] { display: none !important; }
[role="tab"]:focus-visible,
.accordion-toggle:focus-visible,
.burger:focus-visible,
.to-top:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.outline-groups {
  margin-top: 2.4rem;
}

.outline-group.u-033 {
  margin-top: 0;
  padding: 1.45rem 0;
}

.outline-group-body {
  padding: 2rem 0 0.4rem;
}

.outline-subsection {
  padding: 1.8rem 0;
  border-top: 1px solid rgba(11, 26, 43, 0.08);
}

.outline-subsection:first-child {
  padding-top: 0;
  border-top: 0;
}

.outline-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.founder-story {
  margin-top: 0;
}

.founder-story-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.founder-story-lead {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--teal);
  margin-bottom: 1.8rem;
}

.founder-story-article {
  max-width: 820px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.founder-beliefs {
  max-width: 860px;
  margin: 1.9rem 0 2.2rem;
  padding: 1.5rem 1.7rem;
  border-left: 2px solid var(--teal);
  background: rgba(238, 236, 229, 0.48);
}

.founder-beliefs h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.founder-beliefs ol {
  display: grid;
  gap: 0.85rem;
  counter-reset: belief;
  list-style: none;
}

.founder-beliefs li {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  column-gap: 0.8rem;
  row-gap: 0.15rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

.founder-beliefs li::before {
  counter-increment: belief;
  content: counter(belief, decimal-leading-zero);
  grid-row: span 2;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.founder-beliefs strong {
  color: var(--ink);
  font-weight: 700;
}

.founder-beliefs span {
  grid-column: 2;
  font-size: 0.95rem;
}

.founder-story-article h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 3.2rem 0 1rem;
  letter-spacing: 0.03em;
}

.founder-story-article h4:first-child {
  margin-top: 0;
}

.founder-story-article p {
  font-size: 1.02rem;
  line-height: 2.12;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
}

.founder-story-article strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 520px) {
  .founder-beliefs {
    padding: 1.25rem 1.2rem;
  }

  .founder-beliefs li {
    grid-template-columns: 1fr;
  }

  .founder-beliefs li::before,
  .founder-beliefs span {
    grid-column: 1;
  }
}

.profile-section {
  max-width: 1040px;
}

.profile-copy {
  max-width: 980px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.profile-photo-frame {
  width: 180px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 113, 135, 0.08), rgba(196, 160, 98, 0.08)),
    var(--paper-2);
  display: grid;
  place-items: center;
  color: rgba(31, 113, 135, 0.58);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.profile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}

.profile-lead {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.profile-copy > p {
  max-width: 860px;
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.6rem;
}

.profile-detail-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.45rem;
}

.profile-detail-card h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.profile-detail-card p,
.profile-detail-card li {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.profile-detail-card ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
}

@media (max-width: 900px) {
  .profile-hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .profile-photo-frame {
    width: min(180px, 52vw);
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }
}

.outline-tabs {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  opacity: 1;
  transform: none;
}

.outline-tablist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.6rem), 1fr));
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 236, 229, 0.5);
  padding: 0.35rem;
  margin-bottom: 2rem;
}

.outline-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
  min-width: 0;
  padding: 0.82rem 0.8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.outline-tab span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.outline-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--teal);
  border-bottom-color: var(--teal);
  box-shadow: 0 14px 32px -26px rgba(11, 26, 43, 0.4);
}

.outline-tab-panel[hidden] {
  display: none !important;
}

.outline-panel-inner {
  animation: fadeUp 0.35s ease both;
}

@media (max-width: 768px) {
  .outline-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .outline-tab {
    padding: 0.85rem 0.9rem;
    min-height: 4.35rem;
    word-break: keep-all;
  }

  .outline-tab span {
    font-size: 0.64rem;
    line-height: 1.45;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .outline-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
}

@media (min-width: 1101px) and (max-width: 1200px) {
  .outline-tablist {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.form-status {
  min-height: 1.5em;
  color: var(--accent-light);
  font-size: 0.9rem;
  line-height: 1.7;
}
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin: -1rem 0 2.6rem;
  background: rgba(246, 244, 239, 0.42);
}
.proof-strip div {
  padding: 1.25rem 1.45rem;
  border-right: 1px solid var(--line);
}
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.1;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.proof-number {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-variant-numeric: lining-nums;
  line-height: 0.9;
  color: var(--teal);
}
.proof-unit {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal);
}
.proof-strip > div > span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.profile-proof {
  margin: 0 0 1.6rem;
  background: rgba(238, 236, 229, 0.58);
}

.profile-proof div {
  padding: 1rem 1.1rem;
}

.profile-proof strong {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}
.proof-summary {
  margin: 1.2rem 0 5.4rem;
  max-width: none;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-soft);
  white-space: nowrap;
}


.core-tech {
  margin: clamp(4.5rem, 7vw, 7rem) 0 5.2rem;
  padding-left: 0;
  padding-right: 0;
}

.core-tech-section-header {
  align-items: center;
  margin-bottom: 1.4rem;
}

.core-tech-card-label,
.core-tech-summary span {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.core-tech-lead,
.core-tech-card p,
.core-tech-list span,
.core-tech-summary p {
  color: var(--ink);
  line-height: 1.95;
}

.core-tech-lead {
  max-width: 900px;
  margin: 0 0 2.2rem;
  font-size: 1.18rem;
  line-height: 2.1;
}
.core-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  background: linear-gradient(135deg, rgba(238, 236, 229, 0.92), rgba(246, 244, 239, 0.72));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.core-tech-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.core-tech-card-primary {
  border-color: rgba(31, 95, 112, 0.32);
}

.core-tech-card-label {
  font-size: 0.68rem;
  color: var(--teal-deep);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.core-tech-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.core-tech-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  color: var(--teal-deep) !important;
  margin-bottom: 1rem;
}

.magi-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.magi-roles div,
.core-tech-list li {
  border: 1px solid rgba(31, 95, 112, 0.24);
  border-radius: 6px;
  background: rgba(238, 236, 229, 0.72);
  padding: 0.9rem;
}

.magi-roles strong,
.core-tech-list strong {
  display: block;
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.magi-roles span {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.65;
}

.core-tech-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1.2rem;
}

.core-tech-list span {
  display: block;
  font-size: 0.9rem;
}

.core-tech-summary {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--teal);
  background: rgba(42, 107, 122, 0.06);
}

.core-tech-summary span {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  margin-bottom: 0.4rem;
}

.core-tech-summary p {
  margin: 0;
}

@media (max-width: 980px) {
  .core-tech-grid,
  .magi-roles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .core-tech {
    margin-bottom: 3.5rem;
    padding: 1.4rem;
  }

  .core-tech-section-header {
    margin-left: 0;
  }
}
.profile-link {
  margin-top: 1.2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.profile-link a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 107, 122, 0.35);
}
.profile-link a:hover { border-color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 820px) {
  .u-090 { grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); }
  .u-090::before,
  .u-091::before,
  .u-099::before { display:none; }
  .u-088 { height:1.25rem; }
  .u-089 { height:1.25rem; }
  .u-090 { margin-top:0.8rem; }
}
@media (max-width: 768px) {
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .proof-strip div:last-child { border-bottom: 0; }
  .u-088 { height:1.25rem; }
  .u-090::before,
  .u-091::before,
  .u-099::before { display:none; }
  .u-089 { height:1.25rem; }
  .u-090 { margin-top:0.8rem; }
  .u-002 { max-width: 100%; margin-top: 2rem; }
  .u-003,
  .u-008 { grid-template-columns: 1fr; }
  .u-009 { align-items: flex-start; }
  .u-012 { margin-left: 0; padding-top: 0.2rem; }
  .u-034 { align-items: flex-start; gap: 0.6rem; }
  .u-035 { font-size: 0.78rem; letter-spacing: 0.18em; min-width: 6.5rem; }
  .u-036 { font-size: 0.78rem; line-height: 1.6; }
  .u-039 { grid-template-columns: 1fr; gap: 1.8rem; }
  .u-040 { max-width: 180px; }
  .u-041,
  .u-044,
  .u-045,
  .u-046 { font-size: 0.8rem; }
  .u-066,
  .u-071 { grid-template-columns: 48px 1fr; gap: 1rem; }
  .u-067,
  .u-070 { font-size: 2.8rem; }
  .u-074 { grid-template-columns: 1fr; }
}

/* Mobile service tabs */
@media (max-width: 768px) {
  #services .u-016 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    border-bottom: 0;
    margin-bottom: 2.2rem;
  }

  #services .u-017,
  #services .u-019 {
    width: 100%;
    min-width: 0;
    padding: 0.72rem 0.55rem;
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  #services .tab-core {
    flex-direction: column;
    align-items: center;
    gap: 0.16rem;
  }

  #services .tab-core span {
    font-size: 0.48rem;
    padding: 0.14rem 0.45rem;
  }

  #services .u-018 {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 1px 4px;
    font-size: 0.52rem;
  }
}
/* Aligned accordion rows */
.accordion-toggle.u-034 {
  display: grid;
  grid-template-columns: 10.2rem 1fr auto;
  align-items: center;
  column-gap: 1.4rem;
}

.accordion-toggle .u-035 {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.accordion-toggle .u-036 {
  min-width: 0;
  justify-self: start;
}

.accordion-toggle .u-037 {
  margin-left: 0;
  justify-self: end;
}

@media (max-width: 768px) {
  .accordion-toggle.u-034 {
    grid-template-columns: 1fr auto;
    row-gap: 0.3rem;
    column-gap: 0.8rem;
  }

  .accordion-toggle .u-035 {
    grid-column: 1;
  }

  .accordion-toggle .u-036 {
    grid-column: 1 / -1;
    padding-left: 1.25rem;
  }

  .accordion-toggle .u-037 {
    grid-column: 2;
    grid-row: 1;
  }
}
/* Separated accordion marker */
.accordion-toggle.u-034 {
  grid-template-columns: 10.5rem 1fr auto;
}

.accordion-toggle .u-035 {
  display: grid;
  grid-template-columns: 1rem 1fr;
  align-items: center;
  column-gap: 0.9rem;
  width: 10.5rem;
}

.accordion-marker {
  display: inline-block;
  width: 1rem;
  letter-spacing: 0;
  text-align: left;
}

.accordion-key {
  display: inline-block;
  letter-spacing: 0.22em;
}

@media (max-width: 768px) {
  .accordion-toggle .u-035 {
    width: auto;
    grid-template-columns: 0.85rem 1fr;
    column-gap: 0.65rem;
  }
}
/* Calm proof strip typography */
.proof-strip strong {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
/* Mobile hero spacing */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-scroll {
    display: none;
  }
}
/* Mobile polish: keep the first view lighter */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 3.5rem;
  }

  .hero-grid,
  .hero-content,
  .hero-tagline,
  .hero .u-002,
  .hero .u-003,
  .hero .u-008 {
    width: calc(100vw - 6rem);
    max-width: calc(100vw - 6rem);
  }

  .mobile-only-break {
    display: inline;
  }

  .hero-title {
    overflow-wrap: anywhere;
  }

  .hero-tagline,
  .hero-tagline-nowrap {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero .u-001 {
    max-width: 100%;
    font-size: 0.38em;
    line-height: 1.55;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .hero-entry {
    width: calc(100vw - 6rem);
    max-width: calc(100vw - 6rem);
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero .u-002,
  .hero .u-003,
  .hero .u-008 {
    width: 100%;
    min-width: 0;
  }

  .hero .u-008 {
    display: grid;
    margin-top: 0.75rem;
  }

  .hero .u-002 {
    margin-top: 1.6rem;
  }

  .hero-entry-consulting,
  .hero-entry-technology,
  .hero-entry-execution,
  .hero-entry-enable {
    padding: 1.15rem 1.1rem;
  }

  .hero .u-004,
  .hero .u-007,
  .hero .u-010 {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
  }

  .hero .u-005,
  .hero .u-011 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
  }

  .hero .u-006 {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .hero-actions.u-013 {
    margin-top: 1rem;
  }

  .proof-strip {
    margin: -0.5rem 0 2rem;
  }

  .proof-strip div {
    padding: 0.8rem 1rem;
  }

  .proof-strip strong {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .proof-strip > div > span {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .profile-proof {
  margin: 0 0 1.6rem;
  background: rgba(238, 236, 229, 0.58);
}

.profile-proof div {
  padding: 1rem 1.1rem;
}

.profile-proof strong {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}
.proof-summary {
    margin: 1rem 0 3.4rem;
    font-size: 0.94rem;
    line-height: 1.75;
    white-space: normal;
  }

}

@media (max-width: 480px) {
  .hero {
    padding-bottom: 3.25rem;
  }
}
/* Hero tagline line control */
.hero-tagline-nowrap {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-tagline-nowrap {
    white-space: normal;
  }
}

/* ========== Frontend polish pass ========== */
:root {
  --shadow-soft: 0 24px 70px -42px rgba(11, 26, 43, 0.42);
  --shadow-lift: 0 28px 56px -34px rgba(11, 26, 43, 0.45);
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 22rem),
    var(--paper);
}

nav {
  height: 118px;
}

nav.scrolled {
  height: 88px;
}

.nav-logo img {
  height: 90px;
}

nav.scrolled .nav-logo img {
  height: 68px;
}

nav a {
  padding: 0.35rem 0 0.45rem;
}

.nav-cta {
  border-radius: 6px;
  box-shadow: 0 14px 32px -22px rgba(11, 26, 43, 0.5);
}

.hero {
  padding-top: clamp(10rem, 14vh, 12rem);
}

.hero::after {
  content: '';
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  top: 9rem;
  bottom: 5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(31, 95, 112, 0.22), transparent);
  pointer-events: none;
}

.hero-title {
  text-wrap: balance;
}

.hero-tagline {
  max-width: 980px;
}

.btn,
.form-submit {
  border-radius: 6px;
}

.btn-ghost {
  background: rgba(246, 244, 239, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(760px, 100%);
  margin-top: 1.4rem;
  border: 1px solid rgba(31, 95, 112, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(246, 244, 239, 0.72);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1s;
}

.hero-proof div {
  padding: 1rem 1.2rem;
  border-right: 1px solid rgba(31, 95, 112, 0.12);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.hero-proof span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-entry {
  position: relative;
  min-height: 132px;
  box-shadow: 0 22px 48px -34px rgba(11, 26, 43, 0.55);
}

.hero-entry::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%);
  pointer-events: none;
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: -2.8rem 0 4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.journey-item {
  background: rgba(246, 244, 239, 0.88);
  padding: clamp(1.35rem, 2.4vw, 2rem);
}

.journey-item span {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.journey-item strong {
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.journey-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.u-016 {
  background: rgba(238, 236, 229, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem;
}

#services .u-017,
#services .u-019 {
  border-radius: 6px;
  border-bottom: 0;
  margin-bottom: 0;
}

[role="tab"][aria-selected="true"] {
  background: var(--paper) !important;
  box-shadow: 0 14px 32px -26px rgba(11, 26, 43, 0.4);
}

#services [role="tab"] {
  position: relative;
  border-bottom: 2px solid transparent !important;
}

#services [role="tab"][aria-selected="true"] {
  border-bottom-color: var(--teal) !important;
  color: var(--teal) !important;
}

.service-card {
  border-radius: 8px;
  min-height: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-lift);
}

.core-tech-grid,
.contact-form {
  box-shadow: var(--shadow-soft);
}

.contact-form {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(246, 244, 239, 0.12);
  border-radius: 8px;
  background: rgba(246, 244, 239, 0.035);
}

.form-field input,
.form-field textarea,
.form-field select {
  min-height: 44px;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-bottom-color: rgba(212, 176, 122, 0.55);
}

@media (max-width: 980px) {
  .journey-strip {
    grid-template-columns: 1fr;
    margin-top: -1.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    height: 72px;
  }

  nav.scrolled {
    height: 64px;
  }

  .nav-logo img,
  nav.scrolled .nav-logo img {
    height: 52px;
  }

  .hero {
    padding-top: 7.2rem;
  }

  .hero::after {
    display: none;
  }

  .hero-grid,
  .hero-content,
  .hero-tagline,
  .hero .u-002,
  .hero .u-003,
  .hero .u-008,
  .hero-entry {
    width: 100%;
    max-width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .hero-proof div {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 95, 112, 0.12);
    padding: 0.85rem 1rem;
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  .hero-entry {
    min-height: 0;
  }

  .journey-strip {
    margin: -1rem 0 2.6rem;
  }

  .contact-form {
    padding: 1.2rem;
  }
}

@media (min-width: 1180px) {
  .hero-tagline-keep {
    white-space: nowrap;
  }
}

/* Outline tabs: force readable layout on phones and narrow tablets. */
@media (max-width: 1100px) {
  .outline-tabs .outline-tablist.outline-tablist-eight {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.6rem), 1fr)) !important;
    gap: 0.45rem !important;
  }

  .outline-tabs .outline-tab {
    min-width: 0;
    min-height: 4.35rem;
    padding: 0.85rem 0.9rem;
  }
}

@media (max-width: 420px) {
  .outline-tabs .outline-tablist.outline-tablist-eight {
    grid-template-columns: 1fr !important;
  }
}

.founder-signature {
  margin-top: 2.4rem;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
}

.founder-signature span,
.founder-signature strong {
  display: block;
}

.founder-signature span {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.founder-signature strong {
  font-size: 1.12rem;
  font-weight: 600;
}
