/* Samaha & Co.
   Design system: warm cream paper, slate navy ink, Inter throughout,
   modular type scale, 8-unit spacing scale. The serif wordmark in the
   lockup is the single classical accent — everything else is crisp sans. */

:root {
  /* --- Colour --- */
  --paper:        #F8F6F1;
  --paper-soft:   #F2EFE7;
  --ink:          #273A49;
  --ink-90:       rgba(39, 58, 73, 0.90);
  --ink-70:       rgba(39, 58, 73, 0.70);
  --ink-55:       rgba(39, 58, 73, 0.55);
  --ink-40:       rgba(39, 58, 73, 0.40);
  --ink-18:       rgba(39, 58, 73, 0.18);
  --ink-12:       rgba(39, 58, 73, 0.12);
  --ink-8:        rgba(39, 58, 73, 0.08);
  --gold:         #B08D57;
  --gold-soft:    rgba(176, 141, 87, 0.40);

  /* --- Type --- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* --- Type scale (modular) --- */
  --t-xs:    0.8125rem;   /* 13 */
  --t-sm:    0.9375rem;   /* 15 */
  --t-base:  1.0625rem;   /* 17 */
  --t-md:    1.1875rem;   /* 19 */
  --t-lg:    1.375rem;    /* 22 */
  --t-xl:    1.75rem;     /* 28 */
  --t-2xl:   2.25rem;     /* 36 */
  --t-3xl:   3rem;        /* 48 */
  --t-4xl:   clamp(2.5rem, 5.5vw, 4.5rem);  /* 40-72 hero */
  --t-stmt:  clamp(1.625rem, 3vw, 2.375rem); /* 26-38 statement */

  /* --- Spacing (8-unit) --- */
  --s-1: 0.5rem;   /*  8 */
  --s-2: 1rem;     /* 16 */
  --s-3: 1.5rem;   /* 24 */
  --s-4: 2rem;     /* 32 */
  --s-5: 3rem;     /* 48 */
  --s-6: 4rem;     /* 64 */
  --s-7: 6rem;     /* 96 */
  --s-8: 8rem;     /* 128 */
  --s-9: 10rem;    /* 160 */

  /* --- Containers --- */
  --w-prose: 38rem;
  --w-text:  44rem;
  --w-wide:  76rem;
  --w-page:  90rem;

  /* --- Motion --- */
  --ease: cubic-bezier(.2,.6,.2,1);

  /* --- Layout --- */
  --header-pad-y: 1.75rem;
  --header-pad-x: clamp(1.5rem, 5vw, 5rem);
  --section-pad-y: clamp(4rem, 8vw, 7rem);
  --section-pad-x: clamp(1.5rem, 5vw, 5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

/* --- Header --- */
header.site {
  padding: var(--header-pad-y) var(--header-pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  background: var(--paper);
}
.lockup { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.lockup img { height: 34px; width: auto; display: block; }
.nav-primary { display: flex; align-items: center; gap: var(--s-4); }
.nav-primary a {
  font-size: var(--t-sm);
  color: var(--ink-70);
  text-decoration: none;
  font-weight: 400;
  transition: color 160ms var(--ease);
}
.nav-primary a:hover { color: var(--ink); }
.nav-primary .link-arrow { color: var(--ink); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: var(--t-4xl);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.018em;
}
h4 {
  font-size: var(--t-base);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-90);
  margin: 0;
  max-width: 38rem;
}

.statement {
  font-size: var(--t-stmt);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  max-width: 32ch;
}

/* Eyebrow — small dot + label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-70);
  margin: 0 0 var(--s-3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.muted  { color: var(--ink-55); }
.small  { font-size: var(--t-sm); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-40);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}
a:hover { text-decoration-color: var(--ink); }

/* --- Hero media (landscape video below the signature) --- */
.hero-media {
  position: relative;
  width: 100%;
  margin: var(--s-6) 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-soft);
  opacity: 0;
  animation: hero-media-in 1.2s ease-out 0.45s forwards;
}

.hero-media video,
.hero-media .poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes hero-media-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; opacity: 1; }
}

/* --- Hero rotating quotes (lead-equivalent) --- */
.hero-quotes {
  position: relative;
  min-height: 4em;
  max-width: 38rem;
}
.hero-quotes .quote {
  position: absolute;
  top: 0; left: 0; right: 0;
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-90);
  opacity: 0;
  transition: opacity 900ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.hero-quotes .quote.is-active {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .hero-quotes .quote { transition: none; }
}

/* --- Hero signature (calligraphic Samaha & Co. drawing in) --- */
@property --reveal {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

.hero-signature-block {
  display: block;
  max-width: 38rem;
  flex: 1 1 18rem;
  min-width: 0;
  overflow: visible;
}

.hero-signature {
  display: block;
  font-family: "Mrs Saint Delafield", "Pinyon Script", "Italianno", cursive;
  font-size: clamp(3.5rem, 8vw, 6.25rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: 0;
  margin: 0;
  padding-top: 0.45em;
  padding-bottom: 0.4em;
  overflow: visible;
  --reveal: 0%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(var(--reveal) - 8%), transparent var(--reveal));
          mask-image: linear-gradient(90deg, #000 0%, #000 calc(var(--reveal) - 8%), transparent var(--reveal));
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  animation: hero-write 2.6s cubic-bezier(.55,.05,.25,1) 0.6s forwards;
}

@keyframes hero-write {
  to { --reveal: 112%; }
}

.hero-signature-line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: -0.25em;
  padding-top: 0.5rem;
  border-top: 1.5px dotted var(--ink-40);
  font-family: var(--font);
  font-size: var(--t-xs);
  color: var(--ink-70);
  letter-spacing: 0;
  opacity: 0;
  animation: hero-line-in 0.8s ease-out 3.0s forwards;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: var(--t-sm);
  text-align: right;
  opacity: 0;
  animation: hero-line-in 0.8s ease-out 3.3s forwards;
}
.hero-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-40);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.hero-contact a:hover {
  text-decoration-color: var(--ink);
  color: var(--ink);
}

.block--media {
  border-top: 0;
  padding: 0;
  max-width: none;
}
.block--media .hero-media {
  margin: 0;
  aspect-ratio: auto;
  height: clamp(420px, 75vh, 820px);
}
@media (max-width: 640px) {
  .block--media .hero-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* --- The practice: text + landscape portrait --- */
.practice-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.practice-text { min-width: 0; }
.practice-portrait { margin: 0; }
.practice-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.practice-portrait figcaption {
  margin-top: 0.875rem;
  font-size: var(--t-xs);
  color: var(--ink-55);
}

/* --- Standalone image block (Beirut) --- */
.block--image {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.image-figure { margin: 0; }
.image-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.image-figure figcaption {
  margin-top: 0.875rem;
  font-size: var(--t-xs);
  color: var(--ink-55);
}

@media (max-width: 768px) {
  .practice-grid { grid-template-columns: 1fr; gap: 2rem; }
  .practice-portrait img { aspect-ratio: 4 / 3; }
  .image-figure img { aspect-ratio: 16 / 9; }
}

@keyframes hero-line-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-signature { animation: none; -webkit-mask-image: none; mask-image: none; --reveal: 100%; }
  .hero-signature-line { animation: none; opacity: 1; }
}

/* --- Sections (blocks) --- */
.block {
  padding: var(--section-pad-y) var(--section-pad-x);
  border-top: 1px solid var(--ink-8);
  max-width: var(--w-page);
  margin: 0 auto;
}
.block:first-of-type { border-top: 0; }

.block--hero {
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-top: 0;
  display: flex;
  flex-direction: column;
}
.block--hero .hero-foot { margin-top: clamp(3rem, 6vw, 5rem); }

/* --- Loading splash (signature draws in centred, then fades) --- */
.brand-splash {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  animation: splash-out 0.9s ease-out 3.4s forwards;
}
.splash-mark {
  display: block;
  font-family: "Mrs Saint Delafield", "Pinyon Script", "Italianno", cursive;
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: 0;
  padding-top: 0.45em;
  padding-bottom: 0.4em;
  text-align: center;
  --reveal: 0%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(var(--reveal) - 8%), transparent var(--reveal));
          mask-image: linear-gradient(90deg, #000 0%, #000 calc(var(--reveal) - 8%), transparent var(--reveal));
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  animation: hero-write 2.6s cubic-bezier(.55,.05,.25,1) 0.3s forwards;
}
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-splash { animation: splash-out 0.4s ease 0.4s forwards; }
  .splash-mark { --reveal: 100%; animation: none; }
}

.block--narrow { max-width: calc(var(--w-prose) + var(--section-pad-x) * 2); }
.block--centered { display: flex; flex-direction: column; align-items: center; text-align: center; }
.block--soft { background: var(--paper-soft); border-top: 0; }

.prose { max-width: var(--w-prose); }
.prose p { font-size: var(--t-base); line-height: 1.65; }
.prose p + p { margin-top: var(--s-3); }

.text-44 { max-width: var(--w-text); }

/* Soft spacing utilities */
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }

/* --- Arrow link --- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--t-base);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ink);
  transition: gap 200ms var(--ease);
}
.link-arrow::after {
  content: "›";
  font-weight: 400;
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 200ms var(--ease);
}
.link-arrow:hover { gap: 0.85rem; }
.link-arrow:hover::after { transform: translate(2px, -1px); }

/* --- CTA pill --- */
.cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 200ms var(--ease);
}
.cta:hover { background: var(--paper); color: var(--ink); }
.cta::after {
  content: "›";
  font-size: 1rem;
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 200ms var(--ease);
}
.cta:hover::after { transform: translate(3px, -1px); }
.cta--ghost { background: transparent; color: var(--ink); }
.cta--ghost:hover { background: var(--ink); color: var(--paper); }

/* --- Tiles (services) --- */
.tiles {
  border-top: 1px solid var(--ink-12);
  margin-top: var(--s-6);
}
.tile {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--ink-12);
  text-decoration: none;
  color: var(--ink);
  transition: padding 220ms var(--ease);
}
.tile:hover { padding-left: 0.5rem; }
.tile .tile-num {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-55);
  padding-top: 0.5rem;
  letter-spacing: 0.04em;
}
.tile .tile-body { max-width: 36rem; }
.tile h3 { margin-bottom: 0.4rem; }
.tile p { color: var(--ink-70); font-size: var(--t-base); margin: 0; line-height: 1.55; }
.tile .arrow {
  font-size: 1.5rem;
  align-self: center;
  color: var(--ink-55);
  transition: transform 220ms var(--ease), color 200ms var(--ease);
}
.tile:hover .arrow { transform: translateX(6px); color: var(--ink); }

/* --- Statement block (the brand quote) --- */
.statement-block {
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}
.statement-block .attribution {
  font-size: var(--t-sm);
  color: var(--ink-55);
  margin-top: var(--s-3);
}
.statement-block .attribution::before {
  content: "—";
  margin-right: 0.4rem;
  color: var(--ink-40);
}

/* --- Steps --- */
.steps {
  list-style: none; padding: 0; margin: var(--s-4) 0 0;
  border-top: 1px solid var(--ink-12);
  counter-reset: step;
}
.steps li {
  padding: var(--s-4) 0 var(--s-4) 4rem;
  position: relative;
  counter-increment: step;
  border-bottom: 1px solid var(--ink-12);
  font-size: var(--t-md);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: calc(var(--s-4) + 0.15rem);
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-55);
  letter-spacing: 0.04em;
}

/* --- Contact grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.contact-grid h4 {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-55);
  margin: 0 0 var(--s-2);
  letter-spacing: 0;
}
.contact-grid p { font-size: var(--t-base); margin: 0; line-height: 1.55; }
.contact-grid a { text-decoration-color: var(--ink-18); }

/* --- Forms --- */
form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { display: none; }
label.field {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  margin: var(--s-4) 0 var(--s-1);
}
input[type="text"], input[type="tel"], input[type="email"],
input[type="password"], input[type="number"], textarea, select {
  display: block;
  width: 100%;
  padding: 0.95rem 1.125rem;
  font-family: var(--font);
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-18);
  border-radius: 6px;
  appearance: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
textarea { min-height: 7rem; resize: vertical; }
::placeholder { color: var(--ink-40); opacity: 1; }

/* Tap-list */
.tap-list {
  list-style: none; padding: 0; margin: var(--s-4) 0 0;
  border-top: 1px solid var(--ink-12);
}
.tap-list li { border-bottom: 1px solid var(--ink-12); }
.tap-list label {
  display: flex; align-items: center; gap: 0.875rem;
  padding: var(--s-3) 0.25rem;
  cursor: pointer;
  font-size: var(--t-md);
  font-weight: 400;
  transition: padding 200ms var(--ease), color 160ms var(--ease);
}
.tap-list label:hover { padding-left: 0.5rem; color: var(--ink-90); }
.tap-list input[type="radio"], .tap-list input[type="checkbox"] { margin: 0; accent-color: var(--ink); width: 1rem; height: 1rem; }

/* Time slots */
.day { padding: var(--s-4) 0; border-bottom: 1px solid var(--ink-12); }
.day:last-child { border-bottom: 0; }
.day h4 {
  margin: 0 0 var(--s-3);
  font-weight: 500;
  color: var(--ink);
  font-size: var(--t-base);
}
.slots { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.slot {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.125rem;
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink-18);
  background: var(--paper);
  min-width: 5.25rem;
  border-radius: 999px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.slot:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.slot[aria-disabled="true"] { color: var(--ink-40); border-color: var(--ink-12); pointer-events: none; }

/* --- Credential card (Layer 1) --- */
body.portal { background: var(--paper); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
body.portal main { width: 100%; }
.credential {
  max-width: 420px;
  margin: 0 auto var(--s-3);
  background: var(--paper);
  border: 1px solid var(--ink-12);
  padding: var(--s-5) var(--s-4) var(--s-5);
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(39, 58, 73, 0.02);
}
.credential .mark img { height: 56px; width: auto; display: block; margin: 0 auto; }
.credential .house {
  font-size: var(--t-xs);
  color: var(--ink-55);
  margin: var(--s-3) 0 0;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.credential .name {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--ink);
  margin: var(--s-5) 0 0.4rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.credential .tier {
  font-size: var(--t-sm);
  color: var(--ink-70);
  margin: 0;
  font-weight: 400;
}
.credential .meta {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink-12);
  font-size: var(--t-sm);
  color: var(--ink-55);
  line-height: 1.7;
}
.credential .meta div { margin: 0.125rem 0; }
.credential .ref {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.credential-foot {
  text-align: center;
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  color: var(--ink-55);
}
.credential-foot a { color: inherit; text-decoration-color: var(--ink-12); }

/* --- Step indicator (booking) --- */
.step-indicator {
  font-size: var(--t-sm);
  color: var(--ink-55);
  margin: 0 0 var(--s-2);
  font-weight: 400;
  letter-spacing: 0;
}

/* --- Admin --- */
header.admin {
  padding: var(--header-pad-y) var(--header-pad-x);
  border-bottom: 1px solid var(--ink-12);
}
.admin-nav { display: flex; gap: var(--s-4); }
.admin-nav a {
  font-size: var(--t-sm);
  text-decoration: none;
  color: var(--ink-70);
  font-weight: 400;
  transition: color 160ms var(--ease);
}
.admin-nav a:hover { color: var(--ink); }

.admin-wrap {
  padding: var(--s-7) var(--header-pad-x);
  max-width: var(--w-wide);
  margin: 0 auto;
}
.admin-section { padding: var(--s-6) 0; border-top: 1px solid var(--ink-12); }
.admin-section:first-of-type { border-top: 0; padding-top: 0; }
.admin-section h2 {
  font-size: var(--t-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-4);
}

.queue-item { padding: var(--s-4) 0; border-bottom: 1px solid var(--ink-12); }
.queue-item:last-child { border-bottom: 0; }
.queue-item .who { font-size: var(--t-md); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.queue-item .who .situation { color: var(--ink-55); font-weight: 400; }
.queue-item .meta { font-size: var(--t-sm); color: var(--ink-55); margin: 0.25rem 0 0; font-family: var(--mono); letter-spacing: 0.01em; }
.queue-item .note { color: var(--ink); font-size: var(--t-base); margin: var(--s-2) 0 0; max-width: 48rem; line-height: 1.55; }
.queue-item .actions { margin-top: var(--s-3); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.queue-item .actions button {
  font-family: var(--font); font-size: var(--t-sm); font-weight: 500;
  padding: 0.55rem 1rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink-18);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.queue-item .actions button:hover { border-color: var(--ink); }
.queue-item .actions button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.queue-item .actions button.primary:hover { background: var(--paper); color: var(--ink); }

table.records { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
table.records th, table.records td {
  padding: var(--s-3) 0.75rem; text-align: left; border-bottom: 1px solid var(--ink-12); vertical-align: top;
}
table.records th { font-weight: 500; font-size: var(--t-xs); color: var(--ink-55); }
table.records td.name { font-size: var(--t-base); font-weight: 500; }
table.records td.ref { font-family: var(--mono); font-size: var(--t-sm); color: var(--ink-55); }
table.records td.date { font-size: var(--t-sm); color: var(--ink-55); }
table.records a { text-decoration: none; }
table.records a:hover { color: var(--ink-70); }

.tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--ink-70);
  border: 1px solid var(--ink-18);
  border-radius: 999px;
  margin-right: 0.375rem;
  margin-bottom: 0.25rem;
}

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--ink-12);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row label { font-size: var(--t-base); font-weight: 500; }
.toggle-row .descr {
  display: block;
  font-size: var(--t-sm);
  color: var(--ink-55);
  font-weight: 400;
  margin-top: 0.125rem;
}
.toggle-row input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }

.admin-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: var(--s-3); }
.admin-bar .spacer { flex: 1; }

input.search { font-size: var(--t-base); }

.phase-note {
  border: 1px dashed var(--ink-18);
  padding: var(--s-3) var(--s-4);
  border-radius: 6px;
}
.phase-note p { font-size: var(--t-sm); color: var(--ink-55); margin: 0; }

/* --- Footer --- */
footer.site {
  padding: var(--s-7) var(--header-pad-x);
  border-top: 1px solid var(--ink-12);
  background: var(--paper);
  margin-top: var(--s-5);
}
footer.site .row {
  max-width: var(--w-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: start;
}
footer.site .word {
  font-size: var(--t-base);
  font-weight: 500;
  margin: 0 0 0.375rem;
  letter-spacing: -0.005em;
}
footer.site .indep {
  font-size: var(--t-sm);
  color: var(--ink-55);
  margin: 0;
  max-width: 32rem;
  line-height: 1.55;
}
footer.site .contact-block {
  font-size: var(--t-sm);
  color: var(--ink);
  text-align: right;
  line-height: 1.85;
}
footer.site .contact-block a { text-decoration-color: var(--ink-12); }
footer.site .links {
  font-size: var(--t-xs);
  color: var(--ink-55);
  margin-top: var(--s-4);
  grid-column: 1 / -1;
  display: flex; gap: var(--s-3); align-items: center;
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink-8);
}
footer.site .links a { color: inherit; text-decoration-color: var(--ink-12); }
footer.site .links .spacer { flex: 1; }
footer.site .footer-disclaimer {
  margin-top: var(--s-2);
  max-width: 34rem;
  color: var(--ink-55);
  font-size: var(--t-xs);
  line-height: 1.55;
}

/* --- Utilities --- */
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .nav-primary { gap: var(--s-2); }
  .tile { grid-template-columns: 3rem 1fr auto; gap: 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .lockup img { height: 28px; }
  .nav-primary a:not(.link-arrow) { display: none; }
  .tile { grid-template-columns: 1fr; gap: 0.5rem; padding: var(--s-4) 0; }
  .tile .tile-num { padding-top: 0; font-size: 0.75rem; }
  .tile .arrow { align-self: start; margin-top: -2rem; align-self: end; }
  footer.site .row { grid-template-columns: 1fr; gap: var(--s-3); }
  footer.site .contact-block { text-align: left; }
  .credential { margin: var(--s-4) var(--s-3); }
}
