@font-face {
  font-family: "Elegant";
  src: url("../fonts/elegant.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #555555;
  --line: #d8d8d8;
  --soft: #f4f4f1;
  --accent: #b8ff5e;
  --error: #9f1d1d;
  --max: 1180px;
  --pad: clamp(18px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 200;
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px var(--pad);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 34px;
}

.brand img {
  width: 34px;
  height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 5vw, 36px);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
}

.language-switch button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 83px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: clamp(32px, 8vw, 86px) var(--pad) 26px;
}

.hero-logo {
  width: clamp(72px, 24vw, 136px);
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Elegant", "Roboto", Arial, sans-serif;
  line-height: 0.98;
  font-weight: 400;
}

h1 {
  max-width: 940px;
  font-size: 4.2rem;
}

h2 {
  max-width: 900px;
  font-size: 3.1rem;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin: 0;
}

.hero-text,
.section-heading p,
.project-summary,
.project-copy p,
.contact p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  background: var(--ink);
  color: var(--bg);
}

.button-secondary {
  background: var(--bg);
  color: var(--ink);
}

.hero-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  overflow-x: auto;
  padding: 0 var(--pad) 26px;
  scroll-snap-type: x mandatory;
}

.hero-gallery img {
  width: 100%;
  height: min(52vh, 430px);
  object-fit: cover;
  border: 1px solid var(--ink);
  scroll-snap-align: start;
}

.section-pad {
  padding: clamp(48px, 10vw, 110px) var(--pad);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto clamp(34px, 7vw, 72px);
}

.section-heading.wide {
  margin-bottom: clamp(28px, 6vw, 58px);
}

.intro-grid {
  display: grid;
  gap: clamp(14px, 3vw, 26px);
  max-width: var(--max);
  margin: 0 auto;
}

.intro-grid>div {
  display: grid;
  gap: 14px;
  min-height: 180px;
  align-content: center;
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--bg);
}

.intro-grid h3 {
  font-size: 2.25rem;
}

.intro-grid p {
  color: var(--muted);
}

.projects {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-list {
  display: grid;
  gap: clamp(34px, 7vw, 74px);
  max-width: var(--max);
  margin: 0 auto;
}

.project {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(34px, 7vw, 74px);
  border-bottom: 1px solid var(--ink);
}

.project:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-media {
  display: grid;
  gap: 10px;
  margin: 0;
}

.project-media-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
  background: var(--bg);
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.project-thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.project-thumbs button[aria-current="true"] {
  border-color: var(--ink);
  outline: 3px solid var(--accent);
}

.project-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.project-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-title {
  font-size: 3.5rem;
}

.project-summary {
  color: var(--ink);
}

.project-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-details summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  align-items: center;
  list-style: none;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-details summary::-webkit-details-marker {
  display: none;
}

.project-details summary::after {
  content: "+";
  font-size: 1.5rem;
}

.project-details[open] summary::after {
  content: "-";
}

.details-body {
  display: grid;
  gap: 22px;
  padding: 0 0 24px;
}

.details-body h4 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details-body p+p {
  margin-top: 12px;
}

.details-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.cta-band {
  display: grid;
  gap: 26px;
  align-items: end;
}

.cta-band h2 {
  max-width: none;
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
  font-weight: inherit;
}

.contact {
  display: grid;
  gap: 24px;
  max-width: calc(var(--max) + (var(--pad) * 2));
  margin: 0 auto;
}

.contact .section-heading {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 5vw, 38px);
  border: 1px solid var(--ink);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  padding: 12px;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  color: var(--muted);
  font-weight: 700;
}

.form-status.is-error {
  color: var(--error);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer img {
  width: 26px;
  height: 44px;
  object-fit: contain;
}

@media (min-width: 720px) {
  .site-header {
    gap: 22px;
  }

  h1 {
    font-size: 5.2rem;
  }

  h2 {
    font-size: 4.6rem;
  }

  h3 {
    font-size: 3.4rem;
  }

  .hero-text,
  .section-heading p,
  .project-summary,
  .project-copy p,
  .contact p {
    font-size: 1.12rem;
  }

  .brand,
  .brand img {
    width: 42px;
  }

  .brand img {
    height: 72px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: stretch;
  }

  .hero-copy {
    padding-bottom: clamp(40px, 8vw, 86px);
  }

  .hero-gallery {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(145px, 1fr));
    overflow: hidden;
    padding: 20px var(--pad) 20px 0;
  }

  .hero-gallery img {
    height: 100%;
    min-height: 145px;
  }

  .hero-gallery img:first-child {
    grid-row: span 2;
  }

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

  .intro-grid h3 {
    font-size: 2.75rem;
  }

  .project-title {
    font-size: 5.4rem;
  }

  .project {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .project:nth-child(even) {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .project:nth-child(even) .project-media {
    order: 2;
  }

  .cta-band,
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  }
}

@media (min-width: 1040px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 6rem;
  }

  h2 {
    font-size: 5rem;
  }

  h3 {
    font-size: 4rem;
  }

  .hero-text,
  .section-heading p,
  .project-summary,
  .project-copy p,
  .contact p {
    font-size: 1.2rem;
  }

  .intro-grid h3 {
    font-size: 3.1rem;
  }

  .project-title {
    font-size: 7.2rem;
  }

  .project-copy {
    padding-top: 10px;
  }

  .project-media {
    position: sticky;
    top: 112px;
  }
}
