/* ========================================
   Puskin Partners — static site styles
   ======================================== */

/* --- Custom properties --- */
:root {
  --paper:        #F2EEE6;
  --ink:          #16211D;
  --ink-hover:    #0E1614;
  --on-dark:      #EFEAE1;
  --text-2:       #3B4842;
  --text-3:       #6E6A61;
  --brass:        #A9884E;
  --brass-dark:   #C2A468;
  --photo-bg:     #2A3833;

  --rule:         1px solid rgba(22,33,29,.14);
  --rule-strong:  1px solid rgba(22,33,29,.25);
  --rule-soft:    1px solid rgba(22,33,29,.12);
  --rule-dark:    1px solid rgba(239,234,225,.2);

  --pad-x:        88px;
  --pad-x-header: 64px;
  --pad-y:        110px;

  --serif:  'Libre Caslon Display', Georgia, serif;
  --sans:   'Libre Franklin', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Selection --- */
::selection {
  background: rgba(169,136,78,.25);
}

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 0;
}

/* --- Shared typography --- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--brass);
  flex-shrink: 0;
}

.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
}

.section-label-dark {
  color: var(--brass-dark);
}

.meta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 19px 34px;
  transition: all 150ms ease;
  white-space: nowrap;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--ink-hover);
}

.btn-light {
  background: var(--on-dark);
  color: var(--ink);
}

.btn-light:hover {
  opacity: .88;
}

.btn-outline {
  border: 1px solid rgba(22,33,29,.35);
  padding: 13px 22px;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 19px 0;
  border-bottom: 1px solid rgba(22,33,29,.3);
  transition: all 150ms ease;
}

.btn-text:hover {
  color: var(--brass);
  border-color: var(--brass);
}

/* --- Section base --- */
.section {
  padding: var(--pad-y) var(--pad-x);
  border-bottom: var(--rule);
}

.section-header {
  margin-bottom: 64px;
}

.section-header .section-label {
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 46px;
  letter-spacing: -.01em;
}

/* --- Photo placeholder --- */
.photo {
  background: var(--photo-bg);
  object-fit: cover;
  width: 100%;
}

/* ========================================
   01 — Header
   ======================================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px var(--pad-x-header);
  border-bottom: var(--rule);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.logo-primary {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}

.logo-secondary {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .34em;
  color: var(--text-3);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 46px;
}

.nav a {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 150ms ease;
}

.nav a:hover {
  color: var(--brass);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.lang-switch {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--text-3);
  text-transform: uppercase;
}

.lang-switch a {
  transition: opacity 150ms ease;
}

.lang-active {
  color: var(--text-3);
}

.lang-inactive {
  opacity: .45;
}

/* Mobile menu toggle — hidden on desktop */
#mobile-nav-toggle {
  display: none;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

/* ========================================
   02 — Hero
   ======================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: var(--rule);
}

.hero-text {
  display: flex;
  flex-direction: column;
  padding: 120px 72px 100px var(--pad-x);
}

.hero .eyebrow {
  margin-bottom: 56px;
  white-space: nowrap;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 17ch;
  text-wrap: balance;
}

.hero-perex {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 52px;
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: auto;
  padding-top: 80px;
}

.hero-stat-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
}

.hero-stat-label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 8px;
}

.hero-photo {
  min-height: 820px;
}

/* ========================================
   03 — Trust block (dark)
   ======================================== */

.trust {
  background: var(--ink);
  color: var(--on-dark);
  padding: 110px var(--pad-x);
  border-bottom: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}

.trust-claim {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.28;
  letter-spacing: -.01em;
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trust-point {
  display: flex;
  gap: 20px;
  border-top: var(--rule-dark);
  padding-top: 22px;
  padding-bottom: 28px;
}

.trust-point-num {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--brass-dark);
  min-width: 30px;
  flex-shrink: 0;
}

.trust-point-text {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(239,234,225,.82);
}

/* ========================================
   04 — Emissions table
   ======================================== */

.emissions-list {
  width: 100%;
}

.emissions-header {
  display: grid;
  grid-template-columns: 1.7fr .9fr .8fr .9fr 1fr;
  padding-bottom: 18px;
  border-bottom: var(--rule-strong);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.emissions-item {
  display: grid;
  grid-template-columns: 1.7fr .9fr .8fr .9fr 1fr;
  align-items: center;
  padding: 34px 0;
  border-bottom: var(--rule-soft);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-2);
  transition: background 150ms ease;
}

.emissions-item:hover {
  background: rgba(22,33,29,.03);
}

.emission-name,
.emission-yield {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--ink);
}

.emissions-note {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-3);
  font-style: italic;
}

.tr-status-new {
  color: #16211D;
  border-color: rgba(22,33,29,.25);
  background: rgba(22,33,29,.04);
}

/* Track record table */
.tr-list { width: 100%; }

.tr-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  padding-bottom: 18px;
  border-bottom: var(--rule-strong);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tr-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 34px 0;
  border-bottom: var(--rule-soft);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-2);
  text-decoration: none;
  transition: background 150ms ease;
  cursor: pointer;
}

.tr-row:hover { background: rgba(22,33,29,.03); }

a.emission-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 150ms ease;
}

a.emission-card:hover { background: rgba(22,33,29,.03); }

.tr-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}

.tr-profit {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--brass);
}

.tr-status {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(169,136,78,.3);
  padding: 4px 10px;
  display: inline-block;
}

/* Mobile emission cards — hidden on desktop */
.emissions-cards {
  display: none;
}

/* ========================================
   05 — Process
   ======================================== */

.process {
  padding: var(--pad-y) var(--pad-x);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
}

.process-content {
  padding: 0;
}

.process-content .section-label {
  margin-bottom: 20px;
}

.process-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 46px;
  letter-spacing: -.01em;
  margin-bottom: 48px;
}

.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-top: var(--rule-soft);
}

.process-step:last-child {
  border-bottom: var(--rule-soft);
}

.process-step-num {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--brass);
  min-width: 30px;
  flex-shrink: 0;
  padding-top: 6px;
}

.process-step-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 8px;
}

.process-step-body p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.process-photo {
  min-height: 500px;
  height: 100%;
}

/* ========================================
   06 — Portfolio
   ======================================== */

/* (portfolio removed — merged into references/realizace) */

/* ========================================
   06b — Story / Timeline
   ======================================== */

/* Story section — full-width dark */
.story-section {
  background: var(--ink);
  color: var(--paper);
  padding: 96px var(--pad-x);
  overflow: hidden;
}

.story-header {
  text-align: center;
  margin-bottom: 64px;
}

.story-header .section-label {
  color: var(--brass);
}

.story-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  color: var(--paper);
  margin: 20px 0 16px;
}

.story-subtitle {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(242,238,230,.6);
  max-width: 480px;
  margin: 0 auto;
}

/* Cards grid */
.story-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.story-card {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

/* Year */
.story-card-year {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 24px;
}

/* Connecting line + dot */
.story-card-line {
  position: relative;
  height: 32px;
  margin-bottom: 24px;
}

.story-card-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(169,136,78,.3);
}

.story-card:first-child .story-card-line::before {
  left: 50%;
}

.story-card:last-child .story-card-line::before {
  right: 50%;
}

.story-card-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brass);
  z-index: 1;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px rgba(169,136,78,.3);
}

.story-card--now .story-card-dot {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--brass), 0 0 20px rgba(169,136,78,.3);
}

.story-card--now .story-card-year {
  color: var(--paper);
}

/* Content */
.story-card-content h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 10px;
}

.story-card-content p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242,238,230,.55);
}

/* ========================================
   Services
   ======================================== */

.services-intro {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 60ch;
  margin-bottom: 48px;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 28px;
  border: 1px solid rgba(22,33,29,.1);
  margin-left: -1px;
  text-decoration: none;
  transition: background .15s ease;
}

.svc-card:first-child {
  margin-left: 0;
}

.svc-card:hover {
  background: rgba(22,33,29,.03);
}

.svc-card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}

.svc-card-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-3);
}

/* ========================================
   07 — Team
   ======================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.team-member .photo {
  height: 360px;
}

.team-member-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  margin-top: 24px;
}

.team-member-role {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 10px;
}

/* ========================================
   08 — References (before/after showcase)
   ======================================== */

.ref-showcase {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ref-showcase::-webkit-scrollbar {
  display: none;
}

.ref-showcase .ref-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.ref-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ref-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(22,33,29,.16);
}

.ref-card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
}

.ref-card-location {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ref-card-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ref-card-row-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(22,33,29,.75);
  color: var(--on-dark);
  padding: 6px 14px;
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}

.ref-card-row-label-after {
  background: var(--brass);
  color: #fff;
}

.ref-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
}

.ref-thumb {
  height: 160px;
}

.ref-card-body {
  padding-top: 12px;
  max-width: 72ch;
}

.ref-card-desc {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* quote + source removed — merged layout uses header instead */

/* ========================================
   Slider component
   ======================================== */

.slider {
  position: relative;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(22,33,29,.2);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.slider-btn:hover {
  border-color: var(--ink);
  background: rgba(22,33,29,.04);
}

.slider-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-counter {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-3);
  min-width: 48px;
  text-align: center;
}

/* Track record card slider */
.tr-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tr-slider-track::-webkit-scrollbar {
  display: none;
}

.tr-slide {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  min-width: 0;
}

a.tr-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(22,33,29,.12);
  padding: 32px 28px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
}

a.tr-card:hover {
  background: rgba(22,33,29,.03);
}

.tr-card-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}

.tr-card-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.tr-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tr-card-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tr-card-value {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-2);
  text-align: right;
}

.tr-card-profit {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 22px;
}

.tr-card-status {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(169,136,78,.3);
  padding: 6px 14px;
  align-self: flex-start;
}

/* ========================================
   09 — Contact (dark)
   ======================================== */

.contact {
  background: var(--ink);
  color: var(--on-dark);
  padding: 110px var(--pad-x);
  border-bottom: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 96px;
}

.contact-left .section-label-dark {
  margin-bottom: 28px;
}

.contact-left h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  max-width: 20ch;
  margin-bottom: 48px;
}

.contact-right {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 2.1;
  color: rgba(239,234,225,.82);
  align-self: center;
}

.contact-right .contact-hours {
  color: rgba(239,234,225,.55);
}

.contact-disclaimer {
  background: var(--ink);
  color: rgba(239,234,225,.5);
  padding: 0 var(--pad-x) 46px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.85;
}

.contact-disclaimer p {
  max-width: 110ch;
}

.contact-disclaimer p + p {
  margin-top: 12px;
}

/* --- Partners / suppliers logos --- */
.partners {
  padding: 64px var(--pad-x);
  text-align: center;
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.partners .section-label {
  display: block;
  margin-bottom: 40px;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 32px;
  width: auto;
  filter: grayscale(100%) opacity(0.4);
  transition: filter .3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
}

/* ========================================
   Responsive — tablet (<=1024px)
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --pad-x: 40px;
    --pad-y: 72px;
  }

  /* Header stays flex row but tighter */
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 11;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    position: relative;
    transition: background 150ms ease;
  }

  .menu-toggle span::before,
  .menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 150ms ease;
  }

  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after  { top: 7px; }

  /* Checkbox-driven mobile nav */
  #mobile-nav-toggle:checked ~ .mobile-nav {
    display: flex;
  }

  #mobile-nav-toggle:checked ~ .menu-toggle span {
    background: transparent;
  }

  #mobile-nav-toggle:checked ~ .menu-toggle span::before {
    transform: rotate(45deg);
    top: 0;
  }

  #mobile-nav-toggle:checked ~ .menu-toggle span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    z-index: 10;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--pad-x);
    gap: 32px;
  }

  .mobile-nav a {
    font-family: var(--serif);
    font-size: 36px;
    color: var(--ink);
    transition: color 150ms ease;
  }

  .mobile-nav a:hover {
    color: var(--brass);
  }

  #mobile-nav-toggle {
    display: none;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 80px var(--pad-x) 72px;
  }

  .hero-photo {
    min-height: 320px;
    order: 2;
  }

  /* Trust */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-content {
    border-bottom: var(--rule);
    padding-bottom: var(--pad-y);
  }

  .process-photo {
    min-height: 400px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Story */
  .story-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }

  .story-card-year {
    font-size: 36px;
  }

  .story-card-line {
    display: none;
  }

  .story-section {
    padding: 72px var(--pad-x);
  }

  .services-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* References */
  .ref-thumb {
    height: 130px;
  }

  .ref-card-row {
    gap: 12px;
  }

  .ref-card-grid {
    gap: 8px;
  }

  /* Track record slider — 2 per view */
  .tr-slide {
    flex: 0 0 calc(50% - 10px);
  }

  /* Partners */
  .partners-logos {
    gap: 40px;
  }

  .partner-logo {
    height: 28px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* ========================================
   Responsive — mobile (<=640px)
   ======================================== */

@media (max-width: 640px) {
  :root {
    --pad-x: 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .eyebrow {
    font-size: 10px;
    white-space: normal;
  }

  .section-header h2,
  .process-content h2 {
    font-size: 32px;
  }

  .trust-claim {
    font-size: 24px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 28px;
  }

  /* Tables -> cards on mobile */
  .emissions-list,
  .tr-list {
    display: none !important;
  }

  .emissions-cards {
    display: flex;
    flex-direction: column;
  }

  .emission-card {
    padding: 28px 0;
    border-bottom: var(--rule-soft);
  }

  .emission-card-name {
    font-family: var(--serif);
    font-size: 24px;
    margin-bottom: 16px;
  }

  .emission-card-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .emission-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .emission-card-label {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-3);
  }

  .emission-card-value {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--text-2);
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Ref card header mobile */
  .ref-card-header {
    flex-direction: column;
    gap: 4px;
  }

  .ref-card-name {
    font-size: 22px;
  }

  .ref-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-thumb {
    height: 120px;
  }

  /* Contact */
  .contact {
    padding: 72px var(--pad-x);
  }

  .contact-left h2 {
    font-size: 32px;
  }

  .contact-disclaimer {
    padding: 0 var(--pad-x) 32px;
  }

  /* Story */
  .story-cards {
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
  }

  .story-card {
    padding: 0 16px;
  }

  .story-card-year {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .story-card-line {
    display: none;
  }

  .story-header h2 {
    font-size: 28px;
  }

  .story-section {
    padding: 64px var(--pad-x);
  }

  .story-header {
    margin-bottom: 40px;
  }

  .service-block {
    padding: 32px 0;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .svc-card {
    margin-left: 0;
    margin-top: -1px;
  }

  .story-body h3 {
    font-size: 20px;
  }

  /* References */
  .ref-card-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ref-card-row-label {
    align-self: flex-start;
  }

  .ref-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .ref-thumb {
    height: 120px;
  }

  .ref-card-quote {
    font-size: 18px;
  }

  /* Partners */
  .partners {
    padding: 48px var(--pad-x);
  }

  .partners-logos {
    gap: 32px;
  }

  .partner-logo {
    height: 24px;
  }

  /* Track record slider — 1 per view */
  .tr-slide {
    flex: 0 0 100%;
  }

  .slider-controls {
    margin-top: 32px;
  }
}
