/*!
 * PrivacySafe Foundation, Inc. -- privacysafe.foundation
 * Copyright (C) 2026 PrivacySafe Foundation, Inc.
 * SPDX-License-Identifier: CC-BY-SA-4.0
 *
 * Palette sampled directly from the "Support our mission" donation graphic
 * and the live Zeffy membership page, then adjusted for WCAG 2.1 AA.
 *
 * Measured contrast (sRGB) against the four surface levels:
 *
 *   foreground        on #001235  #002753  #003566  #04294B   verdict
 *   --text  #FFFFFF       18.45    14.84    12.34    14.75    AA
 *   --mist  #D6EEF0       15.24    12.26    10.20    12.18    AA
 *   --body  #BBD6E8       12.21     9.82     8.17     9.76    AA
 *   --quiet #8FB3CC        8.34     6.70     5.58     6.66    AA
 *   --green #4FD1A5        9.66     7.77     6.46     7.72    AA
 *   --teal  #5CC8C6        9.26     7.44     6.19     7.40    AA
 *   --blue  #63B3E8        8.04     6.46     5.38     6.42    AA
 *   --orange#FF7A45        7.14     5.74     4.77     5.70    AA
 *
 * The raw brand values sampled from the artwork are kept as -graphic tokens
 * and used ONLY for fills, gradients and decorative strokes, because as text
 * they do not reach 4.5:1:
 *
 *   #20AA8A green 4.22 | #38A4A2 teal 4.12 | #F64418 orange 3.39
 *   #2077B6 blue 2.57 -- below 3.0, so not even valid for a border or focus
 *                        ring on the deep surface. Never use it for those.
 *
 * Note the donation page sets white text on its green pill, which measures
 * 2.93:1. That is a failure and is deliberately NOT reproduced here; the
 * primary button uses a dark label on green at 9.66:1 instead.
 */

:root {
  /* surfaces, darkest to lightest */
  --ink: #001235;
  --navy: #002753;
  --deep: #003566;
  --card: #04294B;
  --card-2: #063560;

  /* text */
  --text: #FFFFFF;
  --mist: #D6EEF0;
  --body: #BBD6E8;
  --quiet: #8FB3CC;

  /* accents, AA-safe as text */
  --green: #4FD1A5;
  --teal: #5CC8C6;
  --blue: #63B3E8;
  --orange: #FF7A45;

  /* raw sampled brand values -- fills and strokes only, never text */
  --graphic-green: #20AA8A;
  --graphic-teal: #38A4A2;
  --graphic-blue: #2077B6;
  --graphic-orange: #F64418;
  --graphic-orange-2: #FF6428;

  --line: rgba(214, 238, 240, .14);
  --line-strong: rgba(214, 238, 240, .26);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 18px 70px rgba(0, 6, 20, .42);
  --max: 1440px;

  color-scheme: dark;
  --font: "Inter", "Liberation Sans", "Helvetica Neue", Helvetica, Arial,
    "DejaVu Sans", Roboto, "Segoe UI", system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --mono: "JetBrains Mono", "DejaVu Sans Mono", "Liberation Mono", Menlo,
    Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keeps anchored sections clear of the sticky header */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background:
    radial-gradient(circle at 14% 6%, rgba(32, 119, 182, .22), transparent 30rem),
    radial-gradient(circle at 86% 12%, rgba(56, 164, 162, .18), transparent 32rem),
    radial-gradient(circle at 50% 78%, rgba(32, 170, 138, .12), transparent 36rem),
    var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
button { font: inherit; }
img, video { max-width: 100%; }

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

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.14;
  font-kerning: normal;
}

h1 { letter-spacing: -.03em; }


h4 { font-size: 17px; }

p { line-height: 1.62; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- WCAG 2.4.1 Bypass Blocks ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- WCAG 2.4.7 focus, 2.3.3 motion ---------- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.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;
}

/* ---------- header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(0, 18, 53, .92), rgba(0, 18, 53, .66));
  border-bottom: 1px solid rgba(214, 238, 240, .07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0, 39, 83, .72);
  box-shadow: 0 8px 34px rgba(0, 6, 20, .3);
}

/*
 * The horizontal lock-up carries the whole name, so no text sibling is needed.
 * Sized as privacysafe.app sizes its wordmark, scaled for the longer word:
 * "PRIVACYSAFE FOUNDATION" is 4.64:1 against the app wordmark's 5.81:1, so it
 * needs a little less width for the same cap height.
 */
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.brand-logo {
  display: block;
  width: clamp(196px, 17vw, 262px);
  height: auto;
}

.navlinks { display: flex; gap: 4px; align-items: center; }
/*
 * 14px, exactly as privacysafe.app. This was 16px while the bar held eight
 * items, because at 14px that many links read as fine print. With three items
 * that reason is gone, so the divergence goes with it -- both sites now have
 * three nav links at the same size.
 */
.navlinks a {
  color: var(--body);
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 14px;
  transition: background .16s ease, color .16s ease;
}
.navlinks a:hover { color: var(--text); background: rgba(214, 238, 240, .09); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--green);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-align: center;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(79, 209, 165, .14);
  box-shadow: 0 10px 26px rgba(32, 170, 138, .18);
}

/*
 * 1.4.3: dark label on the green fill measures 9.66:1. The donation page's
 * white-on-green is 2.93:1 and is not reproduced.
 */
.btn.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--ink);
}
.btn.primary:hover { background: #6FDDB6; box-shadow: 0 12px 30px rgba(32, 170, 138, .28); }

.btn.ghost { border-color: var(--line-strong); color: var(--body); }
.btn.ghost:hover { background: rgba(214, 238, 240, .08); border-color: var(--blue); }

.btn.small { min-height: 40px; padding: 0 16px; font-size: 16px; }

/* icon-only control: geometry restated so a later generic .btn padding
   cannot collapse the content box to zero width */

/*
 * Icons inside a normal button had no size rule, so they collapsed to 0x0 and
 * rendered as nothing -- the same failure mode as an icon-only control whose
 * padding eats the content box. Size them here so any .btn can carry a glyph.
 */
.btn .ico { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: 68px 0 46px; }

.hero-copy { max-width: 74ch; }

/*
 * Two equal media panels below the hero copy: the PrivacySafe Bot demo and the
 * Support our mission board. Equal columns so neither reads as the subordinate
 * of the other, and `align-items: start` so a shorter panel does not stretch.
 */
.hero-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
  align-items: start;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(32, 119, 182, .16), rgba(4, 41, 75, .9));
  box-shadow: var(--shadow);
}

.panel-title {
  margin: 2px 2px 14px;
  font-size: 22px!important;
  line-height: 1.2 !important;
  letter-spacing: -.01em !important;
  color: var(--text);
}

.panel video,
.panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(214, 238, 240, .12);
}

.panel .media-caption { margin: 12px 2px 0; }
.panel .panel-actions { margin: 16px 2px 2px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(79, 209, 165, .34);
  border-radius: var(--radius-pill);
  background: rgba(32, 170, 138, .13);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--graphic-green);
  box-shadow: 0 0 0 5px rgba(32, 170, 138, .16);
}

.hero h1 { margin: 22px 0 16px; max-width: 18ch; }
.accent { color: var(--orange); }
.accent-green { color: var(--green); }

.lead {
  color: var(--mist);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
  max-width: 60ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(4, 41, 75, .7);
  color: var(--body);
  font-size: 13px;
}
.badge .ico { width: 15px; height: 15px; color: var(--green); }
.badge b { color: var(--text); }

.media-caption {
  margin: 12px 2px 0;
  color: var(--quiet);
  font-size: 16px;
  line-height: 1.5;
}
.media-caption b { color: var(--green); }

/* ---------- generic section ---------- */
.section { padding: 44px 0; }
/*
 * Section intros previously capped at 76ch, which on a 1440px container reads as
 * a narrow column against a lot of empty space. Widened, but not to the full
 * container: past about 100 characters a line gets hard to track back from, so
 * the cap stays, just a generous one.
 */
.section-head { max-width: 104ch; margin-bottom: 26px; }
.section-head h2 { margin-bottom: 10px; }
.kicker { color: var(--body); font-size: 17px; margin-bottom: 0; }

.band { background: linear-gradient(180deg, rgba(0, 39, 83, .0), rgba(0, 39, 83, .55) 18%, rgba(0, 39, 83, .0)); }







.tax-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--graphic-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0, 39, 83, .6);
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
.tax-note b { color: var(--text); }
.tax-note .ein { font-family: var(--mono); color: var(--mist); }

/* ---------- media rows ---------- */
/*
 * The photographs were running the full height of the row and dwarfing the
 * copy beside them. The image column is narrower now and the picture is capped
 * in height, so the two sides carry comparable weight.
 */
.media-row {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 22px 0;
}
.media-row.flip > figure { order: 2; }
.media-row figure { margin: 0; }
.media-row img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.media-row figcaption {
  margin-top: 10px;
  color: var(--quiet);
  font-size: 16px;
  line-height: 1.5;
}
.media-row h2 { margin-bottom: 12px; }
.media-row p { color: var(--body); }

/* ---------- program cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(4, 41, 75, .7);
  box-shadow: 0 14px 42px rgba(0, 6, 20, .24);
}
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; color: var(--body); font-size: 16px; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(79, 209, 165, .3);
  border-radius: 14px;
  background: rgba(32, 170, 138, .12);
  color: var(--green);
}
.card-icon .ico { width: 24px; height: 24px; }

/* ---------- standards strip ---------- */
.standards-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.standard-logo {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 41, 75, .7);
}
/*
 * Mixed aspect ratios: the compliance wordmarks are 500x86 (5.81:1), the
 * 3NWeb mark is 96x59 (1.63:1). Cap height, let width follow, so nothing is
 * enlarged past its native size and every logo lands on one optical weight.
 */
.standard-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}
.standard-logo--tall img { max-height: 48px; }
.standard-logo:hover { border-color: rgba(79, 209, 165, .5); background: rgba(32, 170, 138, .08); }

/* ---------- people ---------- */
/*
 * The portraits are 570x447 RGBA cutouts: the subject already sits on its own
 * shaped gradient with transparent corners and a flat bottom edge. So there is
 * no card here at all -- no border, background, or padding. Boxing a cutout
 * just draws a rectangle around artwork that was made to float, and the two
 * competing shapes read as a mistake. The figures stand on the section
 * background and the name sits beneath, separated by a short accent rule.
 */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px clamp(20px, 5vw, 72px);
  margin: 8px 0 44px;
  justify-items: center;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
}

.person img {
  display: block;
  width: 100%;
  height: auto;
  /* lifts the cutout off a dark background without drawing an edge */
  filter: drop-shadow(0 18px 34px rgba(0, 6, 20, .55));
}

/* short gradient rule doing the job the card border used to */
.person h3 {
  position: relative;
  margin: 20px 0 0;
  padding-top: 18px;
}
.person h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 54px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--graphic-blue), var(--graphic-green));
}

.person .role {
  display: block;
  margin-top: 7px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
.person .role b {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ---------- contact ---------- */

/* ---------- footer ---------- */
footer { padding: 46px 0 52px; color: var(--body); }
.footer-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.footer-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(32, 170, 138, .09), transparent 46%), rgba(4, 41, 75, .7);
}
.footer-panel h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 12px; }
.footer-panel p { color: var(--body); }
.footer-logo { display: block; width: min(310px, 100%); height: auto; margin-bottom: 18px; }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(79, 209, 165, .55);
  border-radius: var(--radius-pill);
  color: var(--text);
  transition: transform .16s ease, background .16s ease;
}
.social-link:hover { transform: translateY(-1px); background: rgba(32, 170, 138, .16); }
.social-link .ico { width: 20px; height: 20px; }

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 28px;
}
.fine { max-width: 78ch; font-size: 16px; line-height: 1.62; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-content: start; }
.footer-links a { color: var(--body); padding: 8px 10px; border-radius: 10px; }
.footer-links a:hover { color: var(--text); background: rgba(214, 238, 240, .08); }

/*
 * 1.4.1 Use of Colour: in-prose links sit well above 4.5:1 against the page
 * but under 3:1 against surrounding body text, so colour alone is not a
 * sufficient cue inside running text. Chrome links are left clean.
 */
p a:not(.btn), .fine a:not(.btn), .tax-note a:not(.btn), li a:not(.btn) {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
p a:not(.btn):hover, .fine a:not(.btn):hover { text-decoration-style: solid; }

/* ---------- icons: inline SVG ----------
 * The icons are inlined into index.html by tools/icons.py, reading img/*.svg.
 *
 * They were previously applied as CSS masks, which is a neater separation but
 * depends on the browser fetching the SVG. A file:// document is an opaque
 * origin, so that fetch is refused and the icon silently renders as nothing --
 * which is exactly what happens when you open the page from disk rather than
 * over http. Inline SVG has no fetch and inherits currentColor from the
 * cascade, so it works either way.
 *
 * No background-color here: on an inline <svg> that would paint a solid block
 * behind the glyph. Colour comes from currentColor in the paths themselves,
 * which is why .card-icon, .badge and .social-link:hover still control it.
 */
.ico {
  display: block;
  flex: 0 0 auto;
  /* guard against a stray width/height attribute on the root svg */
  max-width: 100%;
  max-height: 100%;
}


/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .navlinks { display: none; }
  .media-row, .footer-panels, .footer-inner { grid-template-columns: 1fr; }
  .media-row.flip > figure { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .nav { border-radius: 18px; }
  /*
   * The lock-up is one image containing both words, so FOUNDATION can no longer
   * be dropped at narrow widths -- the failure mode that made the header read
   * "PrivacySafe" is gone by construction.
   */
  .brand-logo { width: min(200px, 54vw); }
  .nav-actions .btn.ghost { display: none; }   /* keep the Donate CTA visible */
  .hero { padding-top: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 34px 0; }
  .grid-3, .people { grid-template-columns: 1fr; }
  .person { max-width: 330px; }
  .standards-strip { grid-template-columns: 1fr; }
}

/* ===== Canonical type scale — identical across 3NWeb / PrivacySafe /
 * PrivacySafe Foundation / Ivy Cyber. Kept byte-for-byte in step with
 * privacysafe.app so headings match in weight and rhythm across properties,
 * even though the palettes differ. ===== */
h1 { font-size: clamp(2.25rem, 4.9vw, 4.1rem) !important; line-height: 1.18 !important; letter-spacing: -0.02em !important; font-weight: 700 !important; font-kerning: normal; }
h2 { font-size: clamp(2rem, 4.4vw, 3.8rem) !important; line-height: 1.18 !important; letter-spacing: -0.012em !important; font-weight: 700 !important; font-kerning: normal; }
h3 { font-size: 1.35rem !important; line-height: 1.18 !important; letter-spacing: 0 !important; font-weight: 700 !important; font-kerning: normal; }

/* Panel and card headings opt out of the canonical scale, exactly as they do
   on privacysafe.app, so a footer heading does not render at hero size. */
.footer-panel h2 { font-size: clamp(1.7rem, 3vw, 2.35rem) !important; line-height: 1.12 !important; }


/* Standards strip reflow, matching the app's breakpoints. */
@media (max-width: 900px) {
  .standards-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .standards-strip { grid-template-columns: 1fr; }
}

/* ===== Ways to give ===== */
/* Full-width now that the graphic has moved to the hero: four across on a wide
   screen, folding to two then one. */
.methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.method {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 41, 75, .68);
  transition: border-color .16s ease, background .16s ease;
}
.method:hover { border-color: rgba(79, 209, 165, .5); background: rgba(6, 53, 96, .8); }

/* the mail-a-check card carries more detail, so it spans the row */

.method-head { display: flex; align-items: center; gap: 11px; }
.method-head h3 { margin: 0; }
.method-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 209, 165, .3);
  border-radius: 12px;
  background: rgba(32, 170, 138, .12);
  color: var(--green);
}
.method-icon .ico { width: 21px; height: 21px; }

.method p { margin: 0; color: var(--body); font-size: 16px; }
.method .note { color: var(--quiet); font-size: 16px; }
.method .actions { margin-top: auto; padding-top: 4px; }
.method dl { margin: 0; font-size: 16px; }
.method dt {
  margin-top: 10px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.method dd { margin: 3px 0 0; color: var(--body); }
.method address { font-style: normal; color: var(--body); line-height: 1.55; }


@media (max-width: 760px) {
  .hero-duo, .methods { grid-template-columns: 1fr; }
}

/* the closing box now carries several paragraphs, including the corporate-giving note */
.tax-note p { margin: 0 0 10px; }
.tax-note p:last-child { margin-bottom: 0; }
.tax-note .note { color: var(--quiet); font-size: 16px; }

/* contact details inside the About card */
.contact-list { margin: 14px 0 0; font-size: 16px; }
.contact-list dt {
  margin-top: 12px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-list dd { margin: 3px 0 0; color: var(--body); }
.contact-list address { font-style: normal; line-height: 1.55; }

/* ===== Per-person contact details ===== */
.person-contact {
  margin: 20px 0 0;
  font-size: 16px;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  text-align: left;
}
.person-contact dt {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding-top: 3px;
  white-space: nowrap;
}
.person-contact dd { margin: 0; color: var(--body); min-width: 0; overflow-wrap: anywhere; }

/* fingerprints are read character by character, so they get a mono face and a
   tighter leading than body copy */
.fpr {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--mist);
  background: rgba(0, 18, 53, .55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
}

/* ===== Full-width stacked info rows ===== */
.stack { display: grid; gap: 16px; }

.card.row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: start;
}
.card.row .card-icon { margin-bottom: 0; grid-row: span 2; }
.card.row h3 { margin: 8px 0 0; align-self: center; }
.card.row > :not(.card-icon):not(h3) { grid-column: 2; }

/* the contact row splits its detail list into columns when there is room */
/*
 * A <dl> laid out as a grid puts every dt and dd in its own cell, so the pairs
 * scatter -- a term lands in one column and its value in the next. Each pair is
 * wrapped in a div now, and the grid tracks those wrappers instead.
 */
#contact .contact-list {
  font-size: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 26px;
  align-items: start;
}
#contact .contact-list > div { min-width: 0; }
#contact .contact-list dt { margin-top: 0; }

@media (max-width: 760px) {
  .card.row { grid-template-columns: 1fr; }
  .card.row .card-icon { grid-row: auto; }
  .card.row > :not(.card-icon):not(h3) { grid-column: 1; }
  .person-contact { grid-template-columns: 1fr; gap: 2px; }
  .person-contact dt { margin-top: 10px; }
}

/* the two divergent calls to action in the "who sells it" row */
.split-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.partner-logo img { display: block; height: 30px; width: auto; }

@media (max-width: 520px) {
  .split-actions .btn { width: 100%; }
}


/* ===== Project cards =====
 * Structure borrowed from the profdiggity site directory: the whole card is one
 * link, a fixed-ratio thumbnail sits above a padded body, and the image is held
 * back slightly so the text over it stays comfortable, brightening on hover.
 * Recoloured for the Foundation palette.
 */
.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}


.site-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(32, 119, 182, .10), rgba(214, 238, 240, .015)), rgba(4, 41, 75, .7);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.site-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 209, 165, .4);
  background: linear-gradient(180deg, rgba(32, 170, 138, .09), rgba(214, 238, 240, .018)), rgba(6, 53, 96, .78);
}

/* one link per card, so the card has a single accessible name */
.site-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/*
 * A fixed height rather than aspect-ratio. The sources are 800px wide at ratios
 * from 1.12 to 1.37; a ratio box would make the thumbnail roughly 400px tall in
 * a two-column grid, which swamps the card. A flat 210px keeps the screenshot
 * as a recognisable strip and the text as the substance, and it does not depend
 * on aspect-ratio being honoured. The absolute positioning means the image
 * cannot push the box open even if object-fit is ignored.
 */
.site-thumb {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* top-anchored: the identifying part of a UI screenshot is its header */
  object-fit: cover;
  object-position: top center;
  filter: saturate(.9) brightness(.82);
  transition: transform .25s ease, filter .25s ease;
}
.site-card:hover .site-thumb img { transform: scale(1.02); filter: saturate(1) brightness(.96); }
.site-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 12, 32, .34));
  pointer-events: none;
}

.site-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.site-body h3 { margin: 0 0 8px; color: var(--text); }

.site-url {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.35;
  color: var(--teal);
  overflow-wrap: anywhere;
}

.site-description { display: block; color: var(--body); font-size: 17px; line-height: 1.55; }

.site-kicker {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.site-kicker::after { content: " \2197"; color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .site-card:hover { transform: none; }
  .site-card:hover .site-thumb img { transform: none; }
}

/* ===== Project card responsive rules =====
 * These live at the end deliberately. A media query does not raise specificity,
 * so a same-specificity declaration later in the file beats it regardless of
 * viewport. Any responsive override for .site-* has to come after the base
 * rules above, not with the other breakpoints further up.
 */
@media (max-width: 1060px) {
  .site-thumb { height: 190px; }
}
@media (max-width: 760px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-thumb { height: 180px; }
}

/* ===== Bits On Tape callout ===== */
.newsletter-row .newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px;
}
.newsletter-row .newsletter-note {
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
}

@media (max-width: 520px) {
  .newsletter-row .newsletter-actions .btn { width: 100%; }
}
