/* ===========================================================
   HUE — Recruit Site
   Design system: cream paper bg, deep brown ink, single orange
   accent. Bricolage Grotesque for display, Noto Sans JP for
   Japanese copy, DM Sans for small UI labels.
   =========================================================== */

:root {
  --bg: #f1ece8;
  --ink: #4b1800;
  --accent: #f04b00;
  --paper: #e7ddd4;
  --line: rgba(75, 24, 0, 0.14);

  --font-display: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
  --font-ui: "DM Sans", "Noto Sans JP", sans-serif;
  --font-jp: "Noto Sans JP", "DM Sans", sans-serif;
  --font-serif: "EB Garamond", serif;

  --header-h: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.jp { font-family: var(--font-jp); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-solid {
  background: rgba(241, 236, 232, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.main-nav ul {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.main-nav a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.entry-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.entry-btn:hover { background: var(--ink); color: var(--bg); }

.menu-btn {
  width: 32px; height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span {
  display: block;
  height: 1px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 400vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

.hero-layers {
  position: absolute;
  inset: 0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: 200% 200%;
  animation: driftGradient 18s ease-in-out infinite;
}

.layer-1 {
  background-image: radial-gradient(circle at 30% 30%, #ff7a3d, #a52f00 45%, #4b1800 100%);
  opacity: 1;
}
.layer-2 {
  background-image: radial-gradient(circle at 70% 40%, #ffb35c, #f04b00 40%, #3a1200 100%);
  animation-duration: 22s;
}
.layer-3 {
  background-image: radial-gradient(circle at 50% 70%, #ffd39b, #d9611c 45%, #2a0d00 100%);
  animation-duration: 26s;
}
.layer-4 {
  background-image: radial-gradient(circle at 40% 50%, #fff1c9, #f04b00 35%, #1f0900 100%);
  animation-duration: 30s;
}

@keyframes driftGradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(24px, 6vw, 80px);
  color: #fff1e6;
}

.hero-lead {
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7.5vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff1e6;
}
.hero-scroll-cue span {
  width: 1px;
  height: 40px;
  background: rgba(255,241,230,0.5);
  overflow: hidden;
  position: relative;
}
.hero-scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: #fff1e6;
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.hero-scroll-cue p {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.hero-statement {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(80px, 14vw, 160px) 24px;
  text-align: center;
}
.hero-statement p {
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 28px;
}
.hero-statement .closing { color: var(--accent); }
.hero-question {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 500;
  line-height: 1.25;
  margin-top: 48px !important;
  letter-spacing: -0.01em;
}

/* ---------- What We Do ---------- */

.whatwedo {
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}

.whatwedo-link { display: block; }

.whatwedo h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 28px;
}

.whatwedo-desc {
  max-width: 46ch;
  font-size: 15px;
  margin: 0 0 28px;
}

.detail-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.detail-cta i { font-style: normal; margin-left: 4px; transition: margin-left 0.2s ease; }
.whatwedo-link:hover .detail-cta i { margin-left: 10px; }

.brand-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.brand-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand-index {
  font-family: var(--font-ui);
  font-size: 12px;
  opacity: 0.5;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}

/* ---------- Interview ---------- */

.interview {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line);
}

.interview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 clamp(24px, 6vw, 80px);
  margin-bottom: 48px;
  gap: 24px;
}

.interview-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 6px 0 16px;
}

.interview-desc {
  font-size: 14px;
  max-width: 44ch;
  opacity: 0.85;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.carousel-controls button {
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 16px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.carousel-controls button:hover { background: var(--ink); color: var(--bg); }

.carousel {
  display: flex;
  gap: 24px;
  padding: 0 clamp(24px, 6vw, 80px) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.interview-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 30vw, 360px);
  background: var(--paper);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: transform 0.3s ease;
}
.interview-card:hover { transform: translateY(-6px); }

.card-quote-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  color: var(--accent);
  line-height: 1;
}

.interview-card h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  margin: 16px 0 32px;
}

.card-meta { display: flex; flex-direction: column; gap: 4px; }
.card-name { font-family: var(--font-ui); font-weight: 600; font-size: 13px; }
.card-role { font-family: var(--font-ui); font-size: 11px; opacity: 0.6; }

.view-all {
  display: block;
  width: fit-content;
  margin: 48px auto 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 8vw, 100px);
}

.footer-nav-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 clamp(24px, 6vw, 80px);
}

.footer-tile {
  position: relative;
  height: clamp(160px, 20vw, 240px);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.footer-tile-bg {
  position: absolute;
  inset: 0;
  background-size: 200% 200%;
  animation: driftGradient 16s ease-in-out infinite;
}
.tile-culture { background-image: linear-gradient(120deg, #f04b00, #ffb35c, #4b1800); }
.tile-jobs { background-image: linear-gradient(120deg, #4b1800, #a52f00, #ffd39b); }

.footer-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 60%);
}

.footer-tile-label {
  position: relative;
  z-index: 1;
  color: #fff1e6;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.01em;
}

.footer-entry {
  text-align: center;
  padding: clamp(70px, 10vw, 120px) 24px;
}
.footer-entry p {
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 28px;
}
.entry-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff1e6;
  border-radius: 999px;
  padding: 16px 36px;
  transition: background-color 0.25s ease;
}
.entry-btn-large:hover { background: var(--ink); }
.entry-btn-large i { font-style: normal; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.copyright {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  opacity: 0.55;
  padding: 24px 0 90px;
  margin: 0;
}

.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
}
.page-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav { display: none; }

  .whatwedo {
    grid-template-columns: 1fr;
  }

  .footer-nav-tiles {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
