/* Theanine Holdings — design tokens */
:root {
  --charcoal: #202020;
  --gray-1: #535353;
  --gray-2: #868686;
  --gray-3: #B9B9B9;
  --gray-4: #ECECEC;
  --gray-5: #FAFAFA;
  --white: #FFFFFF;
  --accent: #FF9900;

  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', 'Courier New', monospace;

  --container: 1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--gray-5);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--charcoal);
}

p { margin: 0 0 1em; color: var(--gray-1); }
p:last-child { margin-bottom: 0; }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-4);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.logo img,
.logo .brandmark {
  height: 22px;
  width: auto;
  display: block;
}

@media (max-width: 400px) {
  .logo img,
  .logo .brandmark {
    height: 18px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 14px;
  color: var(--gray-1);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--charcoal);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--charcoal);
}

.btn-accent:hover {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.link-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 100px;
  border-bottom: 1px solid var(--gray-4);
}

.hero .sub {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.6vw, 58px);
  color: var(--charcoal);
  max-width: 820px;
  margin-bottom: 28px;
}

.hero .support {
  max-width: 640px;
  font-size: 17px;
  margin-bottom: 40px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  padding: 180px 0 120px;
  background-size: cover;
  background-position: center;
  border-bottom: none;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.5) 0%, rgba(32, 32, 32, 0.78) 100%);
}

.hero-photo .wrap {
  position: relative;
  z-index: 1;
}

.hero-photo .sub {
  color: var(--white);
}

.hero-photo .support {
  color: var(--gray-4);
}

.hero-photo .btn {
  border-color: var(--white);
  color: var(--white);
}

.hero-photo .btn:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--gray-4);
}

.section.tight { padding: 72px 0; }
.section:last-child { border-bottom: none; }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.body-copy {
  max-width: 760px;
}

.body-copy p {
  font-size: 17px;
}

.section-image {
  margin: 0 0 40px;
}

.section-image img {
  width: 100%;
  display: block;
  border: 1px solid var(--gray-4);
}

.section-image figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-2);
  margin-top: 12px;
}

/* ---------- Pillars / cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-4);
  border: 1px solid var(--gray-4);
}

.pillar-card {
  background: var(--white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 4px solid transparent;
  box-shadow: 0 1px 3px rgba(32, 32, 32, 0.05);
}

.pillar-card.accent-orange { border-top-color: var(--accent); }
.pillar-card.accent-charcoal { border-top-color: var(--charcoal); }

.pillar-card h3 {
  font-size: 26px;
}

.pillar-card p {
  font-size: 15.5px;
  flex-grow: 1;
}

/* ---------- Who we work with ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-4);
  border-left: 1px solid var(--gray-4);
}

.logo-cell {
  border-right: 1px solid var(--gray-4);
  border-bottom: 1px solid var(--gray-4);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  text-align: center;
}

.logo-cell span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--gray-2);
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.logo-cell:hover span { color: var(--charcoal); }

.logo-cell img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.logo-cell.dark-tile {
  background: var(--charcoal);
}

.logo-cell.dark-tile img {
  max-height: 30px;
  filter: none;
  opacity: 0.85;
}

.logo-cell.dark-tile:hover img {
  opacity: 1;
}

/* ---------- Regulatory notice ---------- */
.notice {
  border-left: 3px solid var(--accent);
  background: var(--gray-4);
  padding: 20px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-1);
  line-height: 1.7;
}

.notice.small {
  padding: 16px 24px;
  font-size: 12px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--gray-4);
}

.page-hero .eyebrow { margin-bottom: 20px; }

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--accent);
  margin-bottom: 24px;
}

.page-hero .intro {
  max-width: 680px;
  font-size: 18px;
}

/* ---------- Services list ---------- */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-4);
}

.services-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-4);
  display: flex;
  gap: 24px;
  align-items: baseline;
  font-size: 16.5px;
  color: var(--charcoal);
}

.services-list li .idx {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
  width: 28px;
}

/* ---------- Sectors ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sector-cell {
  border-left: 3px solid var(--accent);
  padding: 30px 22px;
  min-height: 120px;
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--charcoal);
  background: var(--white);
  box-shadow: 0 2px 4px rgba(32, 32, 32, 0.06), 0 8px 20px rgba(32, 32, 32, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sector-cell:hover {
  box-shadow: 0 4px 8px rgba(32, 32, 32, 0.08), 0 14px 28px rgba(32, 32, 32, 0.12);
  transform: translateY(-2px);
}

/* ---------- Full-width image band ---------- */
.section-image-band img {
  width: 100%;
  height: clamp(280px, 38vw, 480px);
  object-fit: cover;
  display: block;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-photo {
  aspect-ratio: 4 / 5;
  background: var(--gray-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-photo span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.team-card h4 {
  font-size: 17px;
  font-weight: 500;
}

.team-card .role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.vision-mission-item p {
  font-size: 17px;
}

.contact-details dl {
  margin: 32px 0 0;
}

.contact-details dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
}

.contact-details dt:first-child { margin-top: 0; }

.contact-details dd {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--charcoal);
}

.contact-link {
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-3);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
  border: 1px solid var(--gray-3);
  padding: 10px 12px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-1);
  margin-top: 16px;
  min-height: 18px;
}

.form-success {
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  background: var(--gray-4);
}

.form-success p {
  font-size: 17px;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.form-success p:last-child { margin-bottom: 0; }

.form-success p.highlight {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--charcoal);
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p {
  color: var(--gray-4);
  font-size: 14px;
  max-width: 640px;
  margin: 0;
  flex: 1 1 320px;
}

.cookie-banner-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.cookie-banner-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  border-color: var(--gray-2);
  color: var(--white);
  padding: 12px 20px;
}

.cookie-banner .btn:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.cookie-banner .btn-accent:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

@media (max-width: 560px) {
  .cookie-banner {
    justify-content: flex-start;
    text-align: left;
  }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 14px;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--gray-1);
}

.footer-nav a:hover { color: var(--charcoal); }

.footer-bottom {
  border-top: 1px solid var(--gray-4);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-3);
}

.credit {
  transition: color 0.15s ease;
}

.credit:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-mission { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    background: var(--gray-5);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a { font-size: 16px; }

  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero { padding: 96px 0 64px; }
  .section { padding: 64px 0; }

  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
