/* ============================================================
   TENNESSEE TREE — stylesheet
   Black & white, League Gothic Condensed throughout.
   ============================================================ */

@font-face {
  font-family: "League Gothic Condensed";
  src: url("../fonts/LeagueGothicCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --ink: #131313;
  --muted: #45454a;
  --hairline: rgba(10, 10, 10, 0.14);
  --hairline-soft: rgba(10, 10, 10, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.34);
  --glass-bg-strong: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.85);
  --header-h: 76px;
  --header-h-mobile: 62px;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base type ---------- */
body {
  font-family: "League Gothic Condensed", "Oswald", "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--black);
  line-height: 1.5;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.08;
  color: var(--black);
}

h1 {
  font-size: clamp(2.6rem, 3.2vw + 1.6rem, 5rem);
}

h2 {
  font-size: clamp(2rem, 1.6vw + 1.4rem, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 0.8vw + 1.1rem, 1.9rem);
  letter-spacing: 0.06em;
}

p {
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}

p + p {
  margin-top: 1.1em;
}

.eyebrow {
  font-size: 1.02rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.8em 1.2em;
  z-index: 999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* ---------- Fixed site background (TT_abstract_2) ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--white);
}

.site-bg picture,
.site-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.9;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.55) 60%, rgba(255, 255, 255, 0.85) 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h-mobile);
  display: flex;
  align-items: center;
  background-color: var(--black);
  background-image: url("../img/tt-abstract-0-band.webp");
  background-repeat: no-repeat;
  background-position: center 60%;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 62.5em) {
  .site-header {
    height: var(--header-h);
  }
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}

.brand img {
  height: 34px;
  width: auto;
}

@media (min-width: 62.5em) {
  .brand img {
    height: 42px;
  }
}

.brand-word {
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 62.5em) {
  .brand-word {
    font-size: 1.75rem;
  }
}

/* Desktop nav */
.primary-nav {
  display: none;
}

@media (min-width: 62.5em) {
  .primary-nav {
    display: flex;
    gap: 2.4rem;
  }

  .primary-nav a {
    color: var(--white);
    font-size: 1.28rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.4rem 0.1rem;
    position: relative;
  }

  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--white);
    transition: right 0.28s var(--ease);
  }

  .primary-nav a:hover::after,
  .primary-nav a:focus-visible::after,
  .primary-nav a[aria-current="page"]::after {
    right: 0;
  }
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 34px;
  height: 34px;
  z-index: 210;
  position: relative;
}

@media (min-width: 62.5em) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease), width 0.32s var(--ease);
}

.menu-toggle span:nth-child(2) {
  width: 70%;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 100%;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 100%;
}

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--black);
  background-image: url("../img/tt-abstract-0-tall.webp");
  background-repeat: no-repeat;
  background-position: center 88%;
  background-size: 180% auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0s linear 0.32s;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0s linear 0s;
}

.mobile-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-drawer nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.9rem;
}

.mobile-drawer a {
  color: var(--white);
  font-size: 2.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-drawer a[aria-current="page"] {
  border-bottom: 2px solid var(--white);
}

.drawer-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close::before,
.drawer-close::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  background: var(--white);
}

.drawer-close::before {
  transform: rotate(45deg);
}

.drawer-close::after {
  transform: rotate(-45deg);
}

body.drawer-open {
  overflow: hidden;
}

/* ---------- Main / layout ---------- */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Vertically center short, single-block pages (home hero, products) within
   the available space on first load — content still scrolls normally if it
   doesn't fit, it's just centered rather than pinned to the top. */
@media (max-width: 62.49em) {
  main.main-center {
    justify-content: center;
  }
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Frosted glass panel ---------- */
.panel-section {
  padding: 3.2rem 0 4rem;
}

@media (min-width: 62.5em) {
  .panel-section {
    padding: 5.5rem 0 6rem;
  }
}

.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border-radius: 22px;
  padding: 2.2rem 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 60px -25px rgba(0, 0, 0, 0.35),
    0 2px 18px rgba(0, 0, 0, 0.08);
}

@media (min-width: 40em) {
  .glass {
    padding: 3rem 3.4rem;
    border-radius: 28px;
  }
}

/* soft feathered edge so the panel doesn't read as a hard-cut box */
.glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass > * + * {
  margin-top: 1.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 48em) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  height: 26px;
}

.footer-brand span {
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 1.8rem;
}

.footer-nav a {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-meta {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1.4rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.9em;
  border: 1.5px solid var(--black);
  color: var(--black);
  font-size: 1.24rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--black);
  color: var(--white);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--white);
  color: var(--black);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Home / hero ---------- */
.hero {
  padding: 2.6rem 0 1rem;
}

@media (min-width: 62.5em) {
  .hero {
    padding: 3.6rem 0 1rem;
  }
}

.hero-figure {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.4);
}

.hero-figure img {
  width: 100%;
  height: auto;
}

.hero-tag-wrap {
  margin-top: -2.4rem;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  text-align: center;
  max-width: 46rem;
}

.hero-tag p {
  max-width: none;
  font-size: 1.5rem;
}

.hero-cta {
  padding: 0 0 1rem;
  display: flex;
  justify-content: center;
}

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

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

.field label {
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1.2rem;
  padding: 0.72em 0.9em;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 1px;
}

.form-note {
  font-size: 1.05rem;
  color: var(--muted);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.4rem;
}

.contact-direct a {
  border-bottom: 1.5px solid var(--black);
}

.form-instructions {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--ink);
}

.form-status {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
}

.form-status[data-state="success"] {
  color: #0a5c2b;
}

.form-status[data-state="error"] {
  color: #7a1414;
}

/* ---------- Page-top logo mark (About / Products / Contact) ---------- */
.page-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.page-logo img {
  width: 84px;
  height: auto;
  opacity: 0.92;
}

@media (min-width: 40em) {
  .page-logo img {
    width: 104px;
  }
}

/* ---------- Centered running text (About / Products) ---------- */
.text-center p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Simple centered state (products) ---------- */
.center-panel {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.center-panel p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 0.35em 1.1em;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
