/* FILLIP-TORH TOV — warm-craft: kiln paper, walnut, ember */

:root {
  --bg: #f3ecdf;
  --bg-alt: #e7dccb;
  --bg-deep: #2c241c;
  --ink: #2c241c;
  --ink-soft: #6d5646;
  --ink-invert: #f7f1e6;
  --accent: #c4622d;
  --accent-soft: #f6e0cc;
  --line: #d9c8b2;
  --wood: #8a5630;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-display: -0.03em;
  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent),
    0 18px 40px color-mix(in srgb, var(--ink) 8%, transparent);
  --container: 1140px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-size: 1.05rem;
}

.brand__tov {
  margin-top: 0.28rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.section-head--invert .lede {
  color: color-mix(in srgb, var(--ink-invert) 72%, transparent);
}

.shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot--wide { aspect-ratio: 16 / 10; }
.shot--four { aspect-ratio: 4 / 3; }
.shot--tall { aspect-ratio: 3 / 4; }

.shot figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--ink);
  font-size: var(--step--1);
}

/* Hero */
.hero__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}

.hero h1 {
  margin: 0.35rem 0 0.8rem;
  max-width: 14ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-facts {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  padding: 1.1rem 0 0;
  margin: 1.3rem 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 650;
  color: var(--accent);
  line-height: 1;
}

/* Ticket */
.ticket {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border-left: 10px solid var(--accent);
  box-shadow: var(--shadow);
  overflow: auto;
}

.ticket__kicker {
  margin: 0;
  padding: 1rem 1.2rem 0;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
  font-weight: 700;
}

.ticket-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

.ticket-table th,
.ticket-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 450;
}

.ticket-table thead th {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.ticket-table tbody th {
  font-family: var(--font-display);
  font-size: var(--step-1);
  width: 28%;
}

/* Supply rows */
.supply-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.supply-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.supply-list__n {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--accent);
  font-weight: 650;
}

.supply-list h3 { margin-bottom: 0.35rem; }
.supply-list p { color: var(--ink-soft); }
.supply-list p + p { margin-top: 0.55rem; }

/* About */
.about__grid {
  display: grid;
  gap: var(--gap);
  align-items: center;
}

.about__grid a { color: var(--wood); }

/* Mosaic */
.mosaic {
  display: grid;
  gap: var(--gap);
}

/* Routes */
.lanes__grid {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.route-list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0 0.2rem;
  border-left: 2px solid var(--line);
}

.route-list li {
  position: relative;
  padding: 0 0 1.5rem 1.35rem;
}

.route-list li:last-child { padding-bottom: 0; }

.route-list li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}

.route-list h3 { margin-bottom: 0.3rem; }
.route-list p { color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: var(--step-2);
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0.7rem 0 0.3rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* Panel */
.panel-grid {
  display: grid;
  gap: var(--gap);
  align-items: center;
}

.tumblers {
  display: grid;
  gap: 0.65rem;
}

.tumbler {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--ink-invert) 22%, transparent);
  background: color-mix(in srgb, var(--ink-invert) 6%, transparent);
  color: var(--ink-invert);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.tumbler strong { display: block; font-family: var(--font-display); font-weight: 650; }
.tumbler small { display: block; color: color-mix(in srgb, var(--ink-invert) 70%, transparent); }

.tumbler[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 24%, var(--bg-deep));
}

.tumbler__track {
  width: 44px;
  height: 26px;
  border-radius: 99px;
  padding: 3px;
  flex: none;
  background: color-mix(in srgb, var(--ink-invert) 18%, transparent);
}

.tumbler__knob {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink-invert);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.tumbler[aria-pressed="true"] .tumbler__knob {
  transform: translateX(18px);
  background: var(--accent);
}

.model {
  background: color-mix(in srgb, var(--ink-invert) 7%, var(--bg-deep));
  border: 1px solid color-mix(in srgb, var(--ink-invert) 14%, transparent);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.4rem 0.9rem;
}

.model svg { width: 100%; height: auto; }

.model-ground {
  fill: color-mix(in srgb, var(--ink) 55%, var(--bg-deep));
}

.bay { cursor: pointer; }
.bay-top,
.bay-left,
.bay-right,
.route {
  transition: fill 0.35s var(--ease), stroke 0.35s var(--ease);
}

.bay-top { fill: color-mix(in srgb, var(--wood) 28%, var(--bg)); }
.bay-left { fill: color-mix(in srgb, var(--wood) 62%, var(--ink)); }
.bay-right { fill: color-mix(in srgb, var(--wood) 45%, var(--bg)); }

.bay.is-lit .bay-top { fill: var(--accent); }
.bay.is-lit .bay-left { fill: color-mix(in srgb, var(--accent) 62%, var(--ink)); }
.bay.is-lit .bay-right { fill: color-mix(in srgb, var(--accent) 78%, var(--bg)); }

.route {
  fill: none;
  stroke: color-mix(in srgb, var(--ink-invert) 28%, transparent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
}

.bay.is-lit .route { stroke: var(--accent); }

.model-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0 0.8rem;
  color: color-mix(in srgb, var(--ink-invert) 78%, transparent);
  font-size: var(--step--1);
}

.model-key li::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--wood) 40%, var(--bg));
  vertical-align: middle;
}

.model-key li.is-on::before { background: var(--accent); }

.panel-out {
  margin-top: var(--gap);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.panel-band {
  font-family: var(--font-display);
  font-size: var(--step-2);
  margin: 0.3rem 0 0.6rem;
}

.panel-volume,
.panel-schedule {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.panel-schedule { margin-top: 0.7rem; }
.panel-note {
  margin: 1rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Contact */
.contact__grid {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.desk-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.desk-list a { color: var(--wood); }

.desk-form {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  display: grid;
  gap: 1rem;
}

.form-grid { display: grid; gap: 0.9rem; }

.desk-form .btn { justify-self: start; }

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid p { margin: 0 0 0.7rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-nav a { text-decoration: none; }

@media (min-width: 720px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .supply-list li {
    grid-template-columns: 4.5rem 1fr;
    gap: 0.5rem 1rem;
    align-items: start;
    padding: 1.3rem 1.5rem;
  }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr; align-items: start; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 0.92fr 1.08fr; align-items: stretch; }
  .hero__photo { aspect-ratio: auto; height: 100%; min-height: 28rem; }
  .about__grid { grid-template-columns: 1.05fr 0.95fr; }
  .lanes__grid { grid-template-columns: 0.8fr 1.2fr; }
  .panel-grid { grid-template-columns: 0.82fr 1.18fr; }
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic__lead {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
  }
  .mosaic .shot--tall,
  .mosaic__wide { aspect-ratio: 4 / 3; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 0.92rem; }
  .hero__actions .btn { width: 100%; }
}
