@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/font/SpaceGrotesk-Light.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f3f1eb;
  --surface: #e8e5dd;
  --text: #11120f;
  --muted: #65665f;
  --line: rgba(17, 18, 15, 0.18);
  --accent: #245c42;
  --header-bg: rgba(243, 241, 235, 0.82);
  --radius: 1.5rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 1500px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #10110f;
  --surface: #1a1c19;
  --text: #f1efe8;
  --muted: #a5a69f;
  --line: rgba(241, 239, 232, 0.18);
  --accent: #93d8ad;
  --header-bg: rgba(16, 17, 15, 0.82);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color .35s ease, color .35s ease;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 999;
  padding: .75rem 1rem; background: var(--text); color: var(--bg);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto 0;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 74px; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(16px); border-color: var(--line); }
.brand { font-size: 1.35rem; font-weight: 700; letter-spacing: -.08em; justify-self: start; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 2rem; font-size: .9rem; }
.site-nav a, .site-footer a, .text-link { position: relative; }
.site-nav a::after, .site-footer a::after, .text-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.25rem;
  height: 1px; background: currentColor; transition: right .25s ease;
}
.site-nav a:hover::after, .site-footer a:hover::after, .text-link:hover::after { right: 0; }
.theme-toggle { justify-self: end; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1.3rem; }
.menu-button { display: none; border: 0; background: transparent; color: inherit; cursor: pointer; }

.section { width: min(100%, var(--max-width)); margin-inline: auto; }
.section--padded { padding: clamp(6rem, 11vw, 11rem) var(--gutter); }
.eyebrow { margin: 0 0 1.4rem; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.hero {
  min-height: 100svh; padding: 8rem var(--gutter) 2.5rem;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center; gap: clamp(2rem, 6vw, 7rem); position: relative;
}
.hero__copy { padding-bottom: 4rem; }
.hero h1 { margin: 0; max-width: 14ch; font-size: clamp(3.3rem, 7.2vw, 8rem); line-height: .93; letter-spacing: -.07em; font-weight: 500; }
.hero__intro { max-width: 39rem; margin: 2rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--muted); }
.hero__actions { display: flex; align-items: center; gap: 1.75rem; margin-top: 2.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.25rem; border-radius: 999px; }
.button--primary { background: var(--text); color: var(--bg); transition: transform .2s ease; }
.button--primary:hover { transform: translateY(-2px); }
.text-link { font-size: .95rem; }
.hero__visual { height: min(78svh, 840px); min-height: 560px; position: relative; align-self: end; overflow: hidden; }
.hero__shape { position: absolute; inset: 10% 0 0 10%; border-radius: 50% 50% 3rem 3rem; background: var(--surface); }
.hero__visual picture, .hero__visual img { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.hero__visual img { object-fit: contain; object-position: bottom center; filter: contrast(1.03) saturate(.9); }
.hero__caption { position: absolute; right: 0; bottom: 1.5rem; margin: 0; padding-right: 1rem ; font-size: .7rem; text-align: right; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 2.5rem; display: flex; gap: .75rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }

.section-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: end; gap: 2rem; margin-bottom: 4rem; }
.section-heading h2, .about h2, .contact h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6.6rem); line-height: .98; letter-spacing: -.065em; font-weight: 500; }

.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-card--featured { grid-column: 1 / -1; min-height: 760px; }
.project-card__link { height: 100%; padding: 1.25rem; display: grid; grid-template-rows: auto auto 1fr; gap: 2rem; }
.project-card__topline { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.project-card__content { display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.project-card h3 { margin: 0 0 1rem; font-size: clamp(2.3rem, 4vw, 5rem); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.project-card p { max-width: 34rem; margin: 0; color: var(--muted); }
.project-card__arrow { font-size: 2rem; transition: transform .25s ease; }
.project-card:hover .project-card__arrow { transform: translate(4px, -4px); }
.project-card__visual { min-height: 330px; border-radius: calc(var(--radius) - .5rem); overflow: hidden; display: grid; place-items: center; }
.project-card--featured .project-card__visual { min-height: 470px; }
.project-card__visual--green { background: #386d4e; }
.project-card__visual--blue { background: #446b8d; }
.project-card__visual--orange { background: #ca6f35; }
.project-card__visual--red { background: #9a302b; }
.project-card__visual--white { background: #ffffff; }
.project-card__visual--black { background: #000000; }
.mockup { width: min(82%, 900px); aspect-ratio: 16/9; background: #f4f4ef; border-radius: .75rem; box-shadow: 0 30px 70px rgba(0,0,0,.23); overflow: hidden; transform: perspective(1000px) rotateX(4deg); }
.mockup__bar { height: 9%; background: #111; }
.mockup__body { height: 91%; display: grid; grid-template-columns: 22% 1fr; }
.mockup__aside { background: #dfdfd8; }
.mockup__cards { padding: 8%; display: grid; grid-template-columns: repeat(3,1fr); gap: 4%; }
.mockup__cards i { background: #d5e9db; border-radius: .4rem; }
.data-visual { width: 78%; height: 70%; display: flex; align-items: end; gap: 5%; }
.data-visual i { flex: 1; border-radius: 999px 999px .5rem .5rem; background: rgba(255,255,255,.78); }
.data-visual i:nth-child(1){height:35%}.data-visual i:nth-child(2){height:78%}.data-visual i:nth-child(3){height:52%}.data-visual i:nth-child(4){height:92%}.data-visual i:nth-child(5){height:64%}
.calendar-visual { width: 72%; aspect-ratio: 1.25; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: auto repeat(2,1fr); gap: .65rem; }
.calendar-visual b { grid-column: 1/-1; height: 2rem; background: rgba(255,255,255,.9); border-radius: .5rem; }
.calendar-visual i { background: rgba(255,255,255,.64); border-radius: .5rem; }
.editorial-visual { display: flex; align-items: baseline; color: white; font-size: clamp(8rem, 17vw, 16rem); line-height: 1; letter-spacing: -.1em; }

.about { border-top: 1px solid var(--line); }
.about__lead { max-width: 1050px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 5rem; }
.about__copy { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.about__copy p { margin: 0 0 1.5rem; }
.stats { margin: 0; display: grid; }
.stats div { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(2rem, 3.2vw, 4rem); letter-spacing: -.05em; }
.stats dd { margin: .5rem 0 0; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 5rem; }
.skills span { padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; }

.process { background: var(--text); color: var(--bg); max-width: none; }
.process > * { width: min(100%, var(--max-width)); margin-inline: auto; }
.process .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.process-list { list-style: none; padding: 0 var(--gutter); }
.process-list li { display: grid; grid-template-columns: 70px 1fr 1.2fr; gap: 2rem; align-items: baseline; padding: 2rem 0; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); }
.process-list span { font-size: .75rem; }
.process-list h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.5rem); font-weight: 400; letter-spacing: -.04em; }
.process-list p { margin: 0; color: color-mix(in srgb, var(--bg) 65%, transparent); }

.contact { min-height: 85svh; display: flex; flex-direction: column; justify-content: space-between; }
.contact__inner { max-width: 1150px; }
.contact__mail { display: inline-flex; gap: .8rem; margin-top: 3rem; font-size: clamp(1.2rem, 2vw, 2rem); border-bottom: 1px solid currentColor; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; margin-top: 8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; }
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 1.25rem; }
.site-footer > a:last-child { justify-self: end; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    min-height: 74px;
    background: var(--bg);
  }

  .menu-button {
    position: relative;
    z-index: 102;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }

  .menu-button__icon {
    position: relative;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s ease;
  }

  .menu-button__icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition:
      top 0.3s ease,
      transform 0.3s ease;
  }

  .menu-button[aria-expanded="true"] .menu-button__icon {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__icon::after {
    top: 0;
    transform: rotate(-90deg);
  }

  .theme-toggle,
  .brand {
    position: relative;
    z-index: 102;
  }

  .site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;

    min-height: 74px;
    background-color: var(--bg);
  }

  .site-nav {
    position: fixed;
    z-index: 999;

    top: 74px;
    right: 0;
    bottom: auto;
    left: 0;

    width: 100%;
    height: calc(100dvh - 74px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    gap: 1.25rem;
    padding: 2rem var(--gutter);

    background-color: var(--bg);
    color: var(--text);

    font-size: clamp(2.7rem, 12vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.055em;

    overflow-y: auto;
    overscroll-behavior: contain;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-12px);

    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 8rem;
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero__visual {
    min-height: 460px;
    height: 58svh;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: auto;
  }

  .project-card,
  .project-card--featured {
    min-height: 620px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-list li {
    grid-template-columns: 48px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > a:last-child {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  :root {
    --radius: 1rem;
  }

  .site-header {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
    height: calc(100dvh - 66px);

    justify-content: flex-start;

    padding:
      2rem
      var(--gutter)
      calc(2rem + env(safe-area-inset-bottom));

    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .site-nav a {
    padding: 0.75rem 0;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__visual {
    min-height: 390px;
  }

  .project-card__content {
    flex-direction: column;
  }

  .project-card__arrow {
    align-self: flex-end;
  }

  .project-card__visual,
  .project-card--featured .project-card__visual {
    min-height: 260px;
  }

  .project-card,
  .project-card--featured {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Sport */
.sport {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.sport__heading {
  max-width: 1120px;
}

.sport__heading h2 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 500;
}

.sport__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: clamp(4rem, 8vw, 8rem);
  align-items: start;
}

.sport__statement {
  max-width: 720px;
  font-size: clamp(1.35rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.sport__statement p {
  margin: 0 0 1.5rem;
}

.sport__statement p:last-child {
  color: var(--muted);
}

.sport__principles {
  border-top: 1px solid var(--line);
}

.sport__principles article {
  display: grid;
  grid-template-columns: 40px minmax(100px, .7fr) 1.3fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.sport__principles span,
.sport__label {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sport__principles h3,
.sport__highlights h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.035em;
}

.sport__principles p {
  margin: 0;
  color: var(--muted);
}

.sport__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sport__highlights article {
  min-height: 300px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.sport__highlights article:last-child {
  border-right: 0;
}

.sport__highlights h3 {
  margin-top: auto;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.sport__highlights article > p:last-child {
  max-width: 28rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.sport__quote {
  margin: clamp(5rem, 10vw, 10rem) 0 0 auto;
  max-width: 1050px;
  padding: 0;
  border: 0;
}

.sport__quote p {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

@media (max-width: 900px) {
  .sport__layout {
    grid-template-columns: 1fr;
  }

  .sport__highlights {
    grid-template-columns: 1fr;
  }

  .sport__highlights article {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sport__highlights article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .sport__principles article {
    grid-template-columns: 34px 1fr;
  }

  .sport__principles p {
    grid-column: 2;
  }
}
