:root {
  --ink:        #1a1a1a;
  --ink-soft:   #6b6b6b;
  --xtra-light: #d6ddcf;
  --light:      #969f8b;
  --fill:       #ececec;
  --fill-soft:  #f6f6f6;
  --bg:         #485265;
  --bg-dark:    #19212e;
  --bg-xtra-dark:    #11151c;


  --measure: 1120px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --step:    clamp(3.5rem, 8vw, 6rem);

  --font: "Ancizar Serif", serif;
  --font-mono: "Kedebideri", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--xtra-light);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  /* A fixed share of the viewport width, so the hero keeps the same
     proportion of the screen on a phone as it does on a desktop. */
  font-size: 10vw;
  line-height: 1.05;
  margin: 0;
  text-wrap: pretty;
  text-align: left;
  overflow-wrap: break-word;
}
h2 {
  font-size: 5rem;
  overflow-wrap: break-word;
}
h3 { font-size: min(5vw); }

p { margin: 0 0 1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.container {
  width: 100%;
  padding: 1.25rem;
}
/* --- Labels ------------------------------------------------------------- */

.eyebrow,
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xtra-light);
  margin-bottom: 0.75rem;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--light);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  width: 3.75rem;
  height: 3.75rem;
  flex: none;
}

.site-title {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 1.15rem;
  font-family: var(--font);
  color: var(--xtra-light);
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

/* --- Placeholders ------------------------------------------------------- */
/* Crossed box = "an image goes here". Standard wireframe shorthand. */

.placeholder {
  position: relative;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px), var(--line) 50%,
      transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right,
      transparent calc(50% - 0.5px), var(--line) 50%,
      transparent calc(50% + 0.5px)),
    var(--fill-soft);
}

.placeholder img {
  width: 60vw;
}

.placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line);
}

.placeholder-hero  { height: 100%; }
.placeholder-about { aspect-ratio: 1 / 1; }

.placeholder-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
}

/* --- Buttons ------------------------------------------------------------ */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: "Ancizar Serif", serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--fill-soft); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--light); color: var(--bg-dark); }

.btn-secondary { background: var(--light); color: var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: #828a79; color: var(--fill-soft); }

/* --- Sections ----------------------------------------------------------- */

.section { padding-block: var(--step); }
/* .section-alt { color: var(--bg-xtra-dark) } */

.section-head { max-width: 40rem; margin-bottom: 3rem; }

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

.hero {
  margin-top: 1rem;
}

.hero-inner {
  display: grid;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-inner em {
  color: var(--light);
}

.lede { font-size: 1.0625rem; color: var(--xtra-light); }

/* --- About -------------------------------------------------------------- */

#about {
 background-color: var(--bg-dark);
}



/* --- Services ----------------------------------------------------------- */


.card-grid {
  display: flex;
  flex-direction: column;
}

.card {
  display: flex;
  align-items: center;
  border-top: .25rem solid var(--bg);
  border-bottom: .25rem solid var(--bg);
  background: var(--bg-xtra-dark);
  padding: 1.5rem 4rem;
}

.card .product-name {
  min-width: 45%;
}

.card p { color: var(--xtra-light); font-size: min(1.75rem); }

.card .product-cta {
  font-style: italic;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--light);
  a {
    text-decoration: none;
  }
  }

/* Icons inherit `color`, so recoloring a card recolors its icon. */
.card-icon {
  display: block;
  width: 5rem;
  height: 5rem;
  margin-bottom: .75rem;
  color: var(--light);
  overflow: visible;
}

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

.contact-inner { text-align: center; margin-inline: auto; }
.contact-inner h2 { margin-inline: auto; }
.contact-inner .btn { margin-top: 1.5rem; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem;
  font-size: 0.875rem;
  color: var(--fill-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--xtra-light); text-decoration: underline; }

/* --- Responsive --------------------------------------------------------- */

/* Tablet and below: cards go single-column — icon, title, description, CTA. */
@media (max-width: 64rem) {
  h1 {
    font-size: 3.5rem;
  }
  #services > .container > h3 {
    font-size: 2.25rem;
  }

  .card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem clamp(1.25rem, 5vw, 4rem);
  }

  .card-icon {
    margin-bottom: .2rem;
  }


  /* The 45% title column only makes sense side-by-side. */
  .card .product-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }

  .card .product-name h3 {
    font-size: 2.25rem;
  }

  .card p {
      font-size: 1.45rem;
      text-align: center;
    }
  
  .card .product-cta {
    text-align: center;
  }

  h2 {
    font-size: 2.5rem;
  }

  .contact {
    margin-top: -1.5rem;
  }

  .site-footer .footer-inner nav, .site-footer .footer-inner p {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: .25rem;
    width: 25%;
  }

  .footer-inner .logo-mark {
    margin: 0 auto;
  }
}

@media (max-width: 48rem) {
  .hero-inner,
  .about-inner { grid-template-columns: 1fr; }

  /* Image leads on mobile in the About block, copy leads in the hero. */
  .placeholder-about { order: -1; }

  .site-header { position: static; }
  .header-inner { min-height: 0; padding-block: 1rem; }
}

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