/* off.land main website
   Layout follows the Framer site (tag framer-migrated-v1); colours, typefaces and
   spacing follow the TAMDEM 2025 brand manual, through the tokens below. */

/* ---------- fonts (self-hosted, no requests to Google) ---------- */

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- design tokens (shared later with maps.off.land) ---------- */

:root {
  /* brand colours (TAMDEM 2025): black, láva, máta, white */
  --black: #000;
  --lava: #f25730;
  --mint: #d4f5de;
  --white: #fff;

  /* roles, all derived from the brand colours */
  --bg: var(--black);
  --surface: #0f0f0f;
  --text: var(--white);
  --text-muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --accent: var(--lava);
  --on-accent: var(--black);
  --contact-top: #00362e;   /* darkest green of the map palette */

  /* Urbanist everywhere, Arial as fallback (PT Serif is the manual's long-text face; not needed for texts this short) */
  --font: "Urbanist", Arial, sans-serif;

  /* spacing scale (multiples of 8) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --radius: 16px;      /* rounded frames, as in the brand manual */

  --content: 1080px;   /* text column, 1128px including the side padding */
  --pad: 24px;
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.2 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.icon { width: 24px; height: 24px; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* fade-up on scroll, like the Framer page; off for reduced motion */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* hero appear on page load, like Framer: background settles from 105 %,
   title fades in word by word, subtitle letter by letter, then the scroll cue */
:root { --ease-appear: cubic-bezier(0.12, 0.23, 0.5, 1); }
@keyframes settle { from { transform: scale(1.05); } }
@keyframes blur-in { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } }
@keyframes rise-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.hero-bg img { animation: settle 2s var(--ease-appear) both; }
.split .w, .split .c { display: inline-block; animation: blur-in 0.8s var(--ease-appear) both; }
.split .w { animation-delay: calc(var(--i) * 0.1s); }
.split .c { animation-duration: 0.6s; animation-delay: calc(0.3s + var(--i) * 0.015s); }
.split .nw { white-space: nowrap; }
.scroll-cue { animation: rise-in 0.6s var(--ease-appear) 0.8s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .split .w, .split .c, .scroll-cue { animation: none; }
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: 72px;
  background: linear-gradient(rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 62px; height: 20px; }
.topbar .logo { margin-left: 4px; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; gap: 16px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; }
.lang a { transition: opacity 0.2s; }
.lang a:not([aria-current]) { opacity: 0.35; }
.lang a:hover { opacity: 1; }

.menu-button {
  width: 40px; height: 40px; padding: 8px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--text);
}

/* menu panel (the Framer menu was not in the saved page; this lists the same links) */
.menu {
  position: fixed; inset: 0; z-index: 9;
  padding: 120px var(--pad) 40px;
  background: rgba(0, 0, 0, 0.96);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  font-size: 32px; letter-spacing: -0.03em;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { color: var(--text-muted); transition: color 0.2s; }
.menu a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 900px; height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; } /* matches the Framer brightness */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(0, 0, 0, 0) 100%);
}
.hero h1 {
  margin-top: 240px;
  font-weight: 400;
  padding: 0 16px;
  font-size: 64px; line-height: 1; letter-spacing: -0.03em;
}
.hero-sub { margin-top: var(--s6); display: grid; gap: var(--s2); padding: 0 16px; font-size: 18px; line-height: 1.4; }
.scroll-cue {
  position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 14px; line-height: 1.3; white-space: nowrap;
}
.scroll-cue .icon { width: 20px; height: 20px; color: var(--text-muted); }

/* ---------- sections ---------- */

.section { padding: var(--s8) 0; }
.section-label {   /* outlined pill, like the tags in the brand manual */
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-muted); font-size: 13px; line-height: 1.3;
}
.section-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.section h2 {
  margin-top: var(--s3);
  font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 400;
  max-width: 720px;
  text-wrap: balance;
}
.muted { color: var(--text-muted); }

/* capabilities */
.cap-grid { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.cap-card img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }
.cap-card h3 { margin-top: var(--s3); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.cap-card ul { margin-top: var(--s1); display: grid; gap: 4px; color: var(--text-muted); font-size: 16px; line-height: 1.4; }

/* clients */
.clients-grid {
  margin-top: var(--s5);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s5); row-gap: var(--s3);
}
/* the wrappers drop out of the grid: tabs on top, image and text side by side below */
.clients-grid > div { display: contents; }
.tabs {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; overflow: visible; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 8px 12px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 1px solid transparent;
  color: var(--text-muted); font-size: 16px; line-height: 1.2; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.client-image { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; } /* every client image cropped to 4:3 */
.client-image img { width: 100%; height: 100%; object-fit: cover; }
.client-panel { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; width: 100%; max-width: 400px; }
.client-panel[hidden] { display: none; }
.client-panel .kicker { color: var(--text-muted); font-size: 14px; line-height: 1.3; margin-bottom: 16px; }
.client-panel p:not(.kicker) { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.client-panel p + p:not(.kicker) { margin-top: 20px; }

/* approach */
.approach-grid { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.approach-card {
  padding: var(--s3); min-height: 220px;
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); /* thin rounded frame, as in the brand manual */
}
.approach-card .badge {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.approach-card .badge .icon { width: 20px; height: 20px; color: var(--accent); }
.approach-card h3 { margin-top: var(--s3); font-size: 20px; line-height: 1.2; font-weight: 600; }
.approach-card p { margin-top: var(--s1); color: var(--text-muted); font-size: 16px; line-height: 1.4; text-wrap: pretty; }

/* contact: dark card with a deep green from the map palette, white text, láva Send button */
.contact-card {
  margin-top: var(--s5);
  padding: var(--s5);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--contact-top) 0%, var(--surface) 75%);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: 1fr 494px; gap: var(--s5);
}
.section.contact { padding: var(--s7) 0; }
.contact-card h2 { margin: 0; align-self: center; }
.form { display: grid; gap: var(--s3); font-family: var(--font); }
.field { display: grid; gap: var(--s1); }
.field label { color: var(--text-muted); font-size: 13px; line-height: 1.2; font-weight: 600; }
.field input, .field textarea {
  width: 100%; height: 44px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color 0.2s;
}
.field textarea { height: 184px; padding: 12px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--mint); }
.hp { position: absolute; left: -9999px; }
.send {
  height: 44px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.send:hover { background: #d9451f; }
.send:disabled { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); cursor: default; }  /* láva only once the form is filled in */
.form-status { font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.form-status[hidden] { display: none; }
.form-status a { color: var(--text); text-decoration: underline; }
.direct { font-family: var(--font); color: var(--text-muted); }
.direct a { display: block; color: var(--text); font-weight: 600; }
.direct a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.footer { background: var(--surface); padding: var(--s6) 0 var(--s5); border-top: 1px solid var(--line); }
.footer .wrap { max-width: calc(1128px + 80px); padding: 0 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-row > div { width: 280px; }
.footer .logo { display: block; width: 66px; height: 23px; padding-left: 4px; }
.footer-tagline { margin-top: 16px; color: var(--text-muted); font-size: 14px; line-height: 1.3; }
.footer-meta { margin-top: 40px; display: grid; gap: 6px; color: var(--text-muted); font-size: 14px; line-height: 1.3; }
.footer-meta b { font-weight: 600; color: var(--text); }
.footer-meta b.brand { color: var(--text); }
.footer-nav { width: 240px; font-size: 14px; line-height: 1.3; }
.footer-nav h2 { font-size: 14px; font-weight: 600; line-height: 27px; }
.footer-nav ul { margin-top: 16px; display: grid; gap: 16px; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }

/* ---------- tablet ---------- */

@media (max-width: 1199.98px) {
  .section { padding: var(--s7) 0; }
  .section h2 { font-size: 36px; }
  .hero h1 { line-height: 1.2; }
  .cap-grid { grid-template-columns: 1fr; gap: 24px; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: minmax(0, 640px); justify-content: center; padding: var(--s5) 36px 36px; gap: var(--s4); }
}

/* ---------- phone ---------- */

@media (max-width: 809.98px) {
  :root { --pad: 16px; }
  .topbar .logo { margin-left: 4px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 16px; }
  .section { padding: var(--s6) 0; }
  .section h2 { font-size: 32px; }
  .section h2 { line-height: 1.2; }
  .approach-grid { grid-template-columns: 1fr; gap: 12px; }
  /* Framer kept two squeezed columns here; stacked reads better and keeps the same content */
  .clients-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .clients-grid > div { display: block; }
  .tabs { overflow-x: auto; }
  .client-image { margin-top: 24px; }
  .section.contact { padding: 48px 0; }
  .contact .wrap { padding: 0 24px; }
  .contact-card { grid-template-columns: 1fr; padding: var(--s4) var(--s3); gap: var(--s3); }
  .footer-row { gap: 0; }
  .footer-row > div, .footer-nav { width: 50%; }
}
