/* KD Works site. Brand: linen ground, harbor navy, one brass rule. */
:root {
  --linen: #F6F3EC;
  --navy: #1E3A5F;
  --deep: #13263F;
  --ink: #1A2230;
  --brass: #C08A2E;
  --brass-text: #8A6420;
  --muted: #535A66;
  --hairline: #DDD7CA;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-text); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; max-width: 40em; color: var(--ink); }
.section-intro { max-width: 40em; color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--linen);
  border-bottom: 1px solid var(--hairline);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo-link img { width: 180px; height: auto; }
.nav { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-cta {
  background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 4px;
}
.nav .nav-cta:hover { background: var(--deep); color: #fff; text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 80px; }
.brass-rule { width: 96px; height: 3px; background: var(--brass); margin: 24px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }

.button {
  display: inline-block; background: var(--navy); color: #fff;
  font-family: var(--sans); font-weight: 600; text-decoration: none;
  padding: 13px 24px; border-radius: 4px;
}
.button:hover { background: var(--deep); }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--hairline); }
.section-navy { background: var(--navy); color: #fff; border-top: 0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: #E7C98A; }
.section-rule { background: transparent; }
.section-contact, .section-tint { background: #EFEADD; }

/* Services */
.services {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0 48px;
}
.services li { padding: 24px 0; border-top: 1px solid var(--hairline); }
.services p { margin: 0; color: var(--ink); }

/* Steps */
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.steps li { border-top: 1px solid rgba(255,255,255,0.3); padding-top: 20px; }
.step-num { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: #E7C98A; display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: #E9EDF3; }

/* Principles */
.principles { margin: 40px 0 0; display: grid; grid-template-columns: 1fr; gap: 0 48px; }
.principles div { padding: 20px 0; border-top: 1px solid var(--hairline); }
.principles dt { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.2rem; margin-bottom: 4px; }
.principles dd { margin: 0; }

/* Contact */
.contact-line { margin-top: 24px; }

/* Footer */
.site-footer { background: var(--deep); color: #E9EDF3; padding: 36px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-row p { margin: 0; font-size: 0.9rem; }
.site-footer a { color: #fff; }

/* Larger screens */
@media (min-width: 760px) {
  .services, .principles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .wrap { padding: 0 32px; }
}

/* Small screens: keep the nav compact */
@media (max-width: 640px) {
  .header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { gap: 16px; flex-wrap: wrap; }
  .logo-link img { width: 160px; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 52px 0; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* AI audit */
.audit-steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0 48px;
}
.audit-steps li { padding: 24px 0; border-top: 1px solid var(--hairline); }
.audit-steps p { margin: 0; }
.audit-num { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--brass-text); display: block; margin-bottom: 2px; }
.audit-result { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--hairline); max-width: 44em; }

/* Ladder */
.ladder-types { margin: 36px 0 0; display: grid; grid-template-columns: 1fr; gap: 0 48px; }
.ladder-types > div { padding-top: 16px; border-top: 1px solid var(--hairline); }
.ladder-types .eyebrow { margin-bottom: 6px; }
.ladder-types p:last-child { margin-bottom: 8px; }
.ladder { list-style: none; margin: 32px 0 0; padding: 0; }
.ladder li {
  display: grid; grid-template-columns: 40px 1fr; gap: 0 16px;
  padding: 22px 0; border-top: 1px solid var(--hairline);
}
.rung-num { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.rung-body { position: relative; padding-bottom: 14px; }
.rung-body::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px;
  width: calc(10% + var(--lvl) * 12%); max-width: 100%;
  background: var(--navy); opacity: 0.85;
}
.rung-body h3 { margin-bottom: 4px; }
.rung-tag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-family: var(--sans); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text);
  border: 1px solid var(--hairline); padding: 2px 8px; border-radius: 4px;
}
.rung-body p { margin: 0 0 10px; max-width: 42em; }
.rung-example { color: var(--muted); font-size: 0.95rem; }
.rung-industry {
  display: block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.ladder-question { margin-top: 32px; padding: 24px; background: var(--linen); border: 1px solid var(--hairline); max-width: 48em; }
.ladder-question .eyebrow { margin-bottom: 6px; }
.ladder-question h3 { margin-bottom: 12px; }
.ladder-question p:last-child { margin-bottom: 0; }
.ladder-notes { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 0 48px; }
.ladder-notes p { padding-top: 16px; border-top: 1px solid var(--hairline); }

@media (min-width: 760px) {
  .audit-steps { grid-template-columns: 1fr 1fr; }
  .ladder-notes { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .ladder-types { grid-template-columns: 1fr 1fr; }
}

/* Team */
.team { list-style: none; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 28px 48px; }
.team li { text-align: left; }
.team img {
  width: 128px; height: 128px; border-radius: 50%;
  border: 1px solid var(--hairline); background: #EFEADD; object-fit: cover;
  margin-bottom: 12px;
}
.team p { margin: 0; }
.team-name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.15rem; line-height: 1.2; }
.team-role { color: var(--muted); font-size: 0.95rem; }
