/* =========================================================
   tomek.com.au — styles
   The page is one tall "poster". Every size is a percentage
   of the poster width (cqw), measured from design-reference.png
   (941 x 1670). 1cqw = 1% of the poster width.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --red: #e10600;

  --font-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --poster-max: 640px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  align-items: flex-start;       /* poster keeps its own height */
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- The poster ---------- */
.hub {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--poster-max);
  background: var(--black);
  overflow: hidden;
  container-type: inline-size;   /* lets children size with cqw */
  padding-bottom: 10cqw;
  opacity: 0;
  transition: opacity 0.9s ease;
}

body.is-ready .hub {
  opacity: 1;
}

/* ---------- Textured edge ---------- */
.edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-top: 55.3cqw;          /* TOMEK top edge in the reference */
}

.hero__portrait-wrap {
  position: absolute;
  top: -1.6cqw;
  left: 19cqw;
  width: 62cqw;
  z-index: 0;
}

.hero__portrait {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.08);
}

/* Fade the portrait into pure black at the bottom and sides */
.hero__portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.85) 80%, #000 100%),
    linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 76%, #000 100%);
}

.hero__text {
  position: relative;
  z-index: 2;
}

.hero__name {
  font-size: 7.9cqw;
  font-weight: 300;
  letter-spacing: 0.62em;
  text-indent: 0.62em;          /* visually centres the letter-spaced word */
  line-height: 1;
}

.hero__role {
  margin-top: 2.1cqw;
  font-size: max(2.3cqw, 9px);
  font-weight: 400;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  line-height: 1;
}

.hero__tagline {
  margin-top: 1.7cqw;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 5.2cqw;
  line-height: 1.15;
}

.hero__tagline sup {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.32em;
  vertical-align: top;
  position: relative;
  top: 0.25em;
  margin-left: 0.1em;
}

/* ---------- Red dividers ---------- */
.divider {
  display: block;
  width: 13.3cqw;
  height: max(0.42cqw, 2px);
  margin: 2.6cqw auto 0;
  background: var(--red);
}

.divider--small {
  width: 6.4cqw;
  height: max(0.33cqw, 2px);
  margin: 1.6cqw auto 1.5cqw;
}

/* ---------- Link cards ---------- */
.links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.65cqw;
  row-gap: 2.55cqw;
  margin-top: 3.4cqw;
  padding: 0 11.5cqw;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 24cqw;
  padding: 2.2cqw 1.6cqw;
  border-radius: 2.3cqw;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, #202020 0%, #141414 40%, #0b0b0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1.2cqw 2.4cqw rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-0.3cqw);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1.6cqw 3cqw rgba(0, 0, 0, 0.8);
  outline: none;
}

.card__icon {
  display: block;
  width: 5.6cqw;
  height: 5.6cqw;
}

.card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  margin-top: 1.6cqw;
  font-size: max(2.9cqw, 11px);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  line-height: 1.3;
}

.card__subtitle {
  font-size: max(1.9cqw, 8.5px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  line-height: 1.45;
  color: #e8e8e8;
}

/* ---------- Coming-soon cards ---------- */
.card--soon {
  position: relative;
  cursor: default;
  pointer-events: none;
}

.card--soon:hover,
.card--soon:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1.2cqw 2.4cqw rgba(0, 0, 0, 0.7);
}

.card__soon {
  position: absolute;
  top: 1.1cqw;
  left: 0;
  right: 0;
  font-size: max(1.3cqw, 7px);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

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

/* ---------- Social icons ---------- */
.social {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6cqw;
  margin-top: 3.6cqw;
}

.social__link {
  display: block;
  width: 5cqw;
  height: 5cqw;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social__link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social__link:hover,
.social__link:focus-visible {
  transform: translateY(-0.3cqw);
  outline: none;
}

.social__sep {
  display: block;
  width: 1px;
  height: 6.4cqw;
  background: rgba(255, 255, 255, 0.55);
}

/* Filled parts of icons (play button, tube liquid, camera dot) */
.fill {
  fill: var(--white);
  stroke: none;
}

/* ---------- Bottom line ---------- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 3.4cqw;
}

.footer__line {
  display: block;
  width: 36.7cqw;
  height: max(0.3cqw, 2px);
  margin: 0 auto;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.55) 34.5%,
    transparent 34.5%,
    transparent 36%,
    var(--red) 36%,
    var(--red) 64%,
    transparent 64%,
    transparent 65.5%,
    rgba(255, 255, 255, 0.55) 65.5%,
    rgba(255, 255, 255, 0.55) 100%
  );
}


/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .hub,
  .card,
  .social__link {
    transition: none;
  }
}

/* =========================================================
   Mobile (phones up to 480px wide)
   Only legibility and breathing room change here; the desktop
   poster above is untouched.
   ========================================================= */
@media (max-width: 480px) {

  /* Slightly larger, more readable lettering */
  .hero__role {
    font-size: 10px;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
  }

  .card__title {
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-indent: 0.16em;
    line-height: 1.35;
    white-space: nowrap;      /* titles stay on their two lines */
  }

  .card__subtitle {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    line-height: 1.5;
  }

  .card__soon {
    top: 7px;
    font-size: 9px;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
    color: rgba(255, 255, 255, 0.58);
  }

  /* Cards: equal heights across every row, a touch more padding,
     and room above the icon on "coming soon" cards */
  .links {
    grid-auto-rows: 1fr;
    row-gap: 12px;
    column-gap: 12px;
  }

  .card {
    min-height: 0;
    padding: 14px 6px 13px;
  }

  .card--soon {
    padding-top: 21px;
  }

  .card__icon {
    width: 24px;
    height: 24px;
  }

  .card__title {
    margin-top: 7px;
  }

  .divider--small {
    margin: 7px auto 6px;
  }

  /* Social icons: bigger tap targets without changing the look */
  .social {
    gap: 22px;
    margin-top: 18px;
  }

  .social__link {
    width: 22px;
    height: 22px;
    padding: 10px;
    box-sizing: content-box;
  }

  .social__sep {
    height: 28px;
  }

  .footer {
    margin-top: 14px;
  }
}
