/* Illuminator Film Service — illuminator.film
   Layout mirrors the Figma "Web" frames: a 1632px black site; the page around it is black too (no border).
   Every size is written in design pixels and multiplied by --s, so the page
   scales as one piece on desktop; below 760px it switches to a single column. */

/* Roobert is a licensed font (Displaay). Put your web licence files in /assets/fonts/
   (Roobert-Bold.woff2, Roobert-SemiBold.woff2) and they are used automatically;
   until then the self-hosted Hanken Grotesk (open licence) stands in.
   Fonts are self-hosted on purpose: loading Google Fonts from Google's servers
   is a GDPR problem in Germany. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roobert";
  src: url("fonts/Roobert-Bold.woff2") format("woff2"), url("fonts/Roobert-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roobert";
  src: url("fonts/Roobert-SemiBold.woff2") format("woff2"), url("fonts/Roobert-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --fg: #F7F7F7;      /* text, logo, icons */
  --site: #000;       /* site panel */
  --page: #000;       /* page around the panel: same black, so no visible border */
  --s: calc(min(85vw, 1632px) / 1632);   /* 1 design px */
  --col: calc(644 * var(--s));           /* x of the right column */
  --pad: calc(18 * var(--s));            /* site side padding */
  --font: "Roobert", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); }
body {
  background: var(--page);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
img { display: block; max-width: 100%; }

.site {
  width: min(85vw, 1632px);
  margin: calc(55 * var(--s)) auto calc(58 * var(--s));
  background: var(--site);
  overflow: hidden;
}

/* type */
.t-logo  { font-size: calc(67.2 * var(--s)); line-height: 1; letter-spacing: -0.02em; }
.t-head  { font-size: calc(37.8 * var(--s)); line-height: calc(40.5 * var(--s)); }
.t-body  { font-size: calc(22.1 * var(--s)); line-height: calc(21.5 * var(--s)); font-weight: 600; }
.t-small { font-size: calc(21.2 * var(--s)); line-height: calc(22 * var(--s)); font-weight: 600; }

/* header */
.header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(14 * var(--s)) calc(16 * var(--s)) 0 calc(15 * var(--s));
}
.header .mark { width: calc(50 * var(--s)); margin-top: calc(3 * var(--s)); }

/* two-column rows: left = tagline, right = content at x 644 */
.row { display: grid; grid-template-columns: var(--col) 1fr; }
.row > .right { padding-right: var(--pad); }
.row > .left  { padding-left: var(--pad); }

.intro    { margin-top: calc(66 * var(--s)); }
.intro .right { max-width: calc(880 * var(--s)); box-sizing: content-box; }
.lead-row { margin-top: calc(93 * var(--s)); align-items: end; }
.tagline  { padding-bottom: calc(3 * var(--s)); }

/* home hero */
.hero {
  position: relative;
  margin: calc(22 * var(--s)) var(--pad) 0 calc(19 * var(--s));
  aspect-ratio: 1595 / 720;
  background: #1e1e1e;
}
.hero img.photo { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-mark {
  position: absolute;
  left: calc((644 - 19) * var(--s));
  top: calc(177 * var(--s));
  width: calc(344 * var(--s));
}

/* footer */
.footer {
  display: grid; grid-template-columns: var(--col) 1fr auto; align-items: center;
  padding: calc(31 * var(--s)) calc(19 * var(--s)) calc(25 * var(--s)) 0;
}
.footer .copy { grid-column: 2; }
.footer .social { width: calc(50 * var(--s)); display: block; }
.footer .social svg { width: 100%; height: auto; display: block; }

/* contacts */
.contacts { margin-top: calc(40 * var(--s)); }
.contacts p + p { margin-top: calc(40.5 * var(--s)); }
.contacts a { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.contacts a[href^="tel:"] { text-decoration: none; }
.contacts-tag { margin-top: calc(88 * var(--s)); }
.wide-photo {
  margin: calc(325 * var(--s)) var(--pad) 0 calc(19 * var(--s));
  aspect-ratio: 1594 / 731;
  background: #c8c8c8;
}
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

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

/* phones and narrow tablets: one column, readable fixed sizes */
@media (max-width: 760px) {
  :root { --s: 1px; }
  .site { width: auto; margin: 12px 16px 16px; }
  .t-logo  { font-size: 40px; }
  .t-head  { font-size: 22px; line-height: 25px; }
  .t-body  { font-size: 14px; line-height: 15px; }
  .t-small { font-size: 13px; line-height: 15px; }
  .header { padding: 12px 14px 0; }
  .header .mark { width: 34px; margin-top: 2px; }
  .row { grid-template-columns: 1fr; }
  .row > .left, .row > .right { padding: 0 14px; }
  .intro { margin-top: 44px; }
  .lead-row { margin-top: 36px; gap: 28px; }
  .lead-row .left { order: 2; }
  .hero { margin: 16px 14px 0; aspect-ratio: 4 / 3; }
  .hero .hero-mark { left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%); }
  .footer { grid-template-columns: 1fr auto; padding: 18px 14px; gap: 12px; }
  .footer .copy { grid-column: 1; }
  .footer .social { width: 34px; }
  .contacts { margin-top: 36px; }
  .contacts p + p { margin-top: 22px; }
  .contacts a { word-break: break-word; }
  .contacts-tag { margin-top: 36px; }
  .wide-photo { margin: 40px 14px 0; aspect-ratio: 4 / 3; }
}
