/* ==========================================================================
   NoriaTec — holding page ("site en construction")
   Same tokens, type and technical-drawing voice as the main site
   (site/src/styles/global.css). Self-contained: no build, no third party.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: 'Sora Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/sora-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(fonts/dm-sans-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --fg: #0c1e2e;
  --fg-soft: #2b4053;
  --fg-muted: #566a7b;
  --line: rgba(12, 30, 46, 0.12);
  --line-strong: rgba(12, 30, 46, 0.26);
  --fg-wash: rgba(12, 30, 46, 0.055);

  --accent: #0e9aa7;
  --accent-text: #0a7480;
  --accent-wash: rgba(14, 154, 167, 0.1);
  --accent-line: rgba(14, 154, 167, 0.5);

  --font-display: 'Sora Variable', 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans Variable', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
p,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
}
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--accent-text);
  color: #fff;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--fg);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Top bar ---------- */
.top {
  position: relative;
}
.top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  color: var(--fg);
}
.logo__o {
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.035em 0 0.04em;
  transform: translateY(0.075em);
  transition: transform 0.9s var(--ease);
}
.brand:hover .logo__o {
  transform: translateY(0.075em) rotate(90deg);
}
.logo__tec {
  color: var(--accent-text);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg-soft);
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.lang-switch:hover {
  color: var(--fg);
  background: var(--fg-wash);
}

/* ---------- Main ---------- */
.hold {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: clamp(20px, 4vh, 72px) clamp(32px, 6vh, 84px);
}
.hold__grid {
  display: grid;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}
@media (min-width: 1000px) {
  .hold__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.hold__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.hold__title span {
  display: block;
}
/* Beside the drawing, the title is sized to its column so that each
   sentence holds on one line (the vw value is for browsers without
   container units). */
@media (min-width: 1000px) {
  .hold__copy {
    container-type: inline-size;
  }
  .hold__title {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-size: clamp(2.2rem, 8cqi, 4.2rem);
  }
}
.hold__lead {
  max-width: 56ch;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.hold__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: clamp(24px, 3vw, 34px) 0 0;
}
/* The address in plain text beside the button: one click selects all of
   it, so it can be copied into a webmail. */
.hold__mail {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--fg-soft);
  -webkit-user-select: all;
  user-select: all;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7em 1.3em;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent-text);
  color: #fff;
}
.btn:active {
  transform: translateY(1px);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- The wheel being assembled ---------- */
.sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 1000px) {
  .sheet {
    justify-self: end;
    max-width: clamp(320px, 64vh, 480px);
  }
}

.fig {
  width: 100%;
  height: auto;
}
/* Graph paper behind the wheel: thin and pale, so it reads as the sheet. */
.fig__grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.6;
}
.fig__guide {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.fig__bucket {
  fill: var(--fg);
}
.fig__bucket--pour,
.fig__hub {
  fill: var(--accent);
}
/* The two buckets still to be fitted: outlines only. */
.fig__slot {
  fill: none;
  stroke: var(--fg-muted);
  stroke-width: 1.3;
  stroke-dasharray: 4 3.5;
  vector-effect: non-scaling-stroke;
}
.fig__wheel {
  transform-origin: 0 0;
  animation: fig-turn 120s linear infinite;
}
.fig__water {
  fill: var(--accent-wash);
  stroke: var(--accent-line);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  animation: fig-drift 16s linear infinite;
}
.fig__water--back {
  stroke: none;
  animation-duration: 26s;
  animation-direction: reverse;
}
@keyframes fig-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fig-drift {
  to {
    transform: translateX(160px);
  }
}

.sheet__caption {
  padding: 13px 20px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
/* On a narrow phone the caption breaks at the "·", never inside a half. */
.sheet__caption span {
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
}
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-block: 22px 26px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--fg-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}
@media print {
  .lang-switch {
    display: none !important;
  }
}
