/* FORM® landing page (Figma frame "Landing v2").
   Desktop values come straight from the frame: 1440 wide, 48px margins, black on white,
   cyan accents. Everything below 1440 scales fluidly. */

:root {
  --cyan: #0cf;
  --grey: #a6a6a6;
  --panel: #f9f9f9;
  --margin: 48px;
}

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

body {
  background: #fff;
  color: #000;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.page {
  max-width: 1440px;
  margin-inline: auto;
  padding-bottom: 48px;
}

/* ---------- Links ---------- */

.link,
.link-l {
  color: var(--cyan);
  font-weight: 500;
  text-decoration: underline;
  text-underline-position: from-font;
  text-underline-offset: 0.15em;
  width: fit-content;
}
.link { font-size: 20px; line-height: 40px; }
.link-l { font-size: clamp(22px, 2.22vw, 32px); line-height: 1.25; }
.link:hover, .link-l:hover { text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-top: 48px;
}
.hero > * { position: relative; z-index: 1; }

/* Right-hand photograph: 700px wide at 1440, with the same zoomed crop as the Figma frame
   (the image is shown at 276.43% of the panel's width). */
.hero > .hero-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(50% - 20px);
  background: url("assets/hero.png") 67.68% 5.5% / 276.43% auto no-repeat;
  background-color: #ddd;
}

.site-header { display: flex; flex-direction: column; gap: 60px; }

.nav {
  display: flex;
  gap: 20px;
  padding-inline: var(--margin);
  font-weight: 500;
}
.nav a { width: 95px; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.shapes {
  display: flex;
  gap: 20px;
  padding-inline: var(--margin);
}
.shape {
  display: block;
  width: clamp(56px, 6.39vw, 92px);
  height: auto;
  aspect-ratio: 1;
}
.shape-square { background: #000; }

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 60px;
  min-height: clamp(480px, 51.39vw, 740px);
  padding: var(--margin);
}
.hero-content h1 {
  max-width: min(670px, calc(50% - 68px));
  font-size: clamp(40px, 5.56vw, 80px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-content p {
  max-width: min(555px, calc(50% - 68px));
  font-size: 20px;
  line-height: 40px;
}

/* ---------- Projects ---------- */

.projects {
  margin-top: 60px;
  padding: 96px var(--margin);
  background: var(--panel);
}
.projects h2 {
  font-size: clamp(36px, 3.89vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.projects .link { display: block; margin-top: 20px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 48px;
}
.project img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e5e5e5;
}
.project h3 { margin-top: 20px; font-size: 24px; line-height: 40px; font-weight: 600; }
.project p { margin-top: 20px; color: var(--grey); }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  margin-top: 60px;
  padding: 20px var(--margin) 0;
}
.label {
  grid-column: 1 / 5;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.display-s {
  grid-column: 5 / 13;
  margin-top: -10px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.111;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.display-s span { display: block; }
.contact .link-l { grid-column: 5 / 13; margin-top: 60px; }
.address { grid-column: 1 / 9; margin-top: 96px; color: var(--grey); }
.social { margin-top: 96px; width: fit-content; text-decoration: none; }
.social:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.social-instagram { grid-column: 10 / 11; }
.social-linkedin { grid-column: 11 / 13; }

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  :root { --margin: 32px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .projects { padding-block: 64px; }

  .label,
  .display-s,
  .contact .link-l { grid-column: 1 / -1; }
  .display-s { margin-top: 20px; }
  .address { grid-column: 1 / -1; margin-top: 64px; }
  .social { margin-top: 24px; }
  .social-instagram { grid-column: 1 / 5; }
  .social-linkedin { grid-column: 5 / 9; }
}

/* ---------- Mobile: the photograph becomes a band between the header and the intro ---------- */

@media (max-width: 640px) {
  :root { --margin: 20px; }

  .hero { gap: 40px; padding-top: 24px; }
  .site-header { gap: 32px; }
  .nav { flex-wrap: wrap; gap: 8px 24px; }
  .nav a { width: auto; }

  .hero > .hero-media {
    position: relative;
    order: 2;
    width: 100%;
    right: auto;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: 62% 10%;
  }
  .hero-content { order: 3; min-height: 0; gap: 24px; padding-block: 0; }
  .hero-content h1,
  .hero-content p { max-width: none; }
  .hero-content p { font-size: 18px; line-height: 32px; }

  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects { padding-block: 48px; }
  .address { margin-top: 48px; }
}
