/* ═══════════════════════════════════════════════════════════════
   Fieldwork Electrical — concept site for the TKO portfolio.

   Warm paper, charcoal, one burnt-orange accent. Every pair below is
   measured against WCAG AA on the paper: ink 14.67, ink-2 7.19, accent
   4.92, white on accent 5.44. Accent on charcoal is 2.98 and is therefore
   never used: the dark footer sets type in paper, not orange.

   Locks, held across the page: one accent, one radius (3px), one theme.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper:    #F7F3ED;
  --paper-2:  #EFE7DB;
  --ink:      #23201C;
  --ink-2:    #575046;
  --rule:     #DED5C7;
  --rule-2:   #C9BEAC;
  --accent:   #B4471C;
  --accent-d: #8E3714;

  --radius: 3px;
  --edge: clamp(20px, 5vw, 72px);
  --maxw: 1180px;

  /* 1.25 ratio from 16px, so the steps are a scale and not a guess */
  --t-xs: 0.8rem;
  --t-s:  0.9375rem;
  --t-m:  1rem;
  --t-l:  1.25rem;
  --t-xl: 1.5625rem;
  --t-2xl: clamp(1.75rem, 3.2vw, 2.4414rem);
  --t-3xl: clamp(2.1rem, 5vw, 3.0518rem);
  --t-4xl: clamp(2.6rem, 7vw, 3.8147rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-m);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
p { margin: 0; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }   /* or the width/height attributes beat aspect-ratio */
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--edge); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ── the strip above the header ─────────────────────────────────
   Functional, not decoration: it says whose site this is and that the
   business is not real, which a portfolio piece has to say up front. */
.strip {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-xs);
}
.strip .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-block: 8px; }
.strip a { color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.strip a:hover { text-decoration: underline; text-underline-offset: 3px; }
.strip .badge {
  border: 1px solid rgba(247, 243, 237, .38);
  padding: 3px 9px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem;
}

/* ── header ─────────────────────────────────────────────────── */
.head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.head .shell { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand b {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 700; font-size: 1.32rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.brand span { font-size: var(--t-xs); color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase; }

.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: var(--t-s); color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Schibsted Grotesk", system-ui, sans-serif; font-weight: 600;
  font-size: var(--t-s); line-height: 1; text-decoration: none;
  padding: 15px 22px; border-radius: var(--radius); border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-ghost { background: transparent; color: var(--accent-d); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--accent-d); border-color: var(--ink); }

.burger { display: none; background: none; border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 11px 12px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }
.burger span + span { margin-top: 5px; }

@media (max-width: 900px) {
  .nav, .head .btn { display: none; }
  .burger { display: block; }
  .head .shell { min-height: 64px; }
}

.sheet { display: none; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.sheet.open { display: block; }
.sheet .shell { display: grid; gap: 2px; padding-block: 12px 20px; }
.sheet a { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-l); font-family: "Schibsted Grotesk", system-ui, sans-serif; font-weight: 600; }
.sheet .btn { margin-top: 16px; justify-self: start; }

/* ── hero ───────────────────────────────────────────────────── */
.hero { padding-block: clamp(32px, 4vw, 56px) clamp(38px, 5vw, 68px); }
.hero .shell { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: stretch; }
.hero > .shell > div:first-child { align-self: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.5rem); max-width: 17ch; }
.hero .lede { margin-top: 22px; font-size: var(--t-l); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.hero .acts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .where { margin-top: 26px; font-size: var(--t-s); color: var(--ink-2); }

/* The drawing stands in for photography that does not exist yet: it is a
   plan, drawn, and reads as a drawing. It is not pretending to be a photo. */
.hero .shot { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.hero .shot img { width: 100%; height: clamp(260px, 32vw, 400px); object-fit: cover; }
.hero .shot figcaption { margin: 0; padding: 12px clamp(14px, 1.8vw, 20px); background: var(--ink); color: var(--paper); font-size: var(--t-xs); }

@media (max-width: 860px) {
  .hero .shell { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}

/* ── sections ───────────────────────────────────────────────── */
.band { padding-block: clamp(52px, 7vw, 104px); }
.band-paper2 { background: var(--paper-2); border-block: 1px solid var(--rule); }
.head-2 { font-size: var(--t-2xl); max-width: 22ch; }
.intro { margin-top: 16px; color: var(--ink-2); max-width: 56ch; }

/* services: an editorial list, not five identical cards */
.svc { margin-top: clamp(30px, 4vw, 52px); }
.svc .lead { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(14px, 3vw, 48px); padding-bottom: clamp(26px, 3vw, 38px); border-bottom: 1px solid var(--rule-2); align-items: start; }
.svc .lead h3 { font-size: var(--t-2xl); }
.svc .lead p { font-size: var(--t-l); line-height: 1.5; }
.svc .rest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 46px) clamp(30px, 5vw, 72px); padding-top: clamp(26px, 3vw, 38px); }
.svc h3 { font-size: var(--t-xl); }
.svc p { color: var(--ink-2); max-width: 54ch; margin-top: 8px; }
@media (max-width: 760px) {
  .svc .lead, .svc .rest { grid-template-columns: 1fr; }
  .svc .rest { gap: 26px; }
}

/* example work: deliberately uneven, so it does not read as a card grid */
.work { margin-top: clamp(30px, 4vw, 52px); display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(12, 1fr); }
.work article { grid-column: span 12; }
.work article.wide { grid-column: span 7; }
.work article.narrow { grid-column: span 5; }
/* The third runs the full width as a horizontal item, so the section changes
   rhythm instead of leaving an orphan card beside a gap. */
.work article.long { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding-top: clamp(8px, 1.5vw, 20px); border-top: 1px solid var(--rule); }
.work article.long { align-items: start; }
.work article.long .body { padding-top: 4px; }
@media (max-width: 860px) {
  .work article, .work article.wide, .work article.narrow { grid-column: span 12; }
  .work article.long { grid-column: span 12; grid-template-columns: 1fr; }

}
.work figure { margin: 0; }
.work img, .work .ill { border-radius: var(--radius); border: 1px solid var(--rule-2); background: var(--paper-2); }
/* Same aspect for both media types, so the captions sit on one line. */
.work .media { aspect-ratio: 16 / 10; width: 100%; height: auto; }
.work img.media { object-fit: cover; }
.work .ill { display: grid; place-items: center; padding: clamp(14px, 2vw, 24px); }
.work .ill svg { width: 100%; height: 100%; }
.work h3 { margin-top: 18px; font-size: var(--t-l); }
.work p { margin-top: 8px; color: var(--ink-2); max-width: 54ch; font-size: var(--t-s); }
.work .tag { margin-top: 12px; font-size: var(--t-xs); color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 10px; }

/* how enquiries work */
.steps { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps h3 { font-size: var(--t-l); }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: var(--t-s); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* areas */
.areas { margin-top: clamp(24px, 3vw, 40px); columns: 3; column-gap: 40px; max-width: 760px; }
.areas li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--rule); list-style: none; }
.areas { padding-left: 0; }
@media (max-width: 700px) { .areas { columns: 2; } }

/* ── contact ────────────────────────────────────────────────── */
.contact .shell { display: grid; gap: clamp(30px, 5vw, 64px); grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
@media (max-width: 900px) { .contact .shell { grid-template-columns: 1fr; } }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--t-s); font-weight: 600; }
.hint { font-size: var(--t-xs); color: var(--ink-2); }
input, select, textarea {
  font: inherit; font-size: var(--t-m); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule-2); border-radius: var(--radius);
  padding: 13px 14px; width: 100%;
}
textarea { min-height: 128px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); }
.two { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

.demo-note { background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 14px 16px; font-size: var(--t-s); color: var(--ink-2); }
.err { color: var(--accent-d); font-size: var(--t-s); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--accent-d); }

.sent { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); background: var(--paper-2); }
.sent h3 { font-size: var(--t-xl); }
.sent p { margin-top: 10px; color: var(--ink-2); }
.sent dl { margin: 18px 0 0; display: grid; gap: 8px; }
.sent dt { font-size: var(--t-xs); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.sent dd { margin: 0; }

/* ── footer ─────────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 5vw, 64px); }
.foot a { color: var(--paper); }
.foot .cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot nav { display: grid; gap: 10px; font-size: var(--t-s); }
.foot .note { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(247,243,237,.2); font-size: var(--t-xs); color: #C9C0B3; max-width: 70ch; }
.foot .note a { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
