/* ═══════════════════════════════════════════════════════════════
   TORSTEN ADVISORY — Architectural Draughting
   v8 — May 2026
   Buyer-only positioning. Small, sustainable practice.
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200;0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper:      #0a0d10;
  --paper-2:    #0e1216;
  --paper-3:    #11161b;
  --ink:        #e6ebef;
  --ink-soft:   #b6c0c8;
  --ink-mute:   #7c8892;
  --ink-faint:  #4a545d;
  --ink-ghost:  #2a3138;

  --rule:       rgba(230,235,239,.08);
  --rule-2:     rgba(230,235,239,.14);
  --rule-3:     rgba(230,235,239,.22);

  --steel:      #4a7ea3;
  --steel-l:    #6c9ec1;
  --steel-xl:   #a5c5dd;
  --steel-deep: #2c4d68;

  --cream:      #d8c8a8;   /* warm draughting accent for numerals */

  --serif:      'Newsreader', 'Times New Roman', serif;
  --sans:       'Inter Tight', system-ui, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, monospace;

  --max:        1240px;
  --gutter:     40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'ss02';
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fine grid texture overlaid on the entire page — like draughting paper */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,126,163,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,126,163,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 1;
}
main, nav, footer { position: relative; z-index: 2; }

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */

h1, h2, h3, h4, blockquote {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

p { color: var(--ink-soft); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.coord {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-transform: uppercase;
}

.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--steel-xl);
}

/* ── DRAUGHTING MARKS — RULES, CORNERS, TICKS ─────────────── */

.rule-h { height: 1px; background: var(--rule); border: 0; }
.rule-h-strong { height: 1px; background: var(--rule-2); border: 0; }

/* Small cross-tick used at intersections */
.tick {
  position: absolute;
  width: 10px; height: 10px;
  pointer-events: none;
}
.tick::before, .tick::after {
  content: '';
  position: absolute;
  background: var(--steel);
  opacity: .55;
}
.tick::before { left: 0; right: 0; top: 50%; height: 1px; }
.tick::after  { top: 0; bottom: 0; left: 50%; width: 1px; }

/* Corner brackets, used on plates / panels */
.corners { position: relative; }
.corners::before,
.corners::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--steel);
  opacity: .45;
}
.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corners::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ── NAV ──────────────────────────────────────────────────── */

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,13,16,.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 48px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 34px; height: 34px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand-wordmark { color: var(--ink); }

.nav-links {
  display: flex; gap: 4px; list-style: none;
  justify-content: center;
}
.nav-links a {
  display: block;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--steel-xl);
  border-color: var(--rule-2);
}

.nav-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  white-space: nowrap;
}
.nav-meta .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--steel-l);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* ── BUTTONS ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.btn::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--steel);
  left: -3px; top: -3px;
}
.btn::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--steel);
  right: -3px; bottom: -3px;
}
.btn:hover {
  border-color: var(--steel-l);
  color: var(--steel-xl);
  background: rgba(74,126,163,.06);
}
.btn .arrow { font-family: var(--serif); font-size: 18px; line-height: 1; transform: translateY(-1px); }

.btn-primary {
  background: var(--steel);
  color: #fff;
  border-color: var(--steel);
}
.btn-primary::before, .btn-primary::after { background: var(--cream); }
.btn-primary:hover {
  background: var(--steel-l);
  border-color: var(--steel-l);
  color: #fff;
}

/* ── SECTION SPACING ──────────────────────────────────────── */

.section { padding: 96px 0; position: relative; }
.section-lg { padding: 120px 0; position: relative; }

/* ── PAGE HEADER — "PLATE" STYLE ──────────────────────────── */

.plate-header {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.plate-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.plate-meta-left,
.plate-meta-right {
  display: flex;
  gap: 32px;
}
.plate-meta-item .lbl {
  display: block;
  color: var(--steel);
  margin-bottom: 4px;
  font-size: 9.5px;
}
.plate-meta-item .val {
  color: var(--ink-soft);
  font-size: 11px;
}

.plate-title {
  font-size: clamp(56px, 9vw, 124px);
  font-weight: 200;
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.plate-title em { font-style: italic; color: var(--steel-xl); font-weight: 300; }

.plate-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 32px;
}

/* ── FIGURE / DIAGRAM PLATES ──────────────────────────────── */

.plate {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 32px;
  position: relative;
}
.plate-label {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.plate-label-r {
  position: absolute;
  bottom: 12px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── PULL QUOTE ───────────────────────────────────────────── */

.pull {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 88px 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(74,126,163,.04) 50%,
    transparent 100%);
}
.pull-inner {
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.pull blockquote {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 200;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.pull blockquote em {
  font-style: italic;
  color: var(--steel-xl);
  font-weight: 300;
}
.pull cite {
  display: block;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-style: normal;
}

/* ── FOOTER ───────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule-2);
  padding: 56px 0 40px;
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}
.foot-grid p,
.foot-grid li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a:hover { color: var(--steel-xl); }
.foot-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 14px;
}
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── FADE ANIMATION ───────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: riseIn .8s ease forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .27s; }
.d4 { animation-delay: .39s; }
.d5 { animation-delay: .51s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  nav { position: sticky; top: 0; }
  .nav-inner {
    height: auto;
    min-height: 72px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: stretch;
  }
  .brand {
    width: 100%;
    justify-content: flex-start;
  }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: 12px; letter-spacing: 0.18em; }
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 6px 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex: 0 0 auto; }
  .nav-links a {
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
    border-color: var(--rule);
    background: rgba(230,235,239,.025);
  }
  .nav-meta { display: none; }
  .plate-meta { flex-direction: column; gap: 16px; }
  .plate-meta-left, .plate-meta-right { gap: 20px; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .section, .section-lg { padding: 72px 0; }
}


/* Added site imagery */
.feature-visual { padding: 88px 0; border-top: 1px solid var(--rule); }
.feature-visual.compact { padding: 80px 0 96px; }
.feature-visual-head { max-width: 760px; margin-bottom: 32px; }
.feature-visual-head h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); font-weight: 300; line-height: 1.06; color: var(--ink); letter-spacing: -0.02em; margin-top: 14px; }
.feature-visual-head h2 em { font-style: italic; color: var(--steel-xl); }
.feature-visual-head p { margin-top: 18px; font-size: 18px; line-height: 1.82; color: var(--ink-soft); }
.figure-frame { border: 1px solid var(--rule-2); background: var(--paper-2); padding: 18px; position: relative; }
.figure-frame img { width: 100%; display: block; border: 1px solid rgba(230,235,239,.08); }
.figure-caption { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.founder-feature { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.founder-grid { display: grid; grid-template-columns: 360px 1fr; gap: 72px; align-items: start; }
.founder-portrait-wrap { border: 1px solid var(--rule-2); background: var(--paper-2); padding: 18px; }
.founder-portrait-wrap img { width: 100%; display: block; }
.founder-copy h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); font-weight: 300; line-height: 1.06; color: var(--ink); letter-spacing: -0.02em; margin-top: 14px; }
.founder-copy h2 em { font-style: italic; color: var(--steel-xl); }
.founder-copy p { margin-top: 18px; font-size: 18px; line-height: 1.82; color: var(--ink-soft); }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; gap: 28px; } .feature-visual { padding: 64px 0; } }


/* Final content-size refinement */
main p {
  font-size: 18px;
  line-height: 1.84;
}
.param-cell p,
.ps-cell p,
.etym-side p,
.component-row .c-desc,
.card-note p,
.figure-caption {
  font-size: 16px;
}
.index-desc,
.plate-body-right p,
.body-intro-right p,
.elevation-head p,
.arc-step-content p,
.closing-head p,
.qual-section .lead,
.card-body > p {
  font-size: 18px;
}
footer p { font-size: 16px; }

/* Privacy page */
.privacy-page {
  padding: 96px 0 120px;
}
.privacy-layout {
  max-width: 860px;
  margin: 0 auto;
}
.privacy-toc {
  margin: 48px 0 72px;
  padding: 28px 32px;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
}
.privacy-toc .toc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}
.privacy-toc ol {
  list-style: none;
  columns: 2;
  column-gap: 48px;
}
.privacy-toc li {
  break-inside: avoid;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}
.privacy-section {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.privacy-section:first-of-type { border-top: 0; }
.privacy-section .section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.privacy-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 22px;
}
.privacy-box,
.privacy-card {
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  padding: 24px 28px;
  margin: 24px 0;
}
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.privacy-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-2);
}
.privacy-table td {
  color: var(--ink-soft);
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.65;
}
.privacy-table tr:last-child td { border-bottom: 0; }
.privacy-table a,
.privacy-card a,
.privacy-section a {
  color: var(--steel-xl);
  border-bottom: 1px solid rgba(165,197,221,.35);
}
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-2);
  border: 1px solid var(--rule-2);
  margin: 24px 0;
}
.right-item {
  background: var(--paper-2);
  padding: 20px 22px;
}
.right-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 8px;
}
.right-desc {
  font-size: 15px;
  margin: 0;
}
@media (max-width: 760px) {
  .privacy-toc ol { columns: 1; }
  .rights-grid { grid-template-columns: 1fr; }
}




/* Mobile privacy page improvements */
@media (max-width: 760px) {
  .privacy-page { padding: 64px 0 88px; }
  .privacy-layout { max-width: 100%; }
  .privacy-toc {
    margin: 32px 0 48px;
    padding: 22px 20px;
  }
  .privacy-toc ol {
    columns: 1;
    padding-left: 0;
  }
  .privacy-toc li {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .privacy-section {
    margin-top: 44px;
    padding-top: 36px;
  }
  .privacy-section h2 {
    font-size: 28px;
    line-height: 1.12;
  }
  .privacy-box,
  .privacy-card {
    padding: 22px 20px;
  }
  .privacy-table,
  .privacy-table thead,
  .privacy-table tbody,
  .privacy-table tr,
  .privacy-table th,
  .privacy-table td {
    display: block;
    width: 100%;
  }
  .privacy-table {
    border: 0;
    margin: 22px 0 30px;
  }
  .privacy-table thead { display: none; }
  .privacy-table tr {
    border: 1px solid var(--rule-2);
    background: var(--paper-2);
    margin-bottom: 16px;
    padding: 14px 16px;
  }
  .privacy-table td {
    border: 0;
    padding: 10px 0;
    white-space: normal;
    font-size: 16px;
    line-height: 1.6;
  }
  .privacy-table td:first-child {
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 6px;
    padding-bottom: 12px;
  }
  .rights-grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .right-item { padding: 18px 20px; }
  .right-title { font-size: 16px; }
  .right-desc { font-size: 15px; }
}

@media (max-width: 520px) {
  .plate-title { font-size: clamp(48px, 15vw, 72px); }
  .plate-sub { font-size: 18px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-links a { font-size: 9.5px; padding: 8px 10px; }
}
