/* TAU Holding – stylesheet. No external resources. */

:root {
  --ink: #1E1E20;
  --ink-soft: #55555c;   /* 7.4:1 on white */
  --line: #e7e5e2;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --brand: #D53510;      /* 4.9:1 on white – OK for text, links and buttons */
  --brand-dark: #a92a0c;
  --max: 68rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 4.5rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }

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

h1, h2, h3 { line-height: 1.2; font-weight: 600; margin: 0 0 .75rem; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-serif); font-weight: 500; }
p { margin: 0 0 1rem; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: .75rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .5rem .9rem; z-index: 100;
  text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 47px; height: 56px; }

.nav ul { list-style: none; display: flex; gap: clamp(.9rem, 3vw, 2rem); margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .9rem; letter-spacing: .02em;
  padding: .35rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--brand); border-bottom-color: currentColor; }
@media (max-width: 26rem) {
  .nav ul { gap: .75rem; }
  .nav a { font-size: .82rem; }
}

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 10vw, 7rem) 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); max-width: 22ch; margin-bottom: 1.5rem; }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.3rem); color: var(--ink); max-width: 40rem; }
.muted { color: var(--ink-soft); max-width: 40rem; }

/* Hero */
.hero { padding: clamp(5rem, 16vw, 10rem) 0 clamp(4.5rem, 12vw, 8rem); }
.hero h1 { font-size: clamp(2.75rem, 9vw, 5.25rem); margin-bottom: 1.25rem; letter-spacing: -.02em; }
.hero .tagline { font-size: clamp(1.2rem, 2.8vw, 1.6rem); color: var(--ink-soft); max-width: 30ch; margin-bottom: 2.5rem; }
.rule { width: 3rem; height: 3px; background: var(--brand); border: 0; margin: 0 0 2rem; }

.button {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: .9rem 1.6rem; border-radius: 2px; font-weight: 500; letter-spacing: .02em;
  transition: background-color .15s ease;
}
.button:hover { background: var(--brand-dark); color: #fff; }

/* Approach */
.columns { display: grid; gap: 2.5rem; margin-top: 3rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .columns { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.columns li { border-top: 2px solid var(--brand); padding-top: 1.5rem; }
.columns .num { font-size: .8rem; color: var(--brand); font-weight: 600; letter-spacing: .1em; display: block; margin-bottom: .75rem; }
.columns h3 { font-size: 1.2rem; }
.columns p { color: var(--ink-soft); margin: 0; }

/* Criteria */
.criteria { background: var(--bg-soft); }
.criteria blockquote {
  margin: 2rem 0 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--brand);
  font-family: var(--font-serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.5; max-width: 44rem;
}

/* Portfolio */
.grid { display: grid; gap: 1.5rem; margin-top: 3rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); padding: 0; list-style: none; }
.card { border: 1px solid var(--line); padding: 1.75rem; background: #fff; }
.card img { height: 48px; width: auto; margin-bottom: 1.25rem; object-fit: contain; }
.card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Contact */
.contact-form { max-width: 40rem; margin: 2.5rem 0 3rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.optional { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #b9b6b1; border-radius: 2px; padding: .75rem .85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form-note { font-size: .875rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
button.button { border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.linkedin { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.linkedin svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .875rem; color: var(--ink-soft); }
.site-footer .container { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .site-footer .container { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--brand); }
.copy { grid-column: 1 / -1; }

/* ---------- Privacy page ---------- */
.legal { padding: clamp(3rem, 8vw, 5rem) 0; }
.legal .container { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: .5rem; }
.legal h2 { font-family: var(--font); font-weight: 600; font-size: 1.15rem; margin: 2.5rem 0 .75rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.back { display: inline-block; margin-bottom: 2rem; font-size: .9rem; }
.updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2.5rem; }
