/* Lloyd's Ventures — American manufacturing heritage on an aged flag canvas */

:root {
  --bg: #ebe1c9;             /* unbleached canvas — aged cotton */
  --paper: #f1e9d4;          /* lighter canvas */
  --paper-2: #ddd0ad;        /* shadow */
  --ink: #14110b;            /* warm deep ink */
  --ink-soft: #2a241a;
  --muted: #756851;          /* warm gray-brown */
  --rule: #b8a883;
  --rule-light: #d1c19c;
  --rust: #a3382f;           /* oxidized factory red */
  --rust-deep: #7d2820;
  --navy: #233351;           /* faded flag blue */
  --navy-deep: #161f33;
  --max: 1080px;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Old Standard TT', 'Crimson Text', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Roboto Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === Canvas / cotton fabric — base texture only === */
body {
  background-color: var(--bg);
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    /* fine cotton fiber grain */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 0 0.03  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    /* coarser weave threads */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='n'><feTurbulence type='turbulence' baseFrequency='0.045' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    /* subtle warm center bleach */
    radial-gradient(ellipse 80% 60% at 50% 28%, rgba(252,246,228,0.28), transparent 80%);
  background-size: 280px 280px, 420px 420px, 100% 100%;
  background-repeat: repeat, repeat, no-repeat;
}
body::after { content: none; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Header — nameplate strip */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(241, 233, 212, 0.7);
  backdrop-filter: blur(2px);
  position: relative;
  z-index: 2;
}
.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-header .brand-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.site-header .stamps {
  display: flex; justify-content: flex-end; gap: 18px;
  color: var(--muted); font-weight: 500;
}
.site-header .stamps strong { font-weight: 500; }
.site-header .stamps .red { color: var(--rust); }
.site-header .stamps .blue { color: var(--navy); }

/* Hero */
.hero {
  padding: 112px 0 80px;
  position: relative;
  z-index: 1;
}
.hero .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  display: flex; align-items: center; gap: 14px;
}
.hero .kicker::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--rust);
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(72px, 13vw, 184px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.tagline {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 44ch;
  font-weight: 400;
}
.tagline em.red { color: var(--rust); font-style: italic; }
.tagline em.blue { color: var(--navy); font-style: italic; }

/* Section header — manufacturing parts catalog */
.section-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 0 0 28px;
}
.section-mark.center { justify-content: center; grid-template-columns: auto auto; }
.section-mark .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--rust);
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 6px 12px;
  border: 1px solid var(--rust);
  background: var(--paper);
}
.section-mark.blue-mark .num {
  color: var(--navy);
  border-color: var(--navy);
}
.section-mark .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* I — What we make */
.what {
  padding: 56px 0 80px;
  border-top: 2px solid var(--ink);
  position: relative;
}
.what::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 80px; height: 2px;
  background: var(--rust);
}
.what-line {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
  font-weight: 500;
  text-transform: uppercase;
}
.what-line em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--rust);
  letter-spacing: -0.01em;
}
.what-divisions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--rule);
}
.what-divisions > div {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--rule);
}
.what-divisions > div:last-child { border-right: 0; padding-right: 0; }
.what-divisions > div:not(:first-child) { padding-left: 24px; }
.what-divisions .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 6px;
}
.what-divisions .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

/* II — Standard of work */
.credo {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  position: relative;
}
.credo::before {
  content: '';
  position: absolute;
  top: -1px; right: 0;
  width: 80px; height: 2px;
  background: var(--navy);
}
.credo .lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.credo .lines > div {
  padding: 36px 24px;
  border-right: 1px solid var(--rule);
}
.credo .lines > div:last-child { border-right: 0; }
.credo .lines .mark {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 14px;
}
.credo .lines .text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

/* III — In the tradition of */
.tradition {
  padding: 88px 0 96px;
  border-top: 2px solid var(--ink);
  text-align: center;
  position: relative;
}
.tradition::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 2px;
  background: var(--rust);
}
.tradition .section-mark { justify-content: center; grid-template-columns: auto auto; margin-bottom: 32px; }
.tradition .text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 auto;
  max-width: 36ch;
  font-weight: 400;
}
.tradition .text em.red { color: var(--rust); font-style: italic; }
.tradition .text em.blue { color: var(--navy); font-style: italic; }
.tradition .text strong {
  font-family: var(--display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.85em;
  color: var(--ink);
}

/* Footer stamp band */
.site-footer {
  padding: 40px 0 32px;
  border-top: 2px solid var(--ink);
  background: rgba(241,233,212,0.85);
  position: relative;
  z-index: 2;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -2px; right: 0;
  width: 80px; height: 2px;
  background: var(--navy);
}
.site-footer .stamp {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.site-footer .stamp .star { color: var(--rust); margin: 0 14px; font-weight: 500; }
.site-footer .stamp .star.blue { color: var(--navy); }
.site-footer .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero { padding: 72px 0 56px; }
  .site-header .container { grid-template-columns: 1fr; gap: 8px; }
  .site-header .stamps { justify-content: flex-start; }
  .what { padding: 48px 0 64px; }
  .what-divisions { grid-template-columns: 1fr; }
  .what-divisions > div { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .what-divisions > div:last-child { border-bottom: 0; }
  .what-divisions > div:not(:first-child) { padding-left: 0; }
  .credo { padding: 56px 0; }
  .credo .lines { grid-template-columns: 1fr; }
  .credo .lines > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .credo .lines > div:last-child { border-bottom: 0; }
  .tradition { padding: 64px 0 72px; }
}
