/* PreeSeq - web stylesheet. Tokens from the PreeSeq design system. */

@font-face { font-family: "Caladea"; src: url("../fonts/Caladea-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/Caladea-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/Caladea-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/Carlito-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/Carlito-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/Carlito-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #17293f;
  --white: #ffffff;
  --sand: #f5f1ec;
  --terracotta: #b5563b;
  --slate: #5e6b7d;
  --stone: #d6d2cc;

  --display: Cambria, Caladea, Georgia, serif;
  --body: Calibri, Carlito, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1080px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--body); font-size: 19px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
p { margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* Brand mark: three round dots */
.ps-mark { display: inline-block; width: 0.8em; height: 0.72em; fill: var(--terracotta); flex: none; }

/* Announcement bar */
.announce { background: var(--navy); color: var(--sand); font-size: 15px; text-align: center; padding: 10px var(--gutter); line-height: 1.4; }
.announce a { color: var(--white); white-space: nowrap; margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { background: rgba(255,255,255,0.94); backdrop-filter: saturate(180%) blur(12px); position: sticky; top: 0; z-index: 10; border-bottom: 0.5px solid var(--stone); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: baseline; gap: 7px; color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo .ps-mark { font-size: 22px; }
.logo .name { font-weight: 700; font-size: 20px; letter-spacing: 0.3px; }
.nav { display: flex; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--navy); font-size: 15px; opacity: 0.8; }
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 700; }

/* Links with chevron */
.more { font-size: 19px; font-weight: 400; color: var(--terracotta); white-space: nowrap; }
.more::after { content: " \203A"; }
.links { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; }

/* Sections */
.band { padding: 104px 0; }
.band.sand { background: var(--sand); }
.band.navy { background: var(--navy); color: var(--white); }
.band.navy .more { color: var(--white); }
.band.tight { padding: 80px 0; }
@media (max-width: 719px) { .band { padding: 72px 0; } .band.tight { padding: 56px 0; } }

.display { font-size: clamp(40px, 7vw, 76px); line-height: 1.05; }
.h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.sub { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.4; color: var(--slate); }
.band.navy .sub { color: var(--sand); }

/* Hero */
.hero { padding: 120px 0 112px; text-align: center; }
.hero .ps-mark { font-size: 44px; margin-bottom: 30px; }
.hero h1 { max-width: 900px; margin: 0 auto 26px; }
.hero .sub { max-width: 780px; margin: 0 auto 36px; }
@media (max-width: 719px) { .hero { padding: 72px 0 72px; } }

/* Approach */
.approach .h2 { margin-bottom: 26px; }
.approach p { font-size: 21px; }
.approach .tagline { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--slate); margin: 28px 0 0; }

/* Lever tiles (home) */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 56px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tile { grid-column: span 2; } .tile:nth-child(4) { grid-column: 2 / span 2; } }
.tile { background: var(--sand); padding: 36px 30px 32px; display: flex; flex-direction: column; position: relative; }
@media (min-width: 1000px) { .tile { min-height: 250px; padding: 40px 34px 36px; } }
.tile h3 { font-size: 27px; line-height: 1.15; margin-bottom: 12px; }
.tile p { color: var(--slate); font-size: 18px; flex: 1; margin-bottom: 22px; }
.tile .more { font-size: 17px; }
.tile .more::before { content: ""; position: absolute; inset: 0; }
.tile.dark { background: var(--navy); color: var(--white); }
.tile.dark p { color: var(--stone); }
.tile.dark .more { color: var(--white); }
.after-tiles { margin-top: 44px; }

/* Services: lever selector */
.levers { display: grid; grid-template-columns: 1fr; }
.lever-tab {
  font: inherit; text-align: left; width: 100%; cursor: pointer; background: none; color: var(--navy);
  border: 0; border-bottom: 0.5px solid var(--stone); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.lever-tab .t { display: flex; flex-direction: column; gap: 3px; }
.lever-tab .title { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.2; }
.lever-tab .sum { color: var(--slate); font-size: 17px; line-height: 1.35; }
.lever-tab .plus { position: relative; width: 16px; height: 16px; flex: none; }
.lever-tab .plus::before, .lever-tab .plus::after { content: ""; position: absolute; background: var(--navy); left: 0; right: 0; top: 7px; height: 2px; transition: transform .2s; }
.lever-tab .plus::after { transform: rotate(90deg); }
.lever-tab[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.lever-tab[aria-expanded="true"] .title { color: var(--terracotta); }
.lever-panel { padding: 8px 0 40px; border-bottom: 0.5px solid var(--stone); }
.lever-panel h2 { display: none; }
.lever-panel .line { font-family: var(--display); font-size: 23px; line-height: 1.35; margin-bottom: 22px; }
.lever-panel ul { margin: 0 0 36px; padding: 0; list-style: none; }
.lever-panel li { padding: 13px 0; border-top: 0.5px solid var(--stone); font-size: 18px; }
.lever-panel li:first-child { border-top: 0; padding-top: 0; }

.stats { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--navy); }
.stat .l { color: var(--slate); font-size: 17px; margin-top: 10px; max-width: 260px; line-height: 1.35; }
.proof-line { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--slate); margin: 0; }

@media (min-width: 900px) {
  .levers { grid-template-columns: repeat(5, 1fr); column-gap: 0; }
  .lever-tab { grid-row: 1; border-bottom: 2px solid transparent; box-shadow: inset 0 -1px 0 var(--stone); padding: 14px 12px; justify-content: center; }
  .lever-tab .sum, .lever-tab .plus { display: none; }
  .lever-tab .title { font-family: var(--body); font-size: 17px; font-weight: 400; color: var(--slate); }
  .lever-tab:hover .title { color: var(--navy); }
  .lever-tab[aria-expanded="true"] { border-bottom-color: var(--terracotta); }
  .lever-tab[aria-expanded="true"] .title { color: var(--navy); font-weight: 700; }
  .lever-panel { grid-row: 2; grid-column: 1 / -1; border-bottom: 0; padding: 72px 0 0; display: grid; grid-template-columns: 5fr 6fr; gap: 0 72px; align-items: start; }
  .lever-panel[hidden] { display: none; }
  .lever-panel h2 { display: block; font-size: 44px; line-height: 1.08; margin-bottom: 20px; }
  .lever-panel .intro { grid-column: 1; }
  .lever-panel ul { grid-column: 2; margin: 6px 0 0; }
  .lever-panel .evidence { grid-column: 1 / -1; border-top: 0.5px solid var(--stone); margin-top: 56px; padding-top: 44px; }
}

/* About */
.bio { display: grid; gap: 44px; }
@media (min-width: 900px) { .bio { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.bio img { width: 100%; }
@media (max-width: 899px) { .bio img { max-width: 360px; } }
.bio p { font-size: 20px; line-height: 1.6; }

/* Contact */
.big-email { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 54px); color: var(--terracotta); }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; margin-top: 40px; color: var(--slate); font-size: 18px; }

/* Updates */
.update { border-top: 0.5px solid var(--stone); padding: 48px 0 8px; }
.update:first-child { border-top: 0; padding-top: 0; }
.update time { color: var(--slate); font-size: 16px; display: block; margin-bottom: 10px; }
.update h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin-bottom: 20px; }
.update ul { padding-left: 20px; margin: 0 0 18px; }
.update li { margin-bottom: 8px; }
.update .fine { color: var(--slate); font-size: 16px; }

/* Footer */
.site-footer { background: var(--sand); color: var(--slate); font-size: 14px; padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.site-footer .logo .ps-mark { font-size: 18px; }
.site-footer .logo .name { font-size: 16px; }
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--slate); }
.site-footer .tagline { font-family: var(--display); font-style: italic; width: 100%; margin: 0; }

/* Contact form */
.big-link { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); }
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field span { font-size: 16px; color: var(--slate); }
.field input, .field textarea {
  font: inherit; font-size: 18px; color: var(--navy); background: var(--white);
  border: 1px solid var(--stone); border-radius: 0; padding: 13px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { color: var(--slate); font-size: 15px; margin: -6px 0 0; }
.send { justify-self: start; font: inherit; font-weight: 700; font-size: 18px; color: var(--white); background: var(--terracotta); border: 0; border-radius: 0; padding: 14px 30px; cursor: pointer; }
.send:hover { background: #9c4a32; }
.send:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-size: 17px; min-height: 1.5em; }
.form-status.ok { color: var(--navy); font-weight: 700; }
.form-status.error { color: var(--terracotta); }

html { scroll-padding-top: 90px; }
