:root {
  --bg: #0b0d10;
  --text: #f3efe7;
  --muted: #d9d5cc;
  --accent: #81a7cf;
  --accent-hover: #a0bfdf;
  --accent-ink: #0b0d10;
  --rule: rgba(243, 239, 231, 0.45);
  --rule-soft: rgba(243, 239, 231, 0.3);

  --gutter: clamp(1.25rem, 7vw, 7rem);
  --max: 1440px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Layout */

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4.5vw, 3.25rem) var(--gutter) clamp(1.5rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
}

/* Header */

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  display: block;
  width: clamp(10.25rem, 19.5vw, 300px);
  max-width: 300px;
  height: auto;
}

/* Hero */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 6rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  color: var(--accent);
  font-size: clamp(0.72rem, 1.1vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow span {
  min-width: 0;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.headline {
  margin: clamp(1.75rem, 4vw, 3.5rem) 0 0;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.accent {
  color: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(2.25rem, 4.5vw, 4rem);
}

.lead {
  max-width: 24em;
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  font-weight: 400;
  line-height: 1.32;
}

/* Buttons and links */

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.2s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: 0.85em 1.5em;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
}

.button:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(3px);
}

.hero-aside {
  padding: 0.5rem 0 1.75rem clamp(2rem, 4vw, 4rem);
  border-left: 1px solid var(--rule-soft);
}

.hero-aside p {
  max-width: 9.5em;
  font-size: clamp(1.15rem, 2vw, 1.85rem);
  line-height: 1.3;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.25rem;
  padding-bottom: 0.2em;
  color: var(--accent);
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--accent-hover);
}

/* Footer */

.site-footer {
  padding-top: clamp(1.25rem, 3vw, 2.75rem);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.shell > .site-footer {
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* Contact */

.contact {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 9vw, 8rem);
  scroll-margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.contact-title {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.contact-copy {
  margin-top: 1.25rem;
  max-width: 24em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.5rem;
}

/* Flex + margins (not grid + gap) so elements injected by browser extensions,
   such as password-manager icons, can't add rows and shift the inputs. */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.field label {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 1em;
  background: rgba(243, 239, 231, 0.04);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input {
  height: 3.25rem;
}

.field textarea {
  padding-block: 0.85em;
}

/* Keep browser autofill from repainting the fields light blue/yellow. */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px #16181c inset;
  caret-color: var(--text);
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  min-height: 65px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.contact-form .button {
  margin-top: 0;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.contact-form .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  color: var(--muted);
  font-size: 1rem;
}

.form-status[data-kind="error"] {
  color: #f0a59c;
}

.form-status[data-kind="success"] {
  color: var(--accent);
}

/* Keep the headline on two lines where there's room */

@media (min-width: 721px) {
  .headline .line {
    white-space: nowrap;
  }
}

/* Small screens */

@media (max-width: 720px) {
  .br-wide {
    display: none;
  }

  .eyebrow {
    letter-spacing: 0.16em;
  }

  .eyebrow::after {
    display: none;
  }

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

  .contact-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    padding: 1.75rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
