/* iamkorry.com — Korry Scott portfolio
   Design system v1.5 (Plum accent update) */

@font-face {
  font-family: 'Söhne';
  src: url('/fonts/soehne-buch.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Söhne';
  src: url('/fonts/soehne-kraftig.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

:root {
  --bg: #F8F4EE;
  --bg-linen: #F0EDE6;
  --bg-card: #FFFFFF;
  --text-primary: #3D3A35;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border: #E0DDD8;
  --plum: #6D2C37;
  --cta-bg: #6D2C37;
  --cta-text: #F8F4EE;
  --honey-lg: #A88524;
  --honey-sm: #836821;
  --stone-bg: #E3E1DE;
  --stone-text: #61594C;
  --olive-bg: #E9EFEC;
  --olive-text: #3A5548;
  --olive: #4A6B5B;

  --font-serif: 'Bitter', 'DM Serif Display', Georgia, serif;
  --font-sans: 'Söhne', 'DM Sans', system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #141210;
  --bg-linen: #1C1916;
  --bg-card: #1A1714;
  --text-primary: #EDEAE4;
  --text-secondary: #A8A296;
  --text-muted: #7A7568;
  --border: #2E2A24;
  --plum: #C46474;
  --cta-bg: #C46474;
  --cta-text: #141210;
  --honey-lg: #D6A51F;
  --honey-sm: #D6A51F;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

a { text-decoration: none; }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--border);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.wordmark .k { color: var(--plum); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-link.cta {
  font-weight: 500;
  color: var(--plum);
  border-bottom: 1px solid var(--plum);
  padding-bottom: 2px;
}

.theme-toggle {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
}

/* ---------- Headings shared ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 20px;
}

h2.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 48px;
}

.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg);
  display: inline-block;
}

.pill.pill-accent {
  border-color: var(--honey-sm);
  color: var(--honey-sm);
  background: transparent;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 96px;
  padding-bottom: 80px;
  border-bottom: 0.5px solid var(--border);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 28px;
  max-width: 15ch;
}

.hero .lede {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 40px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 2px;
}

.link-underline {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
}

.link-plum {
  font-size: 13px;
  font-weight: 500;
  color: var(--plum);
  border-bottom: 1px solid var(--plum);
  padding-bottom: 1px;
}

/* ---------- Credentials ---------- */

.credentials-section {
  background: var(--bg-linen);
}

.credentials-inner {
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 0.5px solid var(--border);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-bottom: 48px;
}

.stat {
  border-left: 0.5px solid var(--border);
  padding-left: 24px;
}

.stat .num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1;
}

.stat .num.accent { color: var(--honey-lg); }

.stat .desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Clients ---------- */

.clients-section {
  padding-top: 80px;
  padding-bottom: 96px;
}

.tier {
  margin-bottom: 40px;
}

.tier + .tier {
  border-top: 0.5px solid var(--border);
  padding-top: 32px;
  margin-bottom: 32px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 40px;
  row-gap: 20px;
}

.tier + .tier .logo-row {
  column-gap: 32px;
  row-gap: 16px;
}

.logo-slot {
  display: flex;
  align-items: center;
}

.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

:root[data-theme="dark"] .logo-slot img {
  filter: brightness(0) invert(1) opacity(0.82);
}

/* ---------- What I do ---------- */

.services-section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 0.5px solid var(--border);
}

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

.service {
  border-left: 0.5px solid var(--border);
  padding: 0 28px 0 24px;
}

.service h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 14px;
  line-height: 1.3;
}

.service p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Featured case study ---------- */

.featured-section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 0.5px solid var(--border);
}

.featured-sub {
  max-width: 62ch;
  margin: 0 0 40px;
}

.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.card-head h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 520px;
  margin: 0;
}

.status-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-linen);
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
  white-space: nowrap;
  margin-top: 4px;
}

.card-dek {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 32px;
}

.card-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}

.card-body h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 22px;
}

.craft-block {
  background: var(--bg-linen);
  border-radius: 8px;
  padding: 16px 18px;
}

.craft-block p { margin: 0; }

.card-rail {
  border-left: 0.5px solid var(--border);
  padding-left: 32px;
}

.rail-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.rail-stats .num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--honey-lg);
  line-height: 1;
  margin: 0 0 2px;
}

.rail-stats .desc {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-linen);
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.ba-box {
  border-radius: 8px;
  padding: 14px 18px;
}

.ba-box.before {
  background: var(--stone-bg);
  color: var(--stone-text);
}

.ba-box.after {
  background: var(--olive-bg);
  color: var(--olive-text);
}

.ba-box .label { margin-bottom: 8px; }
.ba-box.before .label { color: var(--stone-text); }
.ba-box.after .label { color: #4A6B5B; }

.ba-box p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 5px;
}
.ba-box p:last-child { margin-bottom: 0; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 0.5px solid var(--border);
}

.card-footer .status-note {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0;
}

.link-muted {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: default;
}

/* ---------- Selected work ---------- */

.work-section {
  background: var(--bg);
}

.work-inner {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.case-study {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 48px;
  margin-bottom: 40px;
}

.case-study h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.case-study > p.body-copy {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 70ch;
  margin: 0 0 36px;
}

.case-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.case-before-after .ba-box {
  border-radius: 6px;
  padding: 20px 24px;
}

.case-before-after .ba-box p {
  line-height: 1.7;
}

.time-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.time-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-bar-label {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 220px;
}

.time-bar-track {
  flex: 1;
  background: var(--border);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.time-bar-fill {
  height: 6px;
  border-radius: 4px;
  background: var(--olive);
}

.time-bar-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 44px;
  text-align: right;
}

.time-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.stat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-grid-3 .num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--honey-lg);
  margin: 0 0 4px;
  line-height: 1;
}

.stat-grid-3 .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.work-item h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.work-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 14px;
}

/* ---------- About ---------- */

.about-section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.about-body {
  max-width: 62ch;
}

.about-body p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 24px;
}

.about-body p.lead,
.about-body p.close {
  color: var(--text-primary);
}

.about-body .dropcap {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--plum);
  float: left;
  line-height: 0.8;
  padding-right: 10px;
  padding-top: 4px;
}

/* ---------- CTA footer ---------- */

.cta-footer {
  border-top: 0.5px solid var(--border);
}

.cta-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 48px 64px;
  text-align: center;
}

.cta-footer h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 20px;
}

.cta-footer .lede {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 auto 36px;
}

.cta-footer .btn-primary {
  font-size: 14px;
  padding: 14px 32px;
  margin-bottom: 32px;
}

.cta-footer .contact-line {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 48px;
}

.cta-footer .contact-line a {
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--text-muted);
}

.cta-footer .copyright {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .service {
    border-left: none;
    border-top: 0.5px solid var(--border);
    padding: 24px 0 0;
  }
  .card-body {
    grid-template-columns: 1fr;
  }
  .card-rail {
    border-left: none;
    border-top: 0.5px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 680px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .cta-footer-inner { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .hero h1 { font-size: 38px; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 16px; }
  h2.section-title { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-left: none; border-top: 0.5px solid var(--border); padding: 24px 0 0; }
  .service:first-child { border-top: none; padding-top: 0; }
  .case-before-after,
  .before-after,
  .stat-grid-3,
  .time-bar-label { }
  .case-before-after { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .stat-grid-3 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .time-bar-label { min-width: 140px; }
  .case-study { padding: 28px; }
  .card { padding: 24px; }
  .cta-footer h2 { font-size: 30px; }
}
