/* ΠΛΑΙΣΙΟ ΤΕΧΝΙΚΗ — site styles: engineering spec sheet
   Hairlines, numbered sections, monospaced labels, flat surfaces. No shadows, no rounded cards.
   Contrast (WCAG 2.2 AA):
   - ink #1C1C1C on paper #FAFAF7 16:1; label grey #5A5A5A on paper 6.6:1
   - orange is used for fills/markers only; text on orange is ink (6.9:1)
   - light orange #F7941D on ink 7.2:1 (footer, CTA band) */

:root {
  --ink: #1C1C1C;
  --paper: #FAFAF7;
  --white: #fff;
  --paper-2: #F1EFEA;
  --rule: #1C1C1C;
  --rule-soft: #D6D3CC;
  --label: #5A5A5A;
  --orange: #F7941D;
  --orange-deep: #EF5A24;
  --focus: var(--ink);
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--orange-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.on-dark { --focus: var(--orange); }
.hero, .page-hero, .section-dark { --focus: var(--ink); }
main { counter-reset: sec fig; }
main:focus { outline: none; }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; }

/* sheet frame: vertical hairlines down the page */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main .wrap { border-inline: 1px solid var(--rule-soft); }
@media (max-width: 40rem) { main .wrap { border-inline: 0; } }

/* monospaced labels */
.eyebrow, .facts li > span, .contact-list .sr-label, .site-footer h2, .map figcaption {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--label); margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: .6rem; height: .6rem; background: var(--orange); }
.on-dark .eyebrow { color: var(--label); }
.cta .eyebrow, .site-footer .eyebrow { color: #BDBDBD; }

/* numbered section headings: 01, 02, ... */
.section h2 { counter-increment: sec; }
.section h2::before {
  content: counter(sec, decimal-leading-zero);
  content: counter(sec, decimal-leading-zero) / "";
  display: block; margin-bottom: .9rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--label);
  padding-bottom: .5rem; border-bottom: 1px solid var(--rule); width: 3.5rem;
}
.section .reveal > .eyebrow + h2 { counter-increment: none; }
.section .reveal > .eyebrow + h2::before { display: none; }
.section .reveal > .eyebrow { counter-increment: sec; }
.section .reveal > .eyebrow::after { content: "/ " counter(sec, decimal-leading-zero); content: "/ " counter(sec, decimal-leading-zero) / ""; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--orange); color: var(--ink); font-weight: 700; padding: .75rem 1.25rem;
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .75rem; }
.brand { display: inline-flex; border-radius: 999px; }
.brand img { width: 150px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem;
  font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border-left: 1px solid var(--rule-soft);
}
.nav li:first-child a { border-left: 0; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); font-weight: 700; }
.nav .lang a { margin-left: .75rem; border: 1px solid var(--rule); }
.nav .lang a:hover { background: var(--ink); color: var(--white); }
.nav .lang svg { width: 1em; height: 1em; }
@media (max-width: 40rem) {
  .site-header { position: relative; }
  html { scroll-padding-top: 1rem; }
  .site-header .wrap { justify-content: center; }
  .nav ul { justify-content: center; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .7rem 1.3rem;
  font-weight: 700; text-decoration: none; border: 1px solid var(--rule);
  transition: background-color .15s, color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--orange); color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; }
.on-dark .btn-ghost { border-color: #8A8A8A; color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.cta .btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.cta .btn-primary:hover { background: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------------------------------------------------------------- hero (light, on graph paper) */
.hero {
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(28,28,28,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,28,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero .wrap {
  display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.hero-text { background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); }
.hero h1 span {
  /* marker highlight under the second line; text itself stays ink */
  background: linear-gradient(transparent 62%, var(--orange) 62%, var(--orange) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; margin: 0; }
.hero-media { position: relative; border: 1px solid var(--rule); background: var(--white); padding: 8px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9) contrast(1.04); }

/* figure tags, like drawing callouts */
.hero-media::after, .photo::after {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  background: var(--ink); color: var(--white); padding: .3rem .55rem;
}
.hero-media, .photo { counter-increment: fig; }
html[lang="el"] :is(.hero-media, .photo)::after { content: "ΕΙΚ. " counter(fig, decimal-leading-zero); content: "ΕΙΚ. " counter(fig, decimal-leading-zero) / ""; }
html[lang="en"] :is(.hero-media, .photo)::after { content: "FIG. " counter(fig, decimal-leading-zero); content: "FIG. " counter(fig, decimal-leading-zero) / ""; }

/* ---------------------------------------------------------------- facts as a spec table */
.facts { background: var(--white); border-bottom: 1px solid var(--rule); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .facts ul { grid-template-columns: repeat(3, 1fr); } }
.facts li {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem;
  padding: 1.5rem 1.25rem; border-top: 1px solid var(--rule-soft);
}
.facts li:first-child { border-top: 0; }
@media (min-width: 46rem) {
  .facts li { border-top: 0; border-left: 1px solid var(--rule-soft); }
  .facts li:first-child { border-left: 0; }
}
.facts li > span { color: var(--label); display: flex; align-items: center; gap: .5rem; }
.facts li > span::before { content: ""; width: .5rem; height: .5rem; background: var(--orange); flex-shrink: 0; }
.facts strong { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.facts .count { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: 0; border-bottom: 1px solid var(--rule); }
.section > .wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--paper-2); }
.lead { font-size: 1.15rem; }

/* cards: a ruled grid, numbered */
.cards {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--rule); background: var(--white);
  counter-reset: item;
}
@media (min-width: 44rem) { .cards-2, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; padding: 1.75rem 1.5rem 2rem; counter-increment: item;
  border-top: 1px solid var(--rule-soft); transition: background-color .15s;
}
.card:first-child { border-top: 0; }
@media (min-width: 44rem) {
  .card { border-top: 0; border-left: 1px solid var(--rule-soft); }
  .card:first-child { border-left: 0; }
  .cards-3 .card:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule-soft); }
}
@media (min-width: 64rem) { .cards-3 .card:nth-child(3) { border-left: 1px solid var(--rule-soft); border-top: 0; } }
.card::before {
  content: counter(item, upper-alpha) ".";
  content: counter(item, upper-alpha) "." / "";
  display: block; font-family: var(--mono); font-size: .78rem; color: var(--label); margin-bottom: 1.5rem;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--orange); transition: width .25s; }
.card:hover { background: #FFF8EE; }
.card:hover::after { width: 100%; }
.icon-tile { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--ink); }
.icon-tile .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.card p { margin: 0; color: #3A3A3A; }

/* split + photos */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.photo { position: relative; margin: 0; border: 1px solid var(--rule); background: var(--white); padding: 8px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.photo img.tall { aspect-ratio: 4 / 5; }
.photo.wide img { aspect-ratio: 21 / 9; }

/* certification list as a document table */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; border: 1px solid var(--rule); background: var(--white); }
.checklist li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: .9rem; align-items: start;
  padding: .9rem 1rem; border-top: 1px solid var(--rule-soft);
}
.checklist li:first-child { border-top: 0; }
.checklist svg { width: 1.4rem; height: 1.4rem; color: var(--ink); stroke-width: 1.75; }
.checklist svg circle { fill: var(--orange); stroke: var(--orange); }

/* ---------------------------------------------------------------- CTA: the drawing's title block */
.cta { background: var(--ink); color: var(--white); border-bottom: 1px solid var(--rule); }
.cta .wrap { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); border-inline-color: #3A3A3A; }
.cta h2 { margin: 0; }
.cta .btn-row { margin: 0; }
@media (min-width: 60rem) {
  .cta .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .cta .btn-row { justify-content: flex-end; flex-wrap: nowrap; }
}

/* ---------------------------------------------------------------- inner page header */
.page-hero {
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(28,28,28,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,28,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p:not(.eyebrow) { font-size: 1.15rem; margin: 0; }

/* ---------------------------------------------------------------- contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; border: 1px solid var(--rule); background: var(--white); }
.contact-row { grid-template-columns: 1fr; }
@media (min-width: 56rem) { .contact-row { grid-template-columns: repeat(3, 1fr); } }
.contact-list li + li { border-top: 1px solid var(--rule-soft); }
@media (min-width: 56rem) { .contact-row li + li { border-top: 0; border-left: 1px solid var(--rule-soft); } }
.contact-list a {
  display: flex; align-items: center; gap: 1rem; min-height: 80px; padding: 1.1rem 1.25rem;
  font-size: 1.15rem; font-weight: 700; text-decoration: none; transition: background-color .15s;
}
.contact-list a:hover { background: #FFF8EE; }
.contact-list svg { width: 26px; height: 26px; flex-shrink: 0; stroke-width: 1.5; }
.contact-list .sr-label { display: block; color: var(--label); font-weight: 500; margin-bottom: .15rem; }
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
address { font-style: normal; font-size: 1.15rem; }
.map figure { margin: 0; border: 1px solid var(--rule); background: var(--white); padding: 8px; }
.map img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.map figcaption { color: var(--label); margin-top: .5rem; text-transform: none; letter-spacing: .02em; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #DADADA; padding-block: 3rem 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; border: 1px solid #3A3A3A; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid > * { padding: 1.25rem 1.25rem 1.5rem; }
.footer-grid > * + * { border-top: 1px solid #3A3A3A; }
@media (min-width: 48rem) { .footer-grid > * + * { border-top: 0; border-left: 1px solid #3A3A3A; } }
.site-footer h2 { color: var(--orange); margin: 0 0 1rem; font-size: .78rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding-block: .3rem; }
.site-footer p { margin: 0; }
.footer-contact li { display: flex; align-items: center; gap: .65rem; }
.footer-contact svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; color: var(--orange); }
.site-footer .legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .03em; color: #A7A9AC;
}
.site-footer .credits a { color: var(--orange); }

/* ---------------------------------------------------------------- misc */
.js .reveal { opacity: 1; transform: none; } /* spec sheets don't animate in */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .btn, .nav .lang a { border: 1px solid ButtonText; } .hero h1 span { background: none; text-decoration: underline; } }
@media print { .site-header { position: static; } .site-header nav, .skip, .cta { display: none; } }
