﻿/* Fonts */
@font-face {
  font-family: "Urbanchrome Normal";
  src: url("assets/fonts/Urbanchrome Normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Urbanchrome Roughen";
  src: url("assets/fonts/Urbanchrome Roughen.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Design Tokens */
:root {
  /* Colors */
  --color-bg-dark: #090909;
  --color-bg-light: #efefef;
  --color-bg-card: #f0f0f0;
  --color-text-dark: #111111;
  --color-text-light: #ffffff;
  --color-text-muted: #cfcfcf;
  --color-accent: #e3fadd;
  --color-scribble: #cf92ff;
  --color-circle: #d1d1d1;
  --color-arrow: #ff9806;
  --color-border: #dddddd;

  /* Typography */
  --font-display: "Urbanchrome Normal", "Segoe UI", sans-serif;
  --font-hand: "Urbanchrome Roughen", "Caveat", cursive;
  --font-body: "Urbanist", "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(3rem, 6vw, 6.8rem);
  --fs-h2: clamp(2rem, 4vw, 3.4rem);
  --fs-h3: clamp(1.1rem, 1.9vw, 1.45rem);
  --fs-body: 1rem;
  --fs-small: 0.9rem;

  /* Layout */
  --container-max: 1140px;
  --container-pad: 24px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;

  --radius-sm: 4px;
  --radius-round: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.45;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

figure {
  margin: 0;
}

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

/* Utilities */
.container {
  width: min(var(--container-max), calc(100% - 2 * var(--container-pad)));
  margin-inline: auto;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow > * + * {
  margin-top: var(--flow-space, 0.75rem);
}

.text-center {
  text-align: center;
}

.title-display {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.title-section,
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.avatar-circle {
  border-radius: 50%;
  overflow: hidden;
}

/* Nav */
.nav {
  background: var(--color-accent);
  color: var(--color-text-dark);
  min-height: 76px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav__layout {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav__link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav__link:focus-visible {
  outline: 2px solid #2f2f2f;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hero */
.hero {
  min-height: 92vh;
  padding: 0;
}

.hero__layout {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr minmax(460px, 50vw);
  gap: var(--space-5);
  align-items: stretch;
}

.hero__content {
  display: grid;
  align-content: center;
  gap: var(--space-3);
  padding-top: clamp(60px, 10vw, 136px);
  padding-left: clamp(16px, 4vw, 64px);

}

.hero__title {
  color: var(--color-accent);
  white-space: nowrap;
}

.hero__subtitle,
.hero__meta {
  color: var(--color-accent);
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  max-width: 34ch;
}

.hero__meta {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: none;
}

.hero__media {
  /* margin-top: -40px; */
  height: clamp(420px, 72vh, 640px);
  min-height: 420px;
  border-bottom-left-radius: clamp(120px, 17vw, 240px);
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Shared section rhythm */
.team,
.values,
.current-situation,
.desired-situation,
.design-question {
  padding: var(--space-6) 0;
}

/* Team */
.team__title {
  color: var(--color-text-light);
}

.team__grid {
  margin-top: var(--space-4);
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 10px 14px;
  color: var(--color-text-dark);
}

.card__media {
  border: 1px solid #d0d0d0;
  background: #ffffff;
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card__title {
  font-size: var(--fs-h3);
  line-height: 1;
  margin-top: 10px;
}

.team-card__name {
  font-family: var(--font-hand);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card__meta {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Values */
.values__title {
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.values__intro {
  color: var(--color-text-muted);
  max-width: 68ch;
  margin-bottom: var(--space-5);
  font-size: 0.95rem;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 20px;
}

.value-card {
  --flow-space: 0.65rem;
  grid-column: span 2;
}

.value-card:nth-child(1) {
  grid-column: 1 / span 2;
}

.value-card:nth-child(2) {
  grid-column: 3 / span 2;
}

.value-card:nth-child(3) {
  grid-column: 5 / span 2;
}

.value-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.value-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.value-card__photo {
  width: clamp(150px, 16vw, 210px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: #121212;
}

.value-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.55rem);
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.1;
}

.value-card__text {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  max-width: 34ch;
  margin-inline: auto;
}

/* Current situation */
.current-situation .section-title {
  margin-bottom: var(--space-4);
}

.situation__grid {
  gap: 30px 24px;
}

.situation-card__scribble {
  height: 108px;
  position: relative;
  margin-bottom: var(--space-3);
}

.situation-card__scribble::before,
.situation-card__scribble::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-scribble);
  border-radius: 2px;
}

.situation-card__scribble::before {
  transform: rotate(-1.8deg);
}

.situation-card__scribble::after {
  inset: 5px 4px 2px;
  transform: rotate(1.1deg);
  opacity: 0.65;
}

.situation-card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.situation-card__text {
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

/* Desired situation */
.desired-situation .section-title {
  margin-bottom: var(--space-4);
}

.desired__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  margin-bottom: var(--space-5);
}

.desired__circle {
  width: clamp(180px, 31vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-round);
  background: var(--color-circle);
}

.desired__arrow {
  font-family: var(--font-display);
  color: var(--color-arrow);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.desired__text-grid p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  max-width: 46ch;
}

/* Design question */
.design-question .section-title {
  margin-bottom: var(--space-4);
}

.question__quote {
  max-width: 70ch;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    width: min(var(--container-max), calc(100% - 2 * var(--container-pad)));
    margin-inline: auto;
  }

  .hero__content {
    padding-top: 52px;
  }

  .hero__title {
    white-space: normal;
  }

  .hero__media {
    margin-top: 0;
    height: auto;
    min-height: 420px;
    border-bottom-left-radius: 120px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav__list {
    gap: var(--space-3);
  }

  .values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .value-card,
  .value-card:nth-child(1),
  .value-card:nth-child(2),
  .value-card:nth-child(3),
  .value-card:nth-child(4),
  .value-card:nth-child(5) {
    grid-column: auto;
  }

  .situation__grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }

  .nav__layout {
    min-height: 68px;
  }

  .nav__logo {
    font-size: 0.78rem;
  }

  .nav__list {
    gap: var(--space-2);
  }

  .nav__link {
    font-size: 0.8rem;
  }

  .team,
  .values,
  .current-situation,
  .desired-situation,
  .design-question {
    padding: 48px 0;
  }

  .hero__media {
    min-height: 320px;
  }

  .desired__visual {
    gap: 8px;
  }

  .desired__circle {
    width: min(40vw, 180px);
  }
}
