/* High Top Trading. Type-led layout: the photographs are small (600px wide),
   so they are shown at modest sizes and the typography carries the page. */

:root {
  --paper: #f4f1eb;
  --white: #ffffff;
  --ink: #181715;
  --muted: #6c665e;
  --line: rgba(24, 23, 21, 0.16);
  --dark: #151412;
  --dark-line: rgba(244, 241, 235, 0.18);
  --dark-muted: #a39c92;
  --red: #d2232a;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(72px, 10vw, 144px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
section[id], article[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

/* Shared pieces */

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
}
.mark { width: 9px; height: 9px; background: var(--red); flex: none; }

h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; max-width: 18ch; }
.section-head { display: grid; gap: 22px; }

.button {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.01em;
  padding: 17px 26px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.text-link { font-weight: 500; font-size: 0.9375rem; }
.text-link::after { content: "\2192"; display: inline-block; margin-left: 0.5em; transition: transform 0.15s; }
.text-link:hover::after { transform: translateX(4px); }

figcaption, .cap {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.8125rem; line-height: 1.4; padding-top: 10px; color: var(--muted);
}

/* Header */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 152px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 0.9375rem; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav .nav-cta { border: 1px solid var(--ink); padding: 10px 18px; }
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* Hero */

.hero { padding-top: clamp(48px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.hero-text { display: grid; gap: clamp(22px, 2.6vw, 34px); justify-items: start; }
h1 { font-size: clamp(2.5rem, 5.6vw, 5.25rem); line-height: 1.02; max-width: 15ch; }
h1 em { font-style: italic; font-weight: 300; white-space: nowrap; }
.lede { max-width: 46ch; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); color: #3a3733; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

.hero-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 26px; column-gap: 16px; }
.hero-a { grid-column: 1 / -1; }
.hero-b { grid-column: 3 / -1; }
.hero-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 112px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 22px 24px 24px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { font-size: 1rem; line-height: 1.4; }
.facts a { text-decoration: none; }

/* Services */

.services { padding-block: var(--section); }
.services .section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 20px clamp(20px, 3vw, 48px); align-items: start;
  padding-block: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-no { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.09em; color: var(--red); padding-top: 0.7em; }
.service h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.625rem, 2.5vw, 2.25rem); line-height: 1.12; letter-spacing: -0.01em; }
.service-body { display: grid; gap: 14px; max-width: 58ch; color: #3a3733; }
.uses { font-size: 0.875rem; color: var(--muted); padding-top: 6px; }
.uses span { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 4px; }
.service-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-photo figcaption { justify-content: flex-start; }

/* Projects */

.work { background: var(--dark); color: var(--paper); padding-block: var(--section); }
.work .eyebrow { color: var(--dark-muted); }
.work a:hover { color: inherit; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: clamp(32px, 4vw, 56px) 0 clamp(28px, 3vw, 40px); padding-bottom: 18px; border-bottom: 1px solid var(--dark-line); }
.filters button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 500 0.9375rem/1.3 var(--sans); color: var(--dark-muted);
  border-bottom: 1px solid transparent;
}
.filters button span { font-size: 0.6875rem; vertical-align: 0.5em; margin-left: 3px; }
.filters button:hover { color: var(--paper); }
.filters button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--red); }

.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.work-grid li[hidden] { display: none; }
.work-grid a { display: block; text-decoration: none; }
.work-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #23211e; transition: opacity 0.2s; }
.work-grid a:hover img { opacity: 0.82; }
.cap { color: var(--dark-muted); }
.cap b { font-weight: 500; color: var(--paper); }
.cap i { font-style: normal; text-align: right; flex: none; }

/* About */

.about { padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.about h2 { max-width: 15ch; }
.about-text { display: grid; gap: 18px; max-width: 60ch; color: #3a3733; padding-top: 6px; }
.about-text p:first-child { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink); }

.lists { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(56px, 7vw, 104px); }
.list-block { border-top: 1px solid var(--ink); padding-top: 20px; }
.list-block h3 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.list-block ul { columns: 2; column-gap: clamp(24px, 4vw, 64px); }
.list-block:last-child ul { columns: 1; }
.list-block li { font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.2; padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* Contact */

.contact { background: var(--white); border-top: 1px solid var(--line); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.details { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding-top: 0.35em; }
.details a { text-decoration: none; }

.enquiry { display: grid; gap: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  font: 400 1.125rem/1.4 var(--sans); color: var(--ink); padding: 8px 0 10px;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.hp { display: none; }

.map { margin-top: clamp(56px, 7vw, 104px); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: clamp(280px, 32vw, 420px); border: 0; filter: grayscale(1) contrast(1.05); }

/* Footer */

.site-footer { background: var(--dark); color: var(--dark-muted); padding-block: clamp(40px, 5vw, 64px); font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 6px; }
.footer-name { font-family: var(--serif); font-weight: 300; font-size: 1.75rem; color: var(--paper); margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-small { margin-top: 22px; font-size: 0.8125rem; }

/* Photograph viewer */

.lightbox { border: 0; padding: 0; background: transparent; color: var(--paper); max-width: min(92vw, 820px); width: 100%; }
.lightbox::backdrop { background: rgba(12, 11, 10, 0.92); }
.lightbox img { width: 100%; }
.lightbox figcaption { color: var(--paper); font-size: 0.9375rem; }
.lightbox-controls { display: flex; gap: 26px; margin-top: 18px; }
.lightbox-controls button { background: none; border: 0; border-bottom: 1px solid var(--dark-line); padding: 6px 0; color: var(--paper); font: 500 0.875rem/1.3 var(--sans); cursor: pointer; }
.lightbox-controls button:hover { border-bottom-color: var(--red); }
.lightbox-controls [data-close] { margin-left: auto; }

/* Simple message pages (thank you, not found) */

.message { padding-block: clamp(72px, 12vw, 176px); display: grid; gap: 26px; justify-items: start; }
.message h1 { max-width: 14ch; }

/* Narrower screens */

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 6fr); }
  .service-photo { grid-column: 3; max-width: 320px; }
}

@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid, .lists { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .hero-b { grid-column: 4 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .service { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .service h3, .service-body, .service-photo { grid-column: 2; }
  .service-photo { max-width: 360px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 14px 12px; }
  .brand img { width: 136px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .site-nav .nav-cta { padding: 8px 14px; }
  section[id], article[id] { scroll-margin-top: 16px; }
  .list-block ul { columns: 1; }
  .cap { flex-direction: column; gap: 2px; }
  .cap i { text-align: left; }
  .details > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-b { grid-column: 3 / -1; }
}
