/* Trooster Projects — site styles
   Layout: the brand deck on screen. Cream ground, four-column grid with thin rules,
   section label top left, title below, coral statement top right. Night bands for numbers and calls to action. */
/* Self-hosted brand fonts (no Google Fonts calls: better for privacy and speed) */
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --night: #1F1C29;
  --cream: #F3EFE8;
  --paper: #FBFAF7;
  --coral: #FF7759;
  --coral-deep: #E5583A;
  --ink: #2F2B3D;
  --line: #DDD7CD;
  --muted: #6B6577;
  --line-dark: #3A3646;

  --display: "Big Shoulders Display", "Arial Narrow", Arial, sans-serif;
  --text: "Hanken Grotesk", Arial, Helvetica, sans-serif;

  --wrap: 1280px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --pad-x: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---------- Shared building blocks ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: calc(var(--gutter) + var(--pad-x) - 16px);
  padding-right: calc(var(--gutter-r) + var(--pad-x) - 16px);
}
.section { padding-block: clamp(56px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }

.label {
  font-family: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0;
}
.label--muted { color: var(--muted); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
  color: var(--night);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(52px, 9vw, 120px); }
h2 { font-size: clamp(40px, 6vw, 80px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1; }

.statement {
  font-family: var(--text);
  font-weight: 700;
  color: var(--coral-deep);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}
.lede { font-size: clamp(19px, 1.6vw, 22px); max-width: 38em; }
.prose { max-width: 36em; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.small { font-size: 15px; line-height: 1.5; }
.muted { color: var(--muted); }

/* Section head: label + title left, coral statement right */
.head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.head__left { grid-column: 1 / span 2; display: grid; gap: 18px; align-content: start; }
.head__right { grid-column: 3 / span 2; align-self: start; text-align: right; }
@media (max-width: 760px) {
  .head { grid-template-columns: minmax(0, 1fr); }
  .head__left, .head__right { grid-column: 1; text-align: left; }
}

/* Four-column ruled grid, like the deck */
.cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.cols > * { padding: 24px 24px 8px 0; min-width: 0; }
.cols > * + * { padding-left: 24px; border-left: 1px solid var(--line); }
.cols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .cols, .cols--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols > * { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .cols > *:nth-child(even) { padding-left: 24px !important; border-left: 1px solid var(--line) !important; }
}
@media (max-width: 560px) {
  .cols, .cols--5 { grid-template-columns: minmax(0, 1fr); }
  .cols > *:nth-child(even) { padding-left: 0 !important; border-left: 0 !important; }
}
.cols h3 { margin: 8px 0 12px; overflow-wrap: break-word; }
.cols--5 h3 { font-size: clamp(24px, 2.1vw, 30px); }
.cols p { margin: 0; font-size: 16px; line-height: 1.55; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--text); font-weight: 700; font-size: 16px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--night);
  background: var(--night); color: var(--cream);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--coral); border-color: var(--coral); color: var(--night); }
.btn--ghost { background: transparent; color: var(--night); }
.btn--ghost:hover { background: var(--night); border-color: var(--night); color: var(--cream); }
.btn .slash { width: 18px; height: 7px; background: var(--coral); clip-path: polygon(17% 0, 100% 0, 83% 100%, 0 100%); }
.btn:hover .slash { background: var(--night); }

.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.link-arrow:hover { color: var(--coral-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; font-size: 16px; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--coral); }
.nav .nav__cta { padding: 9px 18px; border-radius: 999px; background: var(--night); color: var(--cream); border: 0; }
.nav .nav__cta:hover { background: var(--coral); color: var(--night); }
.nav .nav__cta[aria-current="page"] { background: var(--coral); color: var(--night); }
@media (max-width: 640px) {
  .brand img { height: 38px; }
  .nav { width: 100%; justify-content: space-between; gap: 4px 12px; }
  .nav a { font-size: 15px; }
  .nav .nav__cta { padding: 7px 14px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: end;
}
.hero__text { min-width: 0; grid-column: 1 / span 2; display: grid; gap: 28px; padding-bottom: clamp(40px, 6vw, 80px); }
.hero__title { font-size: clamp(56px, 8.4vw, 124px); }
.hero__title .accent { color: var(--coral); }
.hero__media { grid-column: 3 / span 2; position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 30%; border-radius: 0 28px 0 0; }
.hero__slash {
  position: absolute; left: -26%; bottom: 0; width: 70%; height: 58%;
  background: var(--coral);
  clip-path: polygon(0 100%, 58% 100%, 100% 0, 42% 0);
  z-index: -1;
}
.hero__statement { grid-column: 3 / span 2; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text, .hero__media { grid-column: 1; }
  .hero__text { padding-bottom: 0; }
  .hero__slash { display: none; }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-hero .head { margin-bottom: 0; }

/* ---------- Night band ---------- */
.band { background: var(--night); color: var(--cream); }
.band h1, .band h2, .band h3, .band .display { color: var(--cream); }
.band .statement, .band .label { color: var(--coral); }
.band .cols { border-top-color: var(--line-dark); }
.band .cols > * + * { border-left-color: var(--line-dark); }
@media (max-width: 1000px) { .band .cols > * { border-bottom-color: var(--line-dark); } .band .cols > *:nth-child(even) { border-left-color: var(--line-dark) !important; } }
.band .btn { background: var(--coral); border-color: var(--coral); color: var(--night); }
.band .btn:hover { background: var(--cream); border-color: var(--cream); }
.band .btn .slash { background: var(--night); }
.band .btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.band .btn--ghost:hover { background: var(--cream); color: var(--night); }
.band .muted { color: #B9B3C4; }

/* Numbers */
.num { font-family: var(--display); font-weight: 900; font-size: clamp(52px, 6vw, 88px); line-height: .9; color: var(--coral); font-variant-numeric: tabular-nums; }
.num + p { margin-top: 12px !important; }

/* Logos / worked with */
.worked { display: grid; grid-template-columns: 1fr 3fr; gap: 24px 32px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; }
.worked ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.worked li { font-weight: 700; }
.worked li:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--coral); }
.band .worked { border-top-color: var(--line-dark); }
@media (max-width: 760px) { .worked { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Project cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.card { text-decoration: none; display: grid; gap: 14px; min-width: 0; align-content: start; }
.card__img { overflow: hidden; aspect-ratio: 3 / 2; position: relative; min-height: 0; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.card h3 { transition: color .15s; }
.card:hover h3 { color: var(--coral-deep); }
.card p { margin: 0; font-size: 16px; }
@media (max-width: 680px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Work page ---------- */
.theme-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.theme-nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 16px; border: 1px solid var(--night); border-radius: 999px; }
.theme-nav a:hover { background: var(--night); color: var(--cream); }

.project { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.project__text { grid-column: 1 / span 2; display: grid; gap: 18px; align-content: start; min-width: 0; }
.project__media { grid-column: 3 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; min-width: 0; }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__media .wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.project__media .sq { aspect-ratio: 1 / 1; }
.project__media .tall { aspect-ratio: 3 / 4; }
.project__role { font-weight: 700; color: var(--night); margin: 0; }
.project .facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.project .facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.project .facts li span:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.project .stat { display: flex; gap: 32px; flex-wrap: wrap; }
.project .stat div { display: grid; gap: 4px; }
.project .stat .num { font-size: clamp(48px, 5vw, 72px); }
.project .stat span { font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 14px; font-weight: 700; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.theme-title { padding-top: clamp(48px, 7vw, 88px); }
@media (max-width: 860px) {
  .project { grid-template-columns: minmax(0, 1fr); }
  .project__text, .project__media { grid-column: 1; }
}

/* ---------- Timeline (about) ---------- */
.timeline h3 { font-size: clamp(24px, 2.2vw, 30px); }
.timeline .when { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-deep); }
.timeline .now h3 { color: var(--coral-deep); }

.split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.split__a { grid-column: 1 / span 2; min-width: 0; }
.split__b { grid-column: 3 / span 2; min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split__a, .split__b { grid-column: 1; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 23px; width: 18px; height: 7px; background: var(--coral); clip-path: polygon(17% 0, 100% 0, 83% 100%, 0 100%); }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 32px; padding-block: 36px; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__no { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--coral); }
.service h3 { margin-bottom: 12px; }
.service p { margin: 0; }
.service ul { margin: 0; padding-left: 1.1em; font-size: 16px; }
.service ul li + li { margin-top: 6px; }
@media (max-width: 860px) { .service { grid-template-columns: 56px minmax(0, 1fr); } .service ul { grid-column: 2; } }

.tailor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: center; }
.tailor .display { grid-column: 1 / span 2; font-size: clamp(40px, 5.6vw, 76px); }
.tailor .prose { grid-column: 3 / span 2; }
@media (max-width: 860px) { .tailor { grid-template-columns: minmax(0, 1fr); } .tailor .display, .tailor .prose { grid-column: 1; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.contact-info { grid-column: 1 / span 1; display: grid; gap: 28px; min-width: 0; }
.contact-info .item { display: grid; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-info .item a, .contact-info .item span.val { font-weight: 700; font-size: 19px; text-decoration: none; overflow-wrap: anywhere; }
.contact-info .item a:hover { color: var(--coral-deep); }
.form-wrap { grid-column: 2 / span 3; background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 4vw, 48px); min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-info, .form-wrap { grid-column: 1; } }

form { display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; color: var(--night); }
.field .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #CFC8BC;
  border-radius: 6px;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--coral) 45%, transparent); outline-offset: 0; border-color: var(--coral-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid #CFC8BC; border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.chip input:checked + span { background: var(--night); color: var(--cream); border-color: var(--night); }
.chip input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--night); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: 6px; font-weight: 700; }
.form-status.ok { background: var(--night); color: var(--cream); }
.form-status.err { background: #FDE6E0; color: #8A2A14; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: end; }
.cta h2 { grid-column: 1 / span 2; font-size: clamp(56px, 8vw, 112px); }
.cta__side { grid-column: 3 / span 2; display: grid; gap: 24px; justify-items: end; text-align: right; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta h2, .cta__side { grid-column: 1; justify-items: start; text-align: left; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #CFC9D8; font-size: 15px; }
.site-footer .wrap { padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 32px; }
.footer-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.footer-top img { height: 48px; width: auto; }
.site-footer h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.site-footer a { text-decoration: none; color: var(--cream); }
.site-footer a:hover { color: var(--coral); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line-dark); padding-top: 20px; color: #9C96A8; }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }

/* Legal page */
.legal { max-width: 44em; }
.legal h2 { font-size: clamp(28px, 3vw, 40px); margin: 40px 0 12px; }
.legal p, .legal li { font-size: 17px; }
.theme-title { font-family: var(--text); font-weight: 700; font-size: clamp(20px, 2vw, 24px); color: var(--coral-deep); letter-spacing: .08em; padding-bottom: 8px; scroll-margin-top: 90px; }
.footer-top > * { min-width: 0; }
.site-footer li, .site-footer a { overflow-wrap: anywhere; }
.project .stat span.num { color: var(--coral); font-size: clamp(48px, 5vw, 72px); }
