/* AFTERLIGHT Works — Coming Soon (CS-01)
   Static page, native CSS, no JavaScript, no third-party resource. */

/* ---------------------------------------------------------------- fonts */
/* Barlow Condensed & Space Grotesk: SIL Open Font License 1.1 (see fonts/OFL-*.txt).
   Latin subset only: covers French accents, ’, © and general punctuation. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}

/* ---------------------------------------------------------------- tokens */
:root {
  --graphite: #141414;
  --graphite-deep: #0b0a09;
  --ivory: #f1eee9;
  --ivory-muted: #aea79e; /* 7.9:1 on graphite */
  --copper: #c18b69; /* 6.3:1 on graphite */
  --copper-light: #e2b393;

  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, sans-serif;
  --font-text: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: clamp(1.25rem, 4.6vw, 4.5rem);
  --pad-y: clamp(1.25rem, 4.2vh, 3rem);

  --title-size: clamp(2.75rem, min(16.4vw, 9.5svh), 5.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);

  /* Arc geometry (mobile / tablet): circle diameter and where its brightest,
     left-most point sits. */
  --arc-d: max(118vw, 26rem);
  --arc-x: 57vw;
  --arc-y: 21svh;
  --arc-room: 6svh; /* space between the arc's light and the text block */

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--graphite);
  color: var(--ivory);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

p,
h1 {
  margin: 0;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--copper);
  color: var(--graphite);
}

/* ---------------------------------------------------------------- atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 42%, transparent 35%, rgba(5, 4, 3, 0.55) 100%),
    var(--graphite);
}

/* Warm light pooling around the brightest point of the arc. */
.halo {
  position: absolute;
  left: var(--arc-x);
  top: var(--arc-y);
  width: calc(var(--arc-d) * 0.95);
  height: calc(var(--arc-d) * 0.95);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgba(193, 139, 105, 0.2),
    rgba(193, 139, 105, 0.08) 45%,
    rgba(193, 139, 105, 0.02) 75%,
    transparent
  );
}

.arc {
  position: absolute;
  left: var(--arc-x);
  top: calc(var(--arc-y) - var(--arc-d) / 2);
  width: var(--arc-d);
  height: var(--arc-d);
  overflow: visible;
  fill: none;
}

.arc__core {
  stroke-width: 1.4px;
  vector-effect: non-scaling-stroke;
}

.arc__glow {
  stroke-width: 14;
  opacity: 0.5;
}

.arc__scale {
  stroke-width: 7;
  stroke-dasharray: 0.6 9.4;
  opacity: 0.32;
}

/* Mobile: the top of the arc runs behind "Lyon / France", so it fades sooner. */
.arc__stop-top {
  stop-opacity: 0.12;
}

@media (min-width: 640px) {
  .arc__stop-top {
    stop-opacity: 0.5;
  }
}

/* Fine film grain, static. */
.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------------------------------------------------------------- layout */
.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-y) var(--pad-x);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.top__logo {
  width: clamp(9.5rem, 15vw, 14.5rem);
  height: auto;
}

.top__place,
.kicker,
.contact__label,
.foot {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.4;
}

.top__place {
  color: var(--ivory-muted);
  white-space: nowrap;
}

/* Mobile / tablet: the arc owns the upper part, the text sits low. */
.main {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
  padding-top: calc(var(--arc-y) + var(--arc-room));
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--copper);
}

.kicker::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.title {
  margin-top: clamp(1rem, 2.6vh, 1.75rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--title-size);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ivory);
}

.title__sentence,
.title__line {
  display: block;
}

.title__sentence--second {
  margin-top: 0.14em;
}

.title__dot {
  color: var(--copper);
}

.intro {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  max-width: 34rem;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  font-weight: 300;
  color: var(--ivory-muted);
}

.intro p + p {
  margin-top: 0.75em;
}

.intro__lead {
  color: var(--ivory);
  font-weight: 400;
}

.aside {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  padding-top: clamp(1.25rem, 3vh, 2rem);
  max-width: 34rem;
  border-top: 1px solid rgba(241, 238, 233, 0.14);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ivory-muted);
}

.contact {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__label {
  color: var(--copper);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.25rem;
  color: var(--ivory);
  text-decoration: none;
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.625rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
}

.contact__mail {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  background-image: linear-gradient(rgba(241, 238, 233, 0.35), rgba(241, 238, 233, 0.35));
  padding-bottom: 0.15em;
  transition: color 0.3s var(--ease), background-image 0.3s var(--ease);
}

.contact__arrow {
  flex: none;
  width: 1.4rem;
  height: auto;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease);
}

.contact__link:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (hover: hover) {
  .contact__link:hover .contact__mail {
    color: var(--copper-light);
    background-image: linear-gradient(var(--copper), var(--copper));
  }

  .contact__link:hover .contact__arrow {
    transform: translateX(4px);
  }
}

.foot {
  font-weight: 400;
  color: var(--ivory-muted);
  letter-spacing: 0.18em;
}

/* ---------------------------------------------------------------- tablet */
@media (min-width: 640px) {
  :root {
    --title-size: clamp(3rem, min(10.6vw, 8.8svh), 6.5rem);
    --arc-d: max(110vw, 46rem);
    --arc-x: 60vw;
    --arc-y: 19svh;
    --arc-room: 4svh;
  }
}

/* ---------------------------------------------------------------- desktop */
/* Immersive, asymmetric: text block on the left, vertically centred; the arc
   rises on the right, its brightest point level with the title. */
@media (min-width: 960px) {
  :root {
    --title-size: clamp(4rem, min(7.6vw, 11.2vh), 9.25rem);
    --arc-d: max(126vh, 58rem);
    --arc-x: 57.5vw;
    --arc-y: 50%;
  }

  .main {
    align-self: center;
    max-width: none;
    padding-top: clamp(1rem, 2.5vh, 2.5rem);
    padding-bottom: clamp(1rem, 2.5vh, 2.5rem);
  }

  .aside,
  .contact {
    margin-top: clamp(1rem, 2.4vh, 1.75rem);
  }

  .aside {
    padding-top: clamp(1rem, 2.4vh, 1.75rem);
  }

  .title__sentence--second {
    padding-left: 0.62em;
  }

  .intro,
  .aside,
  .contact {
    margin-left: calc(var(--title-size) * 0.62);
  }

  .intro,
  .aside {
    max-width: min(32rem, 40vw);
  }
}

/* Very wide screens: the whole typographic scale grows with the canvas
   (percentages, so a visitor's own font-size setting still applies). */
@media (min-width: 1920px) and (min-height: 960px) {
  html {
    font-size: 112.5%;
  }
}

@media (min-width: 2400px) and (min-height: 1200px) {
  html {
    font-size: 131.25%;
  }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .arc,
  .halo {
    animation: arc-in 2.4s var(--ease) both;
  }

  .halo {
    animation:
      arc-in 2.4s var(--ease) both,
      halo-breathe 9s ease-in-out 2.4s infinite alternate;
  }

  .arc__glow {
    animation: glow-breathe 9s ease-in-out 2.4s infinite alternate;
  }
}

@keyframes arc-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes halo-breathe {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.72;
  }
}

@keyframes glow-breathe {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 0.34;
  }
}

/* ---------------------------------------------------------------- forced colours / print */
@media (forced-colors: active) {
  .atmosphere {
    display: none;
  }

  .contact__link:focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .atmosphere {
    display: none;
  }

  body,
  .intro,
  .aside,
  .contact__link {
    background: #fff;
    color: #000;
  }

  .top__logo {
    filter: invert(1);
  }
}
