﻿/* Talon Technology - shared site styles */

/* ---------- Base ---------- */
:root {
  --content-width: 1312px;  /* widest the page content gets; change this to widen or narrow every page */
  --gutter: clamp(20px,5vw,64px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Barlow',system-ui,sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a {
  color: #fff;
}
a:hover {
  color: #C7C7C7;
}
img {
  max-width: 100%;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.cond {
  font-family: 'Barlow Semi Condensed',sans-serif;
}

/* ---------- Site header and navigation ---------- */
.site-header {
  background: #000;
  border-bottom: 1px solid #2B2B2B;
}
.site-header .wrap {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}
.site-header img {
  height: 46px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 40px;
  font-size: 16px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"] {
  border-bottom-color: #ED1C24;
}
.nav a.nav-cta {
  padding: 11px 24px;
  border: 1px solid #fff;
}
.nav a.nav-cta[aria-current="page"] {
  background: #fff;
  color: #000;
}

/* ---------- Carbon twill background texture ---------- */
.twill {
  background: #131313 url("../images/carbon-fibre-texture.jpg") center / cover no-repeat;
}

/* ---------- Eyebrow labels (small red-marked headings) ---------- */
.eyebrow {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C7C7C7;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 18px;
  background: #ED1C24;
  clip-path: polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%);
}
.light .eyebrow {
  color: #000;
}

/* ---------- Page hero ---------- */
.page-hero {
  display: flex;
  flex-wrap: wrap;
}
.page-hero .copy {
  flex: 1 1 520px;
  min-width: 0;
  padding: 96px 40px 96px max(var(--gutter),calc(50vw - var(--content-width) / 2));
}
.page-hero h1 {
  margin: 0;
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 500;
  font-size: clamp(40px,5vw,68px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.page-hero .lead {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
  color: #C7C7C7;
}
.page-hero figure {
  flex: 1 1 440px;
  min-width: 0;
  margin: 0;
  display: flex;
  position: relative;
}

/* ---------- Photo placeholders ---------- */
.ph {
  background: #2B2B2B;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.ph.dark {
  background: #1F1F1F;
}
.light .ph {
  background: #C7C7C7;
  color: #000;
}
.page-hero .ph {
  flex: 1;
  min-height: 520px;
  clip-path: polygon(14% 0,100% 0,100% 100%,0 100%);
  padding: 24px 18%;
}
.page-hero figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #000;
  padding: 14px 24px;
  font-size: 15px;
  color: #C7C7C7;
}
.page-hero figcaption strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btns {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 30px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 17px;
  cursor: pointer;
}
.btn-red {
  background: #ED1C24;
  color: #000;
}
.btn-red:hover {
  background: #fff;
  color: #000;
}
.btn-line {
  border-color: #fff;
  color: #fff;
  background: transparent;
  font-weight: 500;
}
.btn-line:hover {
  background: #fff;
  color: #000;
}
.btn-black {
  background: #000;
  color: #fff;
}
.btn-black:hover {
  background: #2B2B2B;
  color: #fff;
}

/* ---------- Sections and headings ---------- */
.section {
  padding-top: 104px;
  padding-bottom: 104px;
}
.light {
  background: #fff;
  color: #000;
}
.light a {
  color: #000;
}
.light a:hover {
  color: #9E1318;
}
.h2 {
  margin: 0 0 56px;
  max-width: 920px;
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 500;
  font-size: clamp(32px,3.6vw,52px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.h3 {
  margin: 0;
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
}
.muted {
  color: #C7C7C7;
}
.light .muted {
  color: #2B2B2B;
}

/* ---------- Columns, steps and split layouts ---------- */
.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.col {
  flex: 1 1 280px;
  min-width: 0;
  border-top: 2px solid currentColor;
  padding-top: 24px;
}
.col p {
  margin: 12px 0 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 0;
}
.steps li {
  flex: 1 1 260px;
  min-width: 0;
  border-top: 3px solid #C7C7C7;
  padding: 24px 40px 0 0;
}
.steps li:nth-child(2) {
  border-top-color: #9E1318;
}
.steps li:nth-child(3) {
  border-top-color: #ED1C24;
}
.steps li:nth-child(4) {
  border-top-color: #fff;
}
.steps li p {
  margin: 12px 0 0;
  color: #C7C7C7;
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
  align-items: flex-start;
}
.split > * {
  min-width: 0;
}
.prose p {
  margin: 0 0 20px;
  max-width: 760px;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Spec lists ---------- */
.specs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid currentColor;
}
.specs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid #C7C7C7;
}
.specs .k {
  color: #2B2B2B;
}
.specs .v {
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}
.dark-specs .specs li {
  border-bottom-color: #2B2B2B;
}
.dark-specs .specs .k {
  color: #C7C7C7;
}

/* ---------- Project rows ---------- */
.project {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid #2B2B2B;
}
.project:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.project .media {
  flex: 3 1 460px;
  min-width: 0;
}
.project .media .ph {
  height: 440px;
}
.project .body {
  flex: 2 1 360px;
  min-width: 0;
}
.project.rev {
  flex-direction: row-reverse;
}
.project .body .prose p {
  color: #C7C7C7;
}
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Callout box ---------- */
.callout {
  background: #F2F2F2;
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 48px;
}

/* ---------- Contact band (red angled section) ---------- */
.contact-band {
  background: #ED1C24;
  color: #000;
  margin-top: -56px;
  clip-path: polygon(0 56px,100% 0,100% 100%,0 100%);
}
.contact-band .wrap {
  padding-top: 144px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px 64px;
}
.contact-band h2 {
  margin: 0;
  max-width: 820px;
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 500;
  font-size: clamp(36px,4.6vw,66px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: #fff;
}
.contact-band p {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 19px;
  font-weight: 500;
}
.contact-band address {
  flex: 1 1 280px;
  min-width: 0;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  border-top: 2px solid #000;
  padding-top: 18px;
}
.contact-band a.btn {
  margin-top: 32px;
}

/* ---------- Footer ---------- */
.site-footer .wrap {
  padding-top: 48px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
}
.site-footer img {
  height: 40px;
  width: auto;
  display: block;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-size: 15px;
  font-weight: 500;
}
.site-footer nav a {
  padding: 12px 0;
}
.site-footer p {
  flex: 1 1 100%;
  margin: 0;
  font-size: 14px;
  color: #C7C7C7;
}

/* ---------- Contact form ---------- */
.form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
}
.form .full {
  grid-column: 1 / -1;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  color: #000;
  background: #fff;
  border: 1px solid #2B2B2B;
  padding: 14px 16px;
  min-height: 52px;
}
.form textarea {
  min-height: 180px;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid #ED1C24;
  outline-offset: 1px;
}
@media (max-width:640px) {
  .form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Key facts strip ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
}
.facts > div {
  flex: 1 1 240px;
  padding: 30px 32px 30px 0;
}
.facts .v {
  margin: 0;
  font-family: 'Barlow Semi Condensed',sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
}
.facts .k {
  margin: 4px 0 0;
  font-size: 15px;
  color: #C7C7C7;
}

/* ---------- Shared components ---------- */
.site-header .logo {
  display: flex;
}
.facts-band {
  border-bottom: 1px solid #2B2B2B;
}
.panel-dark {
  background: #000;
  color: #fff;
  padding: 32px 36px;
}
.panel-dark .eyebrow {
  color: #C7C7C7;
}
.callout p {
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
}
.callout strong {
  font-weight: 600;
  margin-right: 10px;
}
.callout a {
  font-weight: 600;
  padding: 12px 0;
}
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 32px;
}
.card-row > article {
  flex: 1 1 380px;
  min-width: 0;
}
.card-row h3 {
  margin-top: 24px;
}
.card-row p {
  margin: 10px 0 0;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.gallery figure {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
}
.gallery figcaption {
  margin-top: 14px;
  font-weight: 500;
}
.contact-band .copy {
  flex: 2 1 520px;
  min-width: 0;
}
.contact-band address a {
  color: #000;
}

/* ---------- Home page ---------- */
.home-hero .copy {
  padding-top: 104px;
  padding-bottom: 104px;
}
.home-hero .eyebrow {
  margin-bottom: 28px;
}
.home-hero h1 {
  font-size: clamp(40px,5vw,72px);
}
.home-hero .lead {
  max-width: 580px;
}
.home-hero figure {
  flex-basis: 480px;
}
.home-hero .ph {
  min-height: 620px;
}
.home-projects {
  padding-top: 8px;
  padding-bottom: 160px;
}
.featured-card {
  position: relative;
  margin-top: -96px;
  max-width: 520px;
  background: #fff;
  color: #000;
  padding: 32px 36px 36px;
}
.featured-card .h3 {
  font-size: 36px;
  line-height: 1.1;
}
.featured-card p {
  margin: 12px 0 0;
}
.featured-card a {
  color: #000;
  margin-top: 12px;
}

/* ---------- Carbon hinge range table (projects page) ---------- */
.hinge-range {
  padding-bottom: 72px;
}
.hinge-range > .muted {
  margin: 12px 0 28px;
}
.table-scroll {
  overflow-x: auto;
}
.range-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border-top: 2px solid #fff;
  font-size: 16px;
}
.range-table th,
.range-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid #2B2B2B;
  text-align: left;
  vertical-align: top;
}
.range-table thead th {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C7C7C7;
}
.range-table tbody th {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
}
.range-table td {
  color: #C7C7C7;
}
.range-table td.num {
  color: #fff;
  font-weight: 600;
}
.range-note {
  margin: 20px 0 0;
  font-size: 15px;
  color: #C7C7C7;
}

/* ---------- Photos ----------
   Each .ph box holds a photo. The text label only shows until the
   matching file is added to the images folder. */
.ph {
  position: relative;
  overflow: hidden;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;        /* fill the box top to bottom, crop the sides */
  object-position: center;  /* keep the crop centred */
}

/* Add class="focus-top" to a photo to pin its top edge to the top of the box
   (crops from the bottom instead of the middle). Good for portraits. */
.ph img.focus-top {
  object-position: center top;
}

/* ---------- Links inside dark boxes on white sections ----------
   .light sections make links black; these put dark boxes and black
   buttons back to white text. Hover colours are unchanged. */
.panel-dark a {
  color: #fff;
}
.light a.btn-black {
  color: #fff;
}

/* Callout box keeps dark text even when it sits in a dark section */
.callout,
.callout a {
  color: #000;
}
.callout a:hover {
  color: #9E1318;
}

/* ---------- Split photo (Services banner) ----------
   Two photos share one box, divided by a red diagonal that follows
   the banner's angled edge. Move the split by changing 57% / 43%
   in both the .split-after and .split-seam shapes. */
.page-hero .split-photo {
  padding: 0;
}
.split-half {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.split-before {
  background: #2B2B2B;
  padding: 24px 52% 24px 16%;
}
.split-after {
  background: #1F1F1F;
  clip-path: polygon(57% 0, 100% 0, 100% 100%, 43% 100%);
  padding: 24px 6% 24px 58%;
}
.split-seam {
  position: absolute;
  inset: 0;
  background: #ED1C24;
  clip-path: polygon(calc(57% - 6px) 0, 57% 0, 43% 100%, calc(43% - 6px) 100%);
}
.split-tag {
  position: absolute;
  bottom: 0;
  z-index: 1;
  background: #000;
  padding: 12px 20px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.split-tag-before {
  left: 0;
}
.split-tag-after {
  right: 0;
}
/* Each photo only spans its own side, so it centres in the part you can see */
.split-before img {
  right: auto;
  width: 57%;
}
.split-after img {
  left: auto;
  width: 57%;
  object-position: left center;  /* show the left side of the final product photo */
}
/* Services split banner: a slightly smaller heading so the photo area can be
   wider without the banner getting taller (wider + same height = less zoom). */
.split-hero h1 {
  font-size: clamp(36px, 3.8vw, 56px);
}
.split-hero .copy {
  flex: 1 1 460px;
}
.split-hero figure {
  flex: 1.6 1 560px;
}
.split-hero .copy {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* ---------- Home page: two headline projects side by side ---------- */
.hero-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 32px;
}
.hero-projects .featured {
  flex: 1 1 420px;
  min-width: 0;
}
.hero-projects .featured-card {
  margin-right: 32px;
}
.history-head {
  margin: 96px 0 32px;
  padding-top: 40px;
  border-top: 1px solid #2B2B2B;
}
.history-head .muted {
  margin: 10px 0 0;
}

/* Numbered steps on a white section (Pitch page applications) */
.steps-light li {
  border-top-color: #000;
}
.steps-light li p {
  color: #2B2B2B;
}

/* ---------- Pitch page ---------- */
/* Award line in the banner */
.award {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 520px;
}
.award-badge {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
}
.award p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #C7C7C7;
}
/* Intro paragraph under a section heading */
.section-intro {
  margin: -32px 0 48px;
  max-width: 760px;
  font-size: 19px;
}
/* Test results */
.results {
  align-items: flex-start;
}
.results-charts {
  flex: 3 1 520px;
}
.results-specs {
  flex: 2 1 340px;
}
.results-charts > .muted {
  margin: 0 0 8px;
}
.chart-title {
  margin: 32px 0 16px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}
.chart-title span {
  font-weight: 500;
  color: #C7C7C7;
}
.results-specs .chart-title {
  margin-top: 0;
}
.bar-chart {
  display: grid;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 76px;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: #C7C7C7;
}
.bar-track {
  height: 22px;
  background: #1F1F1F;
}
.bar {
  display: block;
  height: 100%;
  background: #7A7A7A;
}
.bar-value {
  text-align: right;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
}
.bar-row.is-pitch {
  color: #fff;
  font-weight: 600;
}
.bar-row.is-pitch .bar {
  background: #ED1C24;
}
.results-note {
  margin: 28px 0 0;
  max-width: 620px;
}
@media (max-width: 520px) {
  .bar-row {
    grid-template-columns: 1fr 64px;
  }
  .bar-label {
    grid-column: 1 / -1;
  }
}
/* Applications grid (five items) */
.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 32px;
}
.app-grid li {
  border-top: 2px solid #000;
  padding-top: 20px;
}
.app-grid .h3 {
  font-size: 24px;
}
.app-grid p {
  margin: 10px 0 0;
  color: #2B2B2B;
}
/* Ways to work with Talon */
.work-title {
  margin: 72px 0 24px;
}
.work-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.work-ways article {
  flex: 1 1 320px;
  background: #F2F2F2;
  padding: 28px 32px;
}
.work-ways h4 {
  margin: 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 22px;
}
.work-ways p {
  margin: 10px 0 0;
}
.demo-lead {
  align-items: center;
}

/* Text on the carbon texture banners: near-white so it reads clearly */
.twill .eyebrow,
.twill .lead,
.twill .award p {
  color: #EDEDED;
}

/* Taller top banner (About page), desktop only */
@media (min-width: 1024px) {
  .page-hero-tall {
    min-height: 640px;
  }
  .page-hero-tall .copy {
    align-self: center;
  }
}

/* Contact form: spam trap (hidden from people) and the sent / failed message */
.form .form-trap {
  display: none;
}
.form button:disabled {
  opacity: .6;
  cursor: default;
}
.form-status {
  margin: 0;
}
.form-status:empty {
  display: none;
}
.form-status.is-success,
.form-status.is-error {
  padding: 16px 20px;
  background: #F2F2F2;
  border-left: 4px solid #000;
  font-weight: 500;
}
.form-status.is-error {
  border-left-color: #ED1C24;
}

/* Contact page map */
.map {
  height: 340px;
  margin-top: 24px;
  background: #F2F2F2;
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Past projects / workshop photo rows ----------
   Fixed column counts so one photo never stretches across a row by itself. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Add class="focus-upper" to keep the top of a tall photo in view when it has
   to be cropped to a wide box (used on the Talon Chair). */
.ph img.focus-upper {
  object-position: center 38%;
}

/* Hinge table: keep short cells on one line. The swipe hint only shows when
   the table is wider than the screen. */
.range-table td:first-child,
.range-table td:nth-child(3),
.range-table td.num {
  white-space: nowrap;
}
.swipe-hint {
  display: none;
}

/* Easier to tap email and social links */
.contact-band address a,
.panel-dark p a {
  display: inline-block;
  padding: 10px 0;
}

/* Very wide screens: let the banners grow so photos are not cropped to a strip */
@media (min-width: 1600px) {
  .page-hero .ph {
    min-height: min(36vw, 900px);
  }
}

/* ---------- Laptops and large tablets ----------
   Photo boxes keep their shape as they get narrower, instead of staying at a
   fixed height. (!important is needed to beat the height set on each box.) */
@media (max-width: 1279px) {
  .featured .ph,
  .project .media .ph,
  .split .ph {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  .split .ph.portrait {
    aspect-ratio: 4 / 5;
  }
  .card-row .ph {
    height: auto !important;
    aspect-ratio: 8 / 5;
  }
  .gallery .ph {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  .gallery-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Tablets and phones: banner photo goes under the text ---------- */
@media (max-width: 1000px) {
  .page-hero {
    flex-direction: column;
  }
  .page-hero .copy,
  .page-hero figure {
    flex: none;
    width: 100%;
  }
  .page-hero .copy {
    padding: 72px var(--gutter);
  }
  .page-hero figure {
    flex-direction: column;
  }
  .page-hero .ph {
    flex: none;
    min-height: 0;
    height: min(75vw, 560px);
  }
  /* Talon Chair banners: taller, because the photo is upright */
  .home-hero .ph,
  .page-hero-tall .ph {
    height: min(120vw, 640px);
  }
  .page-hero figcaption {
    position: static;
    padding: 14px var(--gutter);
  }
  .swipe-hint {
    display: block;
    margin: 0 0 12px;
    font-size: 15px;
    color: #C7C7C7;
  }
}
@media (max-width: 880px) {
  /* Portrait stays portrait instead of becoming a wide strip */
  .split .ph.portrait {
    max-width: 440px;
  }
}

/* Tablets: rows of three stay as three, rows of four become two pairs,
   so no item drops onto a line by itself */
@media (min-width: 701px) and (max-width: 1150px) {
  .cols {
    gap: 40px 32px;
  }
  .col,
  .steps li,
  .facts > div {
    flex-basis: 180px;
  }
  .steps:has(> :nth-child(4)) > li,
  .facts:has(> :nth-child(4)) > div {
    flex-basis: 45%;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  /* Menu fits on one line under the logo */
  .site-header .wrap {
    padding-top: 16px;
    padding-bottom: 10px;
    gap: 6px;
  }
  .site-header img {
    height: 40px;
  }
  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .nav a.nav-cta {
    padding: 8px 16px;
  }

  /* Less empty space between sections */
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  /* Room for the red angled band, which overlaps the section above it */
  .section:has(+ .contact-band) {
    padding-bottom: 112px;
  }
  .page-hero .copy {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .h2 {
    margin-bottom: 36px;
  }
  .section-intro {
    margin: -16px 0 36px;
  }
  .home-projects {
    padding-top: 8px;
    padding-bottom: 112px;
  }
  .history-head {
    margin-top: 64px;
  }
  .project {
    padding: 56px 0;
    gap: 28px;
  }
  .hinge-range {
    padding-bottom: 56px;
  }
  .contact-band .wrap {
    padding-top: 112px;
    padding-bottom: 56px;
  }
  .steps {
    gap: 32px 0;
  }
  .steps li {
    flex-basis: 100%;
    padding-right: 0;
  }
  .facts {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .facts > div {
    flex-basis: 100%;
    padding: 12px 0;
  }

  /* Cards and photos */
  .featured-card {
    margin-top: -40px;
    padding: 24px;
  }
  .hero-projects .featured-card {
    margin-right: 20px;
  }
  .featured-card .h3 {
    font-size: 28px;
  }
  .panel-dark {
    padding: 28px 24px;
  }
  .split-tag {
    padding: 8px 14px;
    font-size: 14px;
  }
  .award-badge {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }
  .site-footer nav {
    gap: 0 28px;
  }
}
@media (max-width: 560px) {
  .gallery,
  .gallery-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
