/* ScreenITology 2026 identity: Midnight Navy, Signal gradient (mint to cyan), Inter. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --midnight: #061A35;
  --deep: #092746;
  --raised: #0E3158;
  --mint: #00DFA3;
  --cyan: #00BFF3;
  --ice: #F7FBFE;
  --mist: #E4EEF5;
  --slate: #627E96;      /* decorative only: fails AA as small text */
  --slate-text: #56708A; /* Slate darkened to pass AA on Ice and White (4.95:1) */
  --ink: #061A35;
  --on-dark: #C9D8E5;
  --white: #FFFFFF;
  --signal: linear-gradient(90deg, var(--mint), var(--cyan));
  --font: "Inter", Arial, Helvetica, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ice); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); font-optical-sizing: auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--deep); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20ch; }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--mint); color: var(--midnight); padding: 0.75rem 1rem; z-index: 10; font-weight: 600; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header (sits on the dark hero) */
.top { background: var(--midnight); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem var(--pad); flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.top nav { display: flex; gap: 1.6rem; align-items: center; font-weight: 600; font-size: 0.95rem; }
.top nav a { color: var(--on-dark); text-decoration: none; }
.top nav a:hover { color: var(--white); }
.top nav .nav-cta { color: var(--midnight); background: var(--mint); padding: 0.55rem 1rem; border-radius: 999px; }
.top nav .nav-cta:hover { background: var(--white); color: var(--midnight); }
@media (max-width: 640px) { .top nav a:not(.nav-cta) { display: none; } .brand img { height: 28px; } }

/* Hero */
.hero { background: var(--midnight) url("/img/hex-tile.svg") repeat; background-size: 92px 80px; color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--signal); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 78% 45%, rgba(0, 191, 243, 0.16), transparent 70%), linear-gradient(180deg, rgba(6, 26, 53, 0.55), rgba(6, 26, 53, 0.92)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) var(--pad) clamp(3.5rem, 9vw, 7.5rem); display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 7fr 4fr; } }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--mint); margin: 0 0 1.4rem; }
.eyebrow span { color: var(--on-dark); padding: 0 0.25em; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.6rem); line-height: 1; letter-spacing: -0.04em; max-width: 12ch; }
.hero h1 em { font-style: normal; background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--on-dark); max-width: 36ch; margin: 1.6rem 0 2.2rem; }
.lede strong { color: var(--white); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin: 0; }
.btn, .btn-ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0.8rem 1.5rem; border-radius: 999px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.btn { background: var(--mint); color: var(--midnight); border: 0; }
.btn:hover { background: var(--white); transform: translateY(-1px); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { color: var(--white); border: 1.5px solid rgba(201, 216, 229, 0.45); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.hero-mark { justify-self: center; position: relative; }
.hero-mark img { width: clamp(150px, 22vw, 260px); filter: drop-shadow(0 24px 60px rgba(0, 191, 243, 0.28)); }
@media (max-width: 899px) { .hero-mark { display: none; } }

/* Sections */
section { scroll-margin-top: 1rem; }
.section-head { max-width: var(--max); margin: 0 auto 2.8rem; }
.kicker { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--deep); margin: 0 0 1rem; display: flex; gap: 0.75rem; align-items: center; }
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--signal); }
.kicker span { color: var(--slate-text); }
.intro { max-width: 50ch; font-size: 1.15rem; color: #2C4560; margin: 1.2rem 0 0; }

/* The four pillars (PSST) */
.pillars { padding: clamp(4rem, 8vw, 6.5rem) var(--pad); }
.cards { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 0 1.5rem 1.7rem; overflow: hidden; box-shadow: 0 1px 2px rgba(6, 26, 53, 0.04), 0 12px 32px -18px rgba(6, 26, 53, 0.18); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(6, 26, 53, 0.05), 0 22px 40px -20px rgba(6, 26, 53, 0.28); }
.badge { display: grid; place-items: center; width: 52px; height: 58px; margin: -29px 0 1rem; position: relative; font-weight: 800; font-size: 1.35rem; color: var(--midnight); background: var(--signal); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.card p { margin: 0.6rem 0 0; color: #2C4560; }
.ask { font-size: 0.95rem; color: var(--slate-text) !important; border-top: 1px solid var(--mist); padding-top: 0.8rem; margin-top: 1rem !important; }
.psst { max-width: var(--max); margin: 3.5rem auto 0; background: var(--midnight); color: var(--white); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.35; padding: 1.6rem 2rem; border-radius: var(--radius); border-left: 6px solid var(--mint); }
.psst span { color: var(--mint); font-weight: 800; }

/* How we work */
.how { padding: clamp(4rem, 8vw, 6.5rem) var(--pad); background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 1.4rem; border-top: 3px solid var(--mist); }
.steps li::before { content: ""; position: absolute; top: -3px; left: 0; width: 56px; height: 3px; background: var(--signal); }
.steps h3::before { content: "0" counter(step) "  "; color: var(--slate-text); font-weight: 600; white-space: pre; }
.steps p { margin: 0.6rem 0 0; color: #2C4560; }

/* Why */
.why { background: var(--midnight) url("/img/wave.svg") center bottom / 100% auto no-repeat; color: var(--white); padding: clamp(4.5rem, 9vw, 7rem) var(--pad) clamp(9rem, 24vw, 19rem); }
@media (max-width: 700px) { .why { background-size: 220% auto; background-position: 30% bottom; } }
.why-text { max-width: 44rem; margin: 0 auto 0 max(0px, calc((100% - var(--max)) / 2)); }
.why .kicker { color: var(--mint); }
.why .kicker span { color: var(--on-dark); }
.why-text p { font-size: 1.15rem; color: var(--on-dark); margin: 1.2rem 0 0; max-width: 52ch; }

/* Contact */
.contact { padding: clamp(4rem, 8vw, 6.5rem) var(--pad); display: grid; gap: 3rem; grid-template-columns: 1fr; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 6fr; } }
.contact-text p:not(.kicker) { font-size: 1.15rem; color: #2C4560; max-width: 36ch; margin-top: 1.2rem; }
.form { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 24px 48px -28px rgba(6, 26, 53, 0.3); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.opt { font-weight: 400; color: var(--slate-text); }
input[type="text"], input[type="email"], textarea, select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ice); border: 1.5px solid #C9D6E2; border-radius: 10px; padding: 0.7rem 0.85rem; min-height: 48px; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); outline: 3px solid rgba(0, 191, 243, 0.35); outline-offset: 1px; }
textarea { resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; margin: 0.4rem 0 1.3rem; color: #2C4560; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--deep); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.human:not(:empty) { margin-bottom: 1.2rem; }
.form .btn { background: var(--midnight); color: var(--white); }
.form .btn:hover { background: var(--deep); }
.status { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.status.ok { color: #00795A; }
.status.err { color: #B4232C; }

/* Family */
.family { background: var(--deep); color: var(--white); padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.family .section-head { padding: 0 var(--pad); margin-bottom: 2rem; }
.family .kicker { color: var(--mint); }
.family .kicker span { color: var(--on-dark); }
.ribbon { overflow: hidden; border-top: 1px solid rgba(201, 216, 229, 0.16); border-bottom: 1px solid rgba(201, 216, 229, 0.16); }
.ribbon-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: ribbon 42s linear infinite; }
.ribbon:hover .ribbon-track, .ribbon:focus .ribbon-track, .ribbon:focus-within .ribbon-track { animation-play-state: paused; }
.ribbon li { display: flex; flex-direction: column; justify-content: center; padding: 1.4rem 2.6rem; border-right: 1px solid rgba(201, 216, 229, 0.16); min-width: 19rem; }
.ribbon strong { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.ribbon span { font-size: 0.92rem; color: var(--on-dark); }
.ribbon a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ribbon a:hover strong { color: var(--mint); }
.ribbon a strong::after { content: " \2197"; font-size: 0.8em; color: var(--mint); }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Footer */
.foot { background: var(--midnight); color: var(--on-dark); padding: 3rem var(--pad); text-align: center; font-size: 0.95rem; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--signal); }
.foot p { margin: 0.35rem 0; }
.foot a { color: var(--white); }
.foot-brand { display: flex; justify-content: center; margin-bottom: 0.8rem !important; }
.foot-brand img { height: 30px; width: auto; }
.small { font-size: 0.82rem; color: var(--on-dark); opacity: 0.85; }

/* Text pages (privacy, 404) */
.page { max-width: 44rem; margin: 0 auto; padding: 3rem var(--pad) 6rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.4rem; letter-spacing: -0.035em; }
.page h2 { font-size: 1.4rem; margin: 2.4rem 0 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; flex-wrap: wrap; width: auto; }
  .ribbon li[aria-hidden="true"] { display: none; }
  .btn, .card { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Photography */
.card-photo { width: calc(100% + 3rem); max-width: none; margin: 0 -1.5rem; aspect-ratio: 4 / 3; object-fit: cover; }
.how-photo { max-width: var(--max); margin: 0 auto 3rem; }
.how-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; border-radius: var(--radius); }
.why { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
.why-text { margin: 0; justify-self: end; }
.why-photo { margin: 0; }
.why-photo img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% center; }
@media (min-width: 960px) { .why { grid-template-columns: 1fr 1fr; } .why-photo { max-width: 36rem; } }
