/* ============================================
   Home page specific styles
   ============================================ */

/* ---------- Hero shared ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ---------- Hero A: Type-driven ---------- */
.hero-a {
  padding: 140px var(--gutter) 80px;
  background: var(--paper);
}
.hero-a-grid {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 24px 80px;
  align-items: start;
}
.hero-a-mono {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-10);
}
.hero-a-title {
  grid-column: 1 / 2;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-a-title .of {
  font-style: italic;
  font-weight: 400;
  color: var(--gray-60);
  margin-right: 0.2em;
}
.hero-a-title .amp {
  font-style: italic;
  color: var(--accent);
  display: none; /* decorative hidden unless needed */
}
.hero-a-title .dot { color: var(--accent); }

.hero-a-side {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: start;
  padding-top: 20px;
}
.rotating-badge {
  width: 180px;
  height: 180px;
  position: relative;
  animation: spin 30s linear infinite;
}
.rotating-badge svg { width: 100%; height: 100%; }
.badge-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  animation: spin-rev 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

.hero-a-caption {
  grid-column: 1 / 2;
  max-width: 640px;
  margin-top: 24px;
}
.hero-a-caption h2 {
  font-family: var(--jp);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero-a-caption p {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-70);
  margin-bottom: 32px;
  max-width: 520px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero-a-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-a-meta {
  grid-column: 1 / -1;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-a-meta .big {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  margin-top: 8px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-60);
}
.scroll-cue .line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (max-width: 860px) {
  .hero-a-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-a-side { display: none; }
  .hero-a-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* ---------- Hero B: Geometry ---------- */
.hero-b {
  padding: 140px var(--gutter) 120px;
  background: var(--paper);
  align-items: center;
}
.hero-b-bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}
.hero-b-bg svg {
  width: 100%; height: 100%;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.08), rgba(0,0,0,0.4));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.08), rgba(0,0,0,0.4));
}
.hero-b-content {
  position: relative;
  max-width: 900px;
  padding-top: 20px;
}
.hero-b-title {
  font-family: var(--jp);
  font-size: clamp(48px, 8vw, 128px);
  line-height: 1.05;
  font-weight: 500;
  margin: 28px 0 32px;
  letter-spacing: -0.01em;
}
.hero-b-title .italic { font-style: italic; font-weight: 400; color: var(--ink); }
.hero-b-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-70);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-b-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-b-foot {
  position: absolute;
  bottom: 48px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  gap: 40px;
  font-family: var(--jp);
  font-size: 13px;
  color: var(--gray-60);
  border-top: 1px solid var(--gray-10);
  padding-top: 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-b-foot .mono-small { color: var(--accent); margin-right: 8px; }

@media (max-width: 860px) {
  .hero-b-foot { position: static; flex-direction: column; gap: 8px; margin-top: 48px; }
}

/* ---------- Hero C: Motion / Dark ---------- */
.hero-c {
  background: var(--ink);
  color: var(--paper);
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 0 40px;
}
.hero-c-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
  justify-content: space-between;
}
.ticker-row {
  display: flex;
  gap: 48px;
  font-family: var(--serif);
  font-size: clamp(80px, 13vw, 220px);
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  color: var(--paper);
}
.ticker-row span { display: inline-block; }
.ticker-reverse {
  font-size: clamp(32px, 4vw, 56px);
  animation: marquee 50s linear infinite reverse;
  color: var(--gray-30);
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-reverse .italic, .ticker-reverse .serif { font-style: italic; color: var(--paper); }
.ticker-reverse .orange { color: var(--accent); }

.hero-c-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 40px;
  padding-top: 40px;
}
.hero-c-title {
  font-family: var(--jp);
  font-size: clamp(48px, 7.5vw, 110px);
  line-height: 1.08;
  font-weight: 500;
  margin: 24px 0 0;
  display: block;
}
.hero-c-title .line-1, .hero-c-title .line-2, .hero-c-title .line-3, .hero-c-title .line-4 {
  display: block;
}
.hero-c-title .line-3 { font-size: 1.2em; color: var(--paper); }
.hero-c-title .italic { font-style: italic; }

.hero-c-right p {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-30);
  margin-bottom: 32px;
}
.hero-c-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-c-link {
  font-family: var(--jp);
  font-size: 14px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  display: inline-flex;
  gap: 8px;
  transition: color 0.3s var(--ease);
}
.hero-c-link:hover { color: var(--accent); }

@media (max-width: 860px) {
  .hero-c-body { grid-template-columns: 1fr; gap: 32px; }
  .ticker-row { font-size: clamp(60px, 18vw, 100px); }
  .ticker-reverse { font-size: clamp(20px, 5vw, 32px); }
}

/* ---------- Belief ---------- */
.belief {
  padding: var(--section-pad) 0;
}
.belief-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.belief-left .big-num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 1;
  margin: 24px 0 16px;
}
.belief-left .big-num .slash { color: var(--accent); }
.belief-left .big-num .n:last-child {
  font-size: 0.35em;
  font-style: italic;
  color: var(--gray-60);
}
.belief-title {
  font-family: var(--jp);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 40px;
}
@media (max-width: 400px) {
  .belief-title { font-size: 31px; }
}
.belief-title .italic { font-style: italic; font-weight: 400; }
.belief-body p {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 2.1;
  color: var(--ink-70);
  margin-bottom: 24px;
}
.belief-coda { color: var(--ink); font-size: 24px !important; margin-top: 32px; }
.underline-anim {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 1.4s var(--ease);
  padding-bottom: 4px;
}
.reveal.in .underline-anim,
.belief-body.in .underline-anim { background-size: 100% 2px; }

@media (max-width: 860px) {
  .belief-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Pillars ---------- */
.pillars {
  padding: var(--section-pad) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--gray-10);
  border-bottom: 1px solid var(--gray-10);
}
.pillars-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
}
.section-title {
  font-family: var(--jp);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.section-title .serif { font-size: 1.05em; }
.section-title .big { font-family: var(--serif); font-size: 1.3em; color: var(--accent); font-weight: 500; }
.section-title .italic { font-style: italic; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--gray-10);
}
.pillar {
  padding: 40px 32px 56px;
  border-right: 1px solid var(--gray-10);
  background: var(--paper);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pillar:hover { transform: translateY(-8px); }
.pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-10);
  margin-bottom: 24px;
}
.pillar-head .pillar-en {
  font-size: 18px;
  color: var(--accent);
  font-style: italic;
}
.pillar-jp {
  font-family: var(--jp);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.pillar-title {
  font-family: var(--jp);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.pillar-line {
  display: block;
}
.pillar-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-70);
  flex: 1;
}
.pillar-rule {
  margin-top: 24px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.pillar:hover .pillar-rule { width: 100%; }

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--gray-10); }
  .pillar { border-bottom: 1px solid var(--gray-10); }
}
@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillars-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ---------- Services teaser ---------- */
.services-teaser {
  padding: var(--section-pad) 0;
}
.st-head {
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
}
.st-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--gray-10);
}
.st-row:last-of-type { border-bottom: 1px solid var(--gray-10); }
.st-row.rev .st-text { order: 2; }
.st-row.rev .st-visual { order: 1; }
.st-meta { display: flex; gap: 16px; margin-bottom: 20px; }
.st-meta .mono-small:first-child { color: var(--accent); }
.st-jp {
  font-family: var(--jp);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.3;
}
.st-tag {
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.4;
}
.st-body {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-70);
  max-width: 560px;
  margin-bottom: 32px;
}
.st-body-line {
  display: block;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.arrow-link {
  font-family: var(--jp);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  display: inline-flex;
  gap: 10px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.arrow-link:hover { color: var(--accent); gap: 16px; }

.st-visual {
  aspect-ratio: 1 / 1;
  max-width: 520px;
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--gray-10);
}
.st-visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.st-big-num {
  position: absolute;
  top: 32px;
  left: 32px;
  font-size: clamp(60px, 8vw, 120px);
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
}
.st-visual-label {
  position: absolute;
  bottom: 32px;
  left: 32px;
  text-transform: uppercase;
  color: var(--gray-60);
}
.st-visual-art {
  width: 70%;
  height: 70%;
  color: var(--gray-60);
}
.st-cta { text-align: center; margin-top: 80px; }

@media (max-width: 900px) {
  .st-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .st-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .st-row.rev .st-text { order: 2; }
  .st-row.rev .st-visual { order: 1; }
  .st-row .st-text { order: 2; }
  .st-row .st-visual { order: 1; max-width: 100%; }
}

/* ---------- Careers teaser ---------- */
.careers-teaser {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.careers-teaser::before {
  content: 'GOAT';
  position: absolute;
  bottom: -0.3em;
  right: -0.05em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 40vw;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  font-weight: 500;
}
.ct-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
.ct-title {
  font-family: var(--jp);
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 1.1;
  font-weight: 500;
  margin: 32px 0 0;
  letter-spacing: -0.01em;
}
.ct-title .ct-line {
  display: block;
}
.ct-title .italic { font-style: italic; color: var(--paper); }
.ct-title .orange { color: var(--accent); }
.ct-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--gray-30);
  margin-bottom: 32px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ct-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ct-list li {
  font-family: var(--jp);
  font-size: 22px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: baseline;
  gap: 20px;
  transition: padding-left 0.4s var(--ease);
}
.ct-list li:hover { padding-left: 12px; color: var(--accent); }
.ct-list li .mono-small { color: var(--accent); }
.ct-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; gap: 32px; }
  .careers-teaser::before { font-size: 60vw; }
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  padding: var(--section-pad) 0;
}
.cc-head {
  margin-bottom: 80px;
  text-align: center;
}
.cc-head .eyebrow { justify-content: center; }
.cc-head .section-title {
  margin-top: 24px;
  text-align: center;
}
.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.cc-card {
  border: 1px solid var(--gray-10);
  padding: 48px 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
  background: var(--paper);
}
.cc-card:hover { border-color: var(--accent); background: var(--paper-warm); }
.cc-card-num {
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  font-style: italic;
}
.cc-card h3 {
  font-family: var(--jp);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.cc-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-70);
  margin-bottom: 20px;
}
.cc-grid { align-items: start; }

/* contact form */
.cc-form {
  border: 1px solid var(--gray-10);
  padding: 40px;
  background: var(--paper);
}
.cc-form-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.cc-form-head h3 {
  font-family: var(--jp);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px;
}
.cc-form-head p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-70);
  margin: 0;
}
.cc-field { margin-bottom: 18px; }
.cc-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray-60);
  margin-bottom: 7px;
}
.cc-field input,
.cc-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--paper-warm);
  border: 1px solid var(--gray-10);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--jp);
  font-size: 15px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.cc-field input:focus,
.cc-field textarea:focus { border-color: var(--accent); }
.cc-field textarea { min-height: 110px; resize: vertical; }
.cc-submit {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 15px 28px;
  font-family: var(--jp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cc-submit:hover { background: var(--accent); border-color: var(--accent); }
.cc-submit:disabled { opacity: 0.5; cursor: default; }
.cc-error {
  color: var(--accent);
  font-size: 13px;
  margin: 12px 0 0;
}
.cc-note {
  font-size: 11px;
  color: var(--gray-60);
  margin: 14px 0 0;
  line-height: 1.8;
}
.cc-thanks {
  border: 1px solid var(--accent);
  padding: 48px 40px;
  font-family: var(--jp);
  font-size: 16px;
  line-height: 2.2;
  background: var(--paper);
}

@media (max-width: 860px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-card { padding: 32px 24px; gap: 20px; }
  .cc-form { padding: 28px 22px; }
}
@media (max-width: 860px) {
  .cc-form-head, .cc-card { flex-direction: column; gap: 8px; }
  .cc-card-num { font-size: 40px; }
}
