/* =========================================================
   Renel Studio — style.css
   Brand System: "Quiet Mastery" / 案A Midnight Noir
   Designer spec: design_brand.md (2026-06-28)
   ========================================================= */

:root {
  /* ---- Color (Warm Studio Black) ---- */
  --bg-base: #0e0b09;
  --bg-raised: #161210;
  --surface: #1e1a16;
  --surface-hover: #252019;
  --gold: #c9a84c;
  --gold-muted: #8c6e2a;
  --gold-bright: #e8c66a;
  --terracotta: #c85f3c;
  --sage: #6b8b6b;
  --text-primary: #f0ede6;
  --text-secondary: #9a9080;
  --text-muted: #5a5048;
  --border: #2a2520;
  --error: #e05555;
  --success: #4ecba0;

  /* ---- Type ---- */
  --font-display: "Syne", "Noto Serif JP", sans-serif;
  --font-sans: "Inter", "Noto Sans JP", system-ui, sans-serif;

  --fs-hero: clamp(2.8rem, 9vw, 6rem);
  --fs-h1: clamp(2.4rem, 6vw, 3.5rem);
  --fs-h2: clamp(1.9rem, 4.5vw, 2.5rem);
  --fs-h3: 1.75rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --ls-hero: -0.03em;
  --ls-heading: -0.01em;
  --ls-caps: 0.15em;
  --lh-heading: 1.1;
  --lh-body: 1.7;

  /* ---- Spacing / layout ---- */
  --container-max: 1200px;
  --container-padding: clamp(24px, 5vw, 80px);
  --section-gap: clamp(80px, 10vw, 160px);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* ---- Motion ---- */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 700ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: var(--lh-body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  .is-interactive {
    cursor: none;
  }
}

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

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}

.section__label {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}

.section__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin-bottom: 2.5rem;
}

/* ---------- Page curtain (transition) ---------- */
.page-curtain {
  position: fixed;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  z-index: 10000;
  pointer-events: none;
}

.page-curtain.entering {
  animation: curtain-in var(--dur-base) var(--ease-inout-quart) forwards;
}

.page-curtain.leaving {
  animation: curtain-out var(--dur-base) var(--ease-inout-quart) forwards;
}

@keyframes curtain-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes curtain-out {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

/* ---------- Custom Cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--text-primary);
  transition: opacity 0.3s ease, transform 80ms ease;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(201, 168, 76, 0.7);
  transition: width var(--dur-fast) ease, height var(--dur-fast) ease,
    border-color var(--dur-fast) ease, opacity 0.3s ease;
}

.cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  border-color: var(--gold-bright);
}

.cursor-dot.is-hover {
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) var(--ease-out-expo),
    backdrop-filter var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: rgba(42, 42, 64, 0.6);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold);
  transition: text-shadow var(--dur-base) ease;
}

.nav__logo:hover {
  text-shadow: 0 0 16px rgba(201, 168, 76, 0.5);
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 250ms var(--ease-out-expo);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out-expo);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-out-expo),
    opacity 0.3s var(--ease-out-expo);
}

@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(8, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-inout-quart);
  }
  .nav__links.is-open {
    transform: translateY(0);
  }
  .nav__links a {
    font-size: 1.4rem;
  }
  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      ellipse at 20% 50%,
      rgba(123, 107, 168, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 50%
    ),
    var(--bg-base);
}

.hero__glow {
  position: absolute;
  top: -80px;
  left: -60px;
  width: 480px;
  height: 480px;
  border-radius: 68% 32% 42% 58% / 44% 56% 44% 56%;
  background: radial-gradient(ellipse, rgba(200, 150, 44, 0.18), transparent 70%);
  filter: blur(70px);
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
  animation: blob-drift 12s ease-in-out infinite alternate;
}

@keyframes blob-drift {
  0%   { border-radius: 68% 32% 42% 58% / 44% 56% 44% 56%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; transform: rotate(15deg) scale(1.1); }
}

/* grain texture overlay */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

.hero__content {
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: var(--fs-small);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-hero);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-hero);
  margin-bottom: 1.8rem;
}

.hero-title__name {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
}

.hero-title__line {
  display: block;
  overflow: hidden;
}

.hero-title .char {
  display: inline-block;
  will-change: transform;
}

/* 2書体ミックス: Renel = Syne gold gradient, Studio = Instrument Serif terracotta */
.hero-title__line--brand .char {
  background: linear-gradient(135deg, #c9a84c 0%, #e8c66a 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-title__line--studio-word {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}
.hero-title__line--studio-word .char {
  color: var(--terracotta);
  -webkit-text-fill-color: var(--terracotta);
}

/* マーキーバンド */
.marquee-band {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg-raised);
}
.marquee-band__inner {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.marquee-band__inner span { padding-right: 2.5rem; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-sub {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2s var(--ease-out-expo) infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) ease,
    background-color var(--dur-fast) ease, color var(--dur-fast) ease,
    border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease,
    filter 80ms ease;
  border: 1.5px solid transparent;
}

.btn:active {
  transform: scale(0.96);
  filter: brightness(0.9);
}

.btn--primary {
  background: var(--gold);
  color: #080810;
  padding: 14px 32px;
  min-width: 160px;
  justify-content: center;
}

.btn--primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--gold-muted);
  color: var(--gold);
  padding: 13px 31px;
}

.btn--ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.06);
}

/* ---------- About ---------- */
.about__text {
  max-width: 640px;
}

.about__text p {
  font-size: var(--fs-body-lg);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.85;
}

.about__text p.muted {
  color: var(--text-secondary);
  font-size: var(--fs-body);
}

.about__divider {
  width: 2rem;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.about__sign {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold) 0%, #e8c66a 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 2.5rem !important;
}

/* ---------- Business tiles ---------- */
.biz__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .biz__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.biz-tile {
  padding: 2.6rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color var(--dur-base) var(--ease-out-expo),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out-expo);
}

.biz-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease-out-expo);
  z-index: 0;
}

.biz-tile--yasai::before {
  background: radial-gradient(
    circle at 70% 20%,
    rgba(123, 107, 168, 0.4),
    transparent 60%
  );
}

.biz-tile--studio::before {
  background: radial-gradient(
    circle at 30% 20%,
    rgba(201, 168, 76, 0.28),
    transparent 60%
  );
}

.biz-tile:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.biz-tile:hover::before {
  opacity: 0.9;
}

.biz-tile > * {
  position: relative;
  z-index: 1;
}

.biz-tile__num {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  z-index: 1;
}

.biz-tile__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: var(--ls-heading);
}

.biz-tile__jp {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.biz-tile__desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.biz-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.biz-tile__tags span {
  font-size: var(--fs-xs);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(123, 107, 168, 0.12);
  color: var(--text-secondary);
}

/* ---------- Card grid (Works / Projects) ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease,
    background-color var(--dur-base) ease;
  will-change: transform;
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: var(--surface-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.2);
}

.card__media {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  transform: translateZ(40px);
  transition: transform 500ms var(--ease-out-expo);
}

.card:hover .card__media {
  transform: translateZ(40px) scale(1.04);
}

.card__media--green {
  background: linear-gradient(135deg, #6f7f5e, #20281c);
}
.card__media--purple {
  background: linear-gradient(135deg, #7b6ba8, #1e1830);
}
.card__media--gold {
  background: linear-gradient(135deg, #c9a84c, #3e3414);
}
.card__media--terra {
  background: linear-gradient(135deg, #b07a5d, #2e1d16);
}
.card__media--slate {
  background: linear-gradient(135deg, #45506a, #161a24);
}
.card__media--screenshot {
  background-size: cover;
  background-position: center top;
}

.card__media::after {
  content: attr(data-tag);
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 16, 0.6);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  z-index: 2;
}

.card__body {
  padding: 20px;
  transform: translateZ(25px);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: var(--ls-heading);
}

.card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.card__meta {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--dur-fast) ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.filter-btn.is-active {
  background: var(--gold);
  color: #080810;
  border-color: var(--gold);
}

.card.is-hidden {
  display: none;
}

/* ---------- Works preview (on index) ---------- */
.preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.preview-head .section__title {
  margin-bottom: 0;
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: border-color 0.25s, color 0.25s;
}

.social-link:hover {
  border-color: var(--gold-muted);
  color: var(--text-primary);
}

/* ---------- Works Upcoming ---------- */
.works-upcoming {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.works-upcoming__badge {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-muted);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.works-upcoming__text {
  color: var(--text-secondary);
  font-size: var(--fs-body);
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }
}

.contact__lead {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--ls-heading);
  margin-bottom: 1.5rem;
}

.contact__sub {
  color: var(--text-secondary);
}

.contact__channels {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact__channels a {
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
  font-size: var(--fs-body);
}

.contact__channels a:hover {
  color: var(--gold);
}

.form {
  display: grid;
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}

.field:focus-within label {
  color: var(--gold-muted);
}

.field input,
.field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form .btn--primary {
  width: 100%;
}

.form__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.form__status {
  font-size: var(--fs-small);
  min-height: 1.2rem;
  color: var(--success);
}

.form__status.is-error {
  color: var(--error);
}

/* ---------- Footer ---------- */
.footer {
  background: #050508;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ---------- Page header (sub pages) ---------- */
.page-head {
  padding-top: 160px;
  padding-bottom: 40px;
}

.page-head__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-hero);
}

.page-head__lead {
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: 1.2rem;
  font-size: var(--fs-body-lg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  transition: color var(--dur-fast) ease, gap var(--dur-fast) ease;
}

.back-link:hover {
  color: var(--gold);
  gap: 0.8rem;
}

/* ---------- Company overview ---------- */
.company-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-body);
}

.company-table th,
.company-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.company-table th {
  width: 9rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.company-table td a {
  color: var(--gold);
  transition: color var(--dur-fast) ease;
}

.company-table td a:hover {
  color: var(--gold-bright);
}

/* ---------- Animation helpers ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.no-js .reveal,
.no-js .hero-title .char,
.no-js .hero-sub,
.no-js .hero-cta {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .page-curtain {
    display: none;
  }
}
