/* ==========================================================================
   tehkurt.com
   Site styles. Loaded after Bootstrap (grid + utilities only).
   ========================================================================== */

/* ---------- Web fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #14181a;
  --body: #464c4f;
  --muted: #6d7579;
  --line: #e4e1da;
  --bg: #fbfaf7;
  --bg-alt: #f3f1eb;
  --surface: #ffffff;
  --accent: #2f5d50;
  --accent-dark: #23463c;
  --accent-soft: #eaf0ec;
  --band: #11201b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 32, 27, .04), 0 12px 30px -24px rgba(17, 32, 27, .45);
  --shadow-lg: 0 24px 60px -40px rgba(17, 32, 27, .65);
  --wrap: 1120px;
  --gutter: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img,
svg {
  vertical-align: middle;
}

button {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

table {
  border-collapse: collapse;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: none;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(47, 93, 80, .16);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: .9rem;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
}

.section--muted {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: .7rem 0 0;
}

.section-head p {
  margin-top: 1rem;
  color: var(--body);
  font-size: 1.02rem;
}

.eyebrow {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--light {
  color: rgba(255, 255, 255, .7);
}

.lead-lg {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-light {
  background-color: #fff;
  border-color: #fff;
  color: var(--band);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .9);
}

.btn-light:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--band);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .9);
}

.btn-outline {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--accent);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.15rem 0;
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background-color: rgba(251, 250, 247, .94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: .7rem 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.is-scrolled .brand,
body.nav-open .brand {
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.1rem);
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: .15rem 0;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.is-scrolled .nav-links a,
body.nav-open .nav-links a {
  color: var(--body);
}

.is-scrolled .nav-links a:hover,
.is-scrolled .nav-links a.is-active,
body.nav-open .nav-links a:hover,
body.nav-open .nav-links a.is-active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background-color: #fff;
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}

.is-scrolled .nav-toggle,
body.nav-open .nav-toggle {
  border-color: var(--line);
}

.is-scrolled .nav-toggle span,
body.nav-open .nav-toggle span {
  background-color: var(--ink);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 92vh, 940px);
  padding: clamp(7rem, 14vh, 9rem) 0 clamp(3rem, 7vh, 4.5rem);
  overflow: hidden;
  background-color: var(--band);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(9, 15, 13, .62) 0%, rgba(9, 15, 13, .28) 38%, rgba(9, 15, 13, .55) 72%, rgba(9, 15, 13, .9) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 42rem;
}

.hero h1 {
  margin: .9rem 0 1.1rem;
  font-size: clamp(2.9rem, 7.2vw, 5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.hero-role {
  max-width: 35rem;
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .87);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  font-size: .82rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .68);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy h2 {
  margin: .7rem 0 1.4rem;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
}

.about-copy p {
  font-size: 1.02rem;
}

.about-copy .lead-lg {
  margin-bottom: 1.35rem;
  font-size: clamp(1.1rem, 2.1vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink);
}

.fact-card {
  padding: 1.9rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.fact-title {
  margin-bottom: 1.35rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-list {
  margin: 0 0 1.6rem;
}

.fact-list > div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: .5rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
}

.fact-list dd {
  margin: 0;
  font-size: .9rem;
  color: var(--ink);
}

.chips-label {
  margin-bottom: .7rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.chip {
  padding: .28rem .68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg);
  font-size: .78rem;
  color: var(--body);
}

/* ---------- Capability cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.cap-card {
  padding: 1.85rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: #d3ddd6;
  box-shadow: var(--shadow-lg);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background-color: var(--accent-soft);
  color: var(--accent);
}

.icon-badge svg {
  width: 21px;
  height: 21px;
}

.cap-card h3 {
  margin-bottom: .55rem;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

.cap-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.68;
  color: var(--body);
}

/* ---------- Statement band ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background-color: var(--band);
  color: #fff;
}

.band::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -8%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(74, 130, 108, .32), rgba(17, 32, 27, 0) 62%);
  pointer-events: none;
}

.band .wrap {
  position: relative;
  z-index: 1;
}

.band blockquote {
  max-width: 46rem;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.32;
  letter-spacing: -.015em;
  color: #fff;
}

.band-note {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .62);
}

/* ---------- Projects ---------- */
.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem 2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}

.project h3 {
  margin-bottom: .45rem;
  font-size: 1.32rem;
}

.project h3 a {
  color: var(--ink);
}

.project h3 a:hover {
  color: var(--accent);
}

.project p {
  max-width: 46rem;
  margin: 0;
  font-size: .98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .9rem;
}

.tags li {
  padding: .2rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
  padding-top: .3rem;
  text-align: right;
  white-space: nowrap;
}

.status {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .45rem;
  border-radius: 50%;
  background-color: var(--accent);
  vertical-align: middle;
}

.project-meta .link-arrow {
  font-size: .85rem;
}

/* ---------- Writing ---------- */
.feature {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-meta span[aria-hidden] {
  color: var(--line);
}

.feature h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
}

.feature h3 a {
  color: var(--ink);
}

.feature h3 a:hover {
  color: var(--accent);
}

.feature p {
  max-width: 46rem;
  margin-bottom: 1.25rem;
  color: var(--body);
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(3.75rem, 8vw, 6rem) 0;
  background-color: var(--band);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact h2 {
  margin: .7rem 0 1.1rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 300;
  color: #fff;
}

.contact-lead {
  max-width: 32rem;
  margin-bottom: 1.8rem;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .74);
}

.contact-list {
  display: grid;
  gap: 1.15rem;
  padding-top: .4rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .98rem;
  color: rgba(255, 255, 255, .85);
}

.contact-list .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #a8c9b8;
}

.contact-list .ico svg {
  width: 15px;
  height: 15px;
}

.contact-list a {
  color: #fff;
  border-bottom: 1px solid transparent;
}

.contact-list a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .5);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.social-links a {
  display: inline-block;
  padding: .35rem 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.social-links a:hover {
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.6rem 0;
  background-color: var(--band);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: rgba(255, 255, 255, .75);
}

.footer-inner a:hover {
  color: #fff;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(17, 32, 27, .82);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background-color: var(--band);
  color: #fff;
}

.to-top svg {
  width: 16px;
  height: 16px;
}


/* ---------- Article page ---------- */
.page-head {
  padding: clamp(7rem, 15vh, 9.5rem) 0 clamp(2rem, 5vw, 3rem);
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.page-head .eyebrow {
  margin-top: 1.6rem;
}

.page-head h1 {
  max-width: 46rem;
  margin: .8rem 0 1.1rem;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -.025em;
}

.page-meta {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.back-link:hover {
  color: var(--accent);
}

.article {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.article-wrap {
  max-width: 46rem;
}

.article .lead-lg {
  margin-bottom: 2rem;
  color: var(--ink);
}

.article h2 {
  margin: 2.6rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
}

.article h3 {
  margin: 1.9rem 0 .6rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.article p {
  font-size: 1rem;
  line-height: 1.78;
}

.article .lead-lg {
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.article ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.article ul li {
  margin-bottom: .45rem;
}

.article a {
  border-bottom: 1px solid rgba(47, 93, 80, .35);
}

.article a:hover {
  border-bottom-color: var(--accent);
}

.article .price {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .8rem;
  font-size: .88rem;
  font-weight: 600;
}

.buy-link svg {
  width: 13px;
  height: 13px;
}

.callout {
  margin: 1.4rem 0;
  padding: 1.1rem 1.3rem;
  background-color: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .94rem;
  color: var(--ink);
}

.note {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Tables ---------- */
.table-wrap {
  margin: 1.4rem 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
}

.spec-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: .92rem;
}

.spec-table th,
.spec-table td {
  padding: .8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background-color: var(--bg);
}

.spec-table tr:last-child td,
.spec-table tr:last-child th {
  border-bottom: 0;
}

.spec-table td.num,
.spec-table th.num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.spec-table tr.total td {
  font-weight: 600;
  color: var(--ink);
  background-color: var(--bg);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-card {
    max-width: 34rem;
  }

  .project {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .project-meta {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    text-align: left;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 1.25rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + .85rem);
    left: 0;
    right: 0;
    display: none;
    padding: .55rem;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 28px 60px -34px rgba(17, 32, 27, .7);
  }

  body.nav-open .primary-nav {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: .62rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    color: var(--ink);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    background-color: var(--accent-soft);
    color: var(--accent-dark);
  }

  .hero {
    min-height: clamp(520px, 88vh, 800px);
    align-items: flex-end;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }
}

@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-meta {
    font-size: .78rem;
  }

  .fact-card {
    padding: 1.4rem;
  }

  .fact-list > div {
    grid-template-columns: 4.8rem minmax(0, 1fr);
  }

  .cap-card,
  .feature {
    padding: 1.35rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: .9rem;
    bottom: .9rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .to-top,
  .hero-actions,
  .social-links {
    display: none !important;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: none;
  }

  .hero-bg,
  .hero-overlay {
    display: none;
  }

  .hero h1,
  .hero-role,
  .hero-meta {
    color: #000;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ---------- Small additions ---------- */
.hero-meta a {
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.hero-meta a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .7);
}

/* Header variant for pages that start on a light background. */
.site-header--solid,
body.nav-open .site-header--solid {
  background-color: rgba(251, 250, 247, .94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: .7rem 0;
}

.site-header--solid .brand {
  color: var(--ink);
}

.site-header--solid .nav-links a {
  color: var(--body);
}

.site-header--solid .nav-links a:hover,
.site-header--solid .nav-links a.is-active {
  color: var(--ink);
}

.site-header--solid .nav-toggle {
  border-color: var(--line);
}

.site-header--solid .nav-toggle span {
  background-color: var(--ink);
}

.fact-list a {
  border-bottom: 1px solid rgba(47, 93, 80, .3);
}

.fact-list a:hover {
  border-bottom-color: var(--accent);
}

