/* =============================================================================
   TauDesignWorks — home + studio pages (home.css)
   Loaded after base.css. Hub-specific composition only.
   ============================================================================= */

/* ---------- Hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 34ch; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .hear { position: relative; white-space: nowrap; }
.hero h1 .hear::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .13em;
  border-radius: 3px; background: var(--spectrum);
}
.hero-sub { font-size: var(--t-lead); color: var(--text-muted); margin-bottom: 1.75rem; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; color: var(--text-muted); font-size: 1rem; margin: 0; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }

/* The voice panel — the company's signature moment */
.voice-panel {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.voice-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--spectrum-suite); }
.voice-panel .waveform { height: clamp(96px, 20vw, 132px); margin: .5rem 0 1.6rem; }
.voice-panel .panel-label {
  display: flex; align-items: center; gap: .55rem; font-family: var(--font-display);
  font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}
.voice-panel .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--spec-mid); box-shadow: 0 0 0 0 color-mix(in srgb, var(--spec-mid) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) { .voice-panel .live-dot { animation: pulse 2.4s var(--ease) infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--spec-mid) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.spoken-line {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .85rem;
  padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--border);
}
.spoken-line + .spoken-line { margin-top: .75rem; }
.spoken-tag {
  display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display);
  font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding-top: .18rem; white-space: nowrap;
}
.spoken-tag .swatch { width: 10px; height: 10px; border-radius: 3px; }
.spoken-line.iris  .swatch { background: #FFB020; }
.spoken-line.clair .swatch { background: #6366F1; }
.spoken-line.vellum .swatch { background: #2FA36B; }
.spoken-line.gloss .swatch { background: #E5964A; }
.spoken-line.facet .swatch { background: #4CC8DC; }
.spoken-line.umbra .swatch { background: #A855B3; }
.spoken-line.iris  .spoken-tag { color: var(--text); }
.spoken-line.clair .spoken-tag { color: var(--text); }
.spoken-line.vellum .spoken-tag { color: var(--text); }
.spoken-line.gloss .spoken-tag { color: var(--text); }
.spoken-line.facet .spoken-tag { color: var(--text); }
.spoken-line.umbra .spoken-tag { color: var(--text); }
.spoken-text { margin: 0; font-size: 1.08rem; line-height: 1.5; color: var(--text); max-width: none; }
.spoken-text .amt { font-weight: 700; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.02fr .98fr; }
}

/* ---------- Products -------------------------------------------------------- */
.products-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.product-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-top: clamp(1.75rem, 4vw, 2.5rem); }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  position: relative; display: flex; flex-direction: column; gap: 1.15rem;
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border: 1px solid var(--pc-border); background: var(--pc-bg); color: var(--pc-text);
  box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none;
}
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pc-spectrum); }
@media (prefers-reduced-motion: no-preference) {
  .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
.product-card:focus-visible { outline: 3px solid var(--pc-accent); outline-offset: 4px; }

/* Iris card — always dark (Iris is OLED-only by brand). Amber. */
.product-card--iris {
  --pc-bg: #0B0A12; --pc-text: #F4F2FB; --pc-muted: #C6C1D6;
  --pc-border: #2A2740; --pc-accent: #FFC24D;
  --pc-spectrum: linear-gradient(90deg,#FF7A3C,#FFB020 60%,#FFD37A);
}
/* Clair card — adapts surface to page theme, but always wears Clair indigo. */
.product-card--clair {
  --pc-bg: var(--surface); --pc-text: var(--text); --pc-muted: var(--text-muted);
  --pc-border: var(--border); --pc-accent: #362FA0;
  --pc-spectrum: linear-gradient(90deg,#7C6FF0,#4F46E5 60%,#3730A3);
}
:root[data-theme="dark"] .product-card--clair { --pc-accent: #A5B4FC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-card--clair { --pc-accent: #A5B4FC; } }
/* Vellum card — adapts surface to page theme, wears ledger green. */
.product-card--vellum {
  --pc-bg: var(--surface); --pc-text: var(--text); --pc-muted: var(--text-muted);
  --pc-border: var(--border); --pc-accent: #0A5E3B;
  --pc-spectrum: linear-gradient(90deg,#4FC98D,#2FA36B 60%,#0F6E4B);
}
:root[data-theme="dark"] .product-card--vellum { --pc-accent: #5FD39A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-card--vellum { --pc-accent: #5FD39A; } }
/* Gloss card — copper. */
.product-card--gloss {
  --pc-bg: var(--surface); --pc-text: var(--text); --pc-muted: var(--text-muted);
  --pc-border: var(--border); --pc-accent: #7A420F;
  --pc-spectrum: linear-gradient(90deg,#E5964A,#C4762E 60%,#8A4A12);
}
:root[data-theme="dark"] .product-card--gloss { --pc-accent: #E89B54; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-card--gloss { --pc-accent: #E89B54; } }
/* Facet card — cut-glass cyan. */
.product-card--facet {
  --pc-bg: var(--surface); --pc-text: var(--text); --pc-muted: var(--text-muted);
  --pc-border: var(--border); --pc-accent: #0A5866;
  --pc-spectrum: linear-gradient(90deg,#4CC8DC,#1E93A8 60%,#0B5D6E);
}
:root[data-theme="dark"] .product-card--facet { --pc-accent: #55CFE0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-card--facet { --pc-accent: #55CFE0; } }
/* Umbra card — plum/orchid. */
.product-card--umbra {
  --pc-bg: var(--surface); --pc-text: var(--text); --pc-muted: var(--text-muted);
  --pc-border: var(--border); --pc-accent: #7E2C7F;
  --pc-spectrum: linear-gradient(90deg,#D998E0,#A855B3 60%,#86288F);
}
:root[data-theme="dark"] .product-card--umbra { --pc-accent: #DFA3E8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-card--umbra { --pc-accent: #DFA3E8; } }

.product-top { display: flex; align-items: center; gap: .9rem; }
.product-logo {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 15px; flex: 0 0 auto;
}
.product-card--iris .product-logo { background: #FFB020; color: #000; }
.product-card--clair .product-logo { background: #3730A3; color: #FFF; }
.product-card--vellum .product-logo { background: #0F6E4B; color: #FFF; }
.product-card--gloss .product-logo { background: #8A4A12; color: #FFF; }
.product-card--facet .product-logo { background: #0B5D6E; color: #FFF; }
.product-card--umbra .product-logo { background: #86288F; color: #FFF; }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; color: var(--pc-text); margin: 0; }
.product-role { font-size: .98rem; color: var(--pc-muted); margin: .25rem 0 0; max-width: none; }
.product-pitch { font-size: 1.12rem; line-height: 1.55; color: var(--pc-text); margin: 0; max-width: none; }
.product-feats { list-style: none; display: grid; gap: .55rem; margin: 0; }
.product-feats li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; color: var(--pc-muted); font-size: 1.02rem; }
.product-feats svg { width: 20px; height: 20px; margin-top: .18rem; color: var(--pc-accent); }
.product-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--pc-accent);
}
.product-card:hover .product-cta .arrow { transform: translateX(3px); }
.product-cta .arrow { transition: transform var(--dur) var(--ease); }
.product-status {
  position: absolute; top: clamp(1.6rem,3.5vw,2.4rem); right: clamp(1.6rem,3.5vw,2.4rem);
  font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px;
  color: var(--pc-muted); border: 1px solid var(--pc-border);
}

/* ---------- Principles ------------------------------------------------------ */
.principles { background: var(--surface); border-block: 1px solid var(--border); }
.principle-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-top: clamp(1.75rem,4vw,2.5rem); }
@media (min-width: 680px) { .principle-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .principle-grid { grid-template-columns: repeat(4, 1fr); } }
.principle { display: flex; flex-direction: column; gap: .85rem; }
.principle .num { font-family: var(--font-mono); font-size: .85rem; color: var(--brand-text); letter-spacing: .05em; }
.principle h3 { margin: 0; font-size: 1.28rem; }
.principle p { margin: 0; color: var(--text-muted); font-size: 1.03rem; }
.principle .bar { height: 3px; width: 40px; border-radius: 3px; background: var(--spectrum); }

/* ---------- Studio teaser --------------------------------------------------- */
.studio-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
@media (min-width: 900px) { .studio-grid { grid-template-columns: 1.1fr .9fr; } }
.studio-copy p { color: var(--text-muted); font-size: 1.1rem; }
.studio-copy p strong { color: var(--text); }
.studio-facts { list-style: none; display: grid; gap: 1rem; }
.studio-facts li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.studio-facts .tile-icon { width: 46px; height: 46px; }
.studio-facts h3 { margin: 0 0 .15rem; font-size: 1.12rem; }
.studio-facts p { margin: 0; color: var(--text-muted); font-size: 1rem; max-width: none; }

/* ---------- Contact band ---------------------------------------------------- */
.contact-band { position: relative; }
.contact-panel {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3rem); box-shadow: var(--shadow-md);
}
.contact-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--spectrum); }
.contact-panel h2 { margin-bottom: .5rem; }
.contact-panel p { margin-inline: auto; color: var(--text-muted); font-size: var(--t-lead); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 1.75rem; }
.contact-panel .waveform { height: 46px; max-width: 220px; margin: 0 auto 1.75rem; opacity: .85; }

/* ---------- Studio / About page specifics ---------------------------------- */
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem,4vw,2.5rem); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { font-size: var(--t-lead); color: var(--text-muted); max-width: 54ch; }
.prose { max-width: var(--measure); }
.prose p { color: var(--text-muted); font-size: 1.1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose strong { color: var(--text); }
.value-list { list-style: none; display: grid; gap: 1.1rem; margin: 1.75rem 0; }
.value-list li { position: relative; padding-left: 1.9rem; color: var(--text-muted); max-width: var(--measure); }
.value-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--spectrum); transform: rotate(45deg); }
.value-list strong { color: var(--text); }

.a11y-statement { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.5rem); box-shadow: var(--shadow-sm); }
