:root {
  --background: #f4f2ed;
  --ink: #171717;
  --signal-red: #ff0000;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  font-family: inherit;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--ink);

  overflow-y: auto;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* =========================================================
   PAGE
   ========================================================= */

.page {
  width: 100%;
  min-height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   IDENTITY
   ========================================================= */

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transform: translateY(-1vh);
}


/* =========================================================
   ANTENNA
   ========================================================= */

.antenna {
  width: 72px;
  height: 72px;
  display: block;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


/* =========================================================
   SIGNAL DOT

   Normally completely invisible.
   JavaScript adds the .visible class when the signal flashes.
   ========================================================= */

.signal-dot {
  opacity: 0;

  fill: var(--signal-red);

  pointer-events: none;
}

.signal-dot.visible {
  opacity: 1;
}


/* =========================================================
   TAGLINE
   ========================================================= */

.tagline {
  margin-top: 24px;


  font-size: 19px;
  font-weight: 400;

  line-height: 1.75;

  letter-spacing: 0.34em;

  text-align: center;
  text-transform: uppercase;

  white-space: nowrap;
}

.tagline span {
  display: block;
}

.tagline,
.tagline:link,
.tagline:visited,
.tagline:hover,
.tagline:active {
  color: inherit;
  text-decoration: none;
}

.tagline:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .antenna {
    width: 72px;
    height: 72px;
  }

  .tagline {
    margin-top: 24px;

    font-size: 14px;

    line-height: 1.75;

    letter-spacing: 0.28em;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

  .tagline {
    font-size: 12px;
    letter-spacing: 0.22em;
  }
}

/* Independent philosophy disclosure; the antenna styles remain unchanged. */
.page {
  padding: 48px clamp(20px, 5vw, 48px);
}
.identity {
  width: 100%;
  min-width: 0;
}
.philosophy {
  width: 100%;
  max-width: 40rem;
  margin-top: clamp(36px, 6vh, 64px);
}
.philosophy-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.philosophy-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
.philosophy-symbol {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.philosophy-symbol::before { content: "+"; }
.philosophy-toggle[aria-expanded="true"] .philosophy-symbol::before {
  content: "−";
}
.philosophy-title {
  font-size: clamp(12px, 0.7rem + 0.2vw, 15px);
  letter-spacing: 0.18em;
  line-height: 1.3;
}
.philosophy-subtitle {
  font-size: clamp(11px, 0.65rem + 0.15vw, 13px);
  line-height: 1.3;
  color: #62605b;
}
.philosophy-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 320ms ease, opacity 240ms ease,
    visibility 0s linear 320ms;
}
.philosophy-content.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.philosophy-clip {
  min-height: 0;
  overflow: hidden;
}
.philosophy-copy {
  padding-top: clamp(28px, 4vw, 40px);
  font-size: clamp(16px, 0.9rem + 0.35vw, 19px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.philosophy-language[lang="en"] {
  font-size: clamp(14px, 0.8rem + 0.25vw, 16px);
}
.philosophy-copy p { margin: 0 0 0.65em; }
.philosophy-copy p:last-child { margin-bottom: 0; }
.philosophy-language + .philosophy-language {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d4d1ca;
}
.philosophy-route {
  font-size: 0.8em;
  letter-spacing: 0.055em;
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .philosophy-content { transition: none; }
}
