/* ==========================================================================
   FSD Sp. z o.o. | style.css

   1.  Design tokens
   2.  Base and utilities
   3.  Header and navigation
   4.  Hero
   5.  About
   6.  Services
   7.  How we work (contrast section)
   8.  Contact
   9.  Footer
   10. Legal dialogs
   11. Illustration colours
   12. Motion and reveal
   13. Responsive
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */
:root {
  /* Colour: warm paper, charcoal ink, one forest-green accent */
  --paper:        #efebe2;
  --paper-2:      #e3ddcf;
  --ink:          #1f1f1c;
  --muted:        #65655d;
  --accent:       #1f4a3a;
  --accent-hover: #2c6350;
  --sage:         #b7cfc0;   /* tint of the accent, used on the green section */

  --line:         rgba(31, 31, 28, 0.16);
  --line-strong:  rgba(31, 31, 28, 0.42);
  --on-accent:    rgba(239, 235, 226, 0.78);
  --on-accent-line: rgba(239, 235, 226, 0.3);

  /* Type: classical serif for headlines, humanist sans for text */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans:  "Gill Sans", "Gill Sans MT", Calibri, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* 2. Base and utilities
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body:has(dialog[open]) { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

::selection { background: var(--accent); color: var(--paper); }

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--sm { padding: 0.5rem 1.05rem; font-size: 0.9rem; }
.btn--sm:hover { background: var(--ink); color: var(--paper); }

/* Text link: underline grows from left on hover */
.text-link {
  display: inline-block;
  padding-bottom: 0.15rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.text-link:hover { color: var(--accent); background-size: 0% 1px; background-position: 100% 100%; }

/* Line icons */
.icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 3rem; height: 3rem; }

/* Image / illustration container. Swap the <svg> for an <img> and it crops to fit. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.media svg,
.media img { width: 100%; height: 100%; object-fit: cover; }


/* 3. Header and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled {
  --header-h: 60px;
  border-bottom-color: var(--line);
  background: rgba(239, 235, 226, 0.97);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}

/* Text-based logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.logo-sub {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.site-nav ul { display: flex; gap: 1.9rem; }
.site-nav a:not(.btn) {
  padding-block: 0.3rem;
  font-size: 0.975rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { background-size: 100% 2px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }


/* 4. Hero
   ========================================================================== */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.975rem;
  color: var(--muted);
}
.hero-tag::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
}

/* Headline: lines alternate roman / italic and step in and out like a set page */
.hero-title {
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.1em 0;
  margin-bottom: -0.1em;
}
.hero-title .line > span { display: inline-block; }
.hero-title .line--indent {
  padding-left: clamp(1.5rem, 7vw, 6rem);
  font-style: italic;
}

.hero-lead {
  max-width: 34rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

/* Layered image composition */
.hero-visual {
  position: relative;
  padding: 0 0 4rem 3.5rem;
}
.media--plan { aspect-ratio: 4 / 5; }
.media--setting {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  aspect-ratio: 1;
  border: 10px solid var(--paper);
}
.hero-label {
  position: absolute;
  top: 2rem;
  left: 0;
  width: min(15.5rem, 62%);
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}
.hero-label span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}


/* 5. About
   ========================================================================== */
.about {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.about-title {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.about-visual { grid-column: 1 / span 7; }
.figure figcaption {
  max-width: 34rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.media--wide { aspect-ratio: 3 / 2; }

/* The statement overlaps the bottom edge of the image */
.pullquote {
  position: relative;
  width: min(30rem, 88%);
  margin: -1rem 0 0 auto;
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.3;
}

.about-text {
  grid-column: 8 / span 5;
  padding-top: clamp(0rem, 3vw, 2.5rem);
}
.about-text p + p { margin-top: 1.25rem; }
.about-text p { max-width: 36rem; color: var(--muted); }
.about-text .about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
}

.about-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.fact {
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
}
.fact dt { font-size: 0.9rem; color: var(--muted); }
.fact dd {
  margin-top: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.3;
}


/* 6. Services
   ========================================================================== */
.services {
  padding-block: var(--section-y);
  background: var(--paper-2);
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.services-head h2 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; }
.services-intro { color: var(--muted); }

/* Featured service */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 3px solid var(--ink);
}
.media--portrait { aspect-ratio: 300 / 380; }
.feature-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
}
.feature-body .icon { color: var(--accent); }
.feature-body h3 {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.05;
}
.feature-lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
}
.tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
}

/* Remaining services: unequal columns, second one offset downward */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: 0 clamp(2rem, 6vw, 6rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}
.service-col--offset { padding-top: clamp(0rem, 7vw, 6rem); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding: 1.75rem 0 2.75rem;
  border-top: 1px solid var(--line-strong);
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}
.service .icon {
  grid-row: 1 / span 3;
  margin-top: 0.1rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.service h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  transition: color 0.25s;
}
.service p {
  max-width: 34rem;
  margin-top: 0.6rem;
  color: var(--muted);
}
.service .text-link {
  justify-self: start;
  margin-top: 1.1rem;
  font-size: 0.975rem;
}
.service:hover::before { width: 100%; }
.service:hover .icon { transform: translateY(-3px); }
.service:hover h3 { color: var(--accent); }

.service-note {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--ink);
}
.service-note p {
  margin-bottom: 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.35;
}


/* 7. How we work (contrast section)
   ========================================================================== */
.approach {
  padding-block: var(--section-y);
  background: var(--accent);
  color: var(--paper);
}

.approach-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.approach-head h2 { max-width: 16ch; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; }
.approach-head p { color: var(--on-accent); }

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.benefit {
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-accent-line);
}
/* Offset alignment: every second column steps down */
.benefit:nth-child(even) { margin-top: clamp(0rem, 5vw, 4rem); }

.benefit-num {
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(3.75rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sage);
}
.benefit h3 {
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
  line-height: 1.15;
}
.benefit p { font-size: 1.05rem; color: var(--on-accent); }


/* 8. Contact
   ========================================================================== */
.contact {
  padding-block: var(--section-y);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.contact-info h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; }
.contact-intro {
  max-width: 28rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.company-details { margin-top: clamp(2rem, 4vw, 3rem); }
.company-details dl > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-strong);
}
.company-details dl > div:last-child { border-bottom: 1px solid var(--line-strong); }
.company-details dt { font-size: 0.95rem; color: var(--muted); padding-top: 0.15rem; }
.company-details dd { line-height: 1.45; }
.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
.contact-email:hover { color: var(--accent); background-size: 0% 2px; background-position: 100% 100%; }

/* Form */
.contact-form {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--paper-2);
  border-top: 4px solid var(--accent);
}
.form-title { font-size: 1.75rem; margin-bottom: 1.75rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.75rem;
}
.field { display: flex; flex-direction: column; padding-bottom: 0.5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.req { color: var(--accent); }
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  outline: 0;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
  background: rgba(255, 255, 255, 0.35);
}
.field .is-invalid {
  border-bottom-color: #9b2c1f;
  box-shadow: 0 1px 0 #9b2c1f;
}
.field-error {
  min-height: 1.4rem;
  padding-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #9b2c1f;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1rem;
}
.form-note {
  flex: 1 1 16rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
.form-note a { color: var(--ink); }

.form-status {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}
.form-status.is-visible { display: block; }
.form-status.is-success { border-left-color: var(--accent); }
.form-status.is-error   { border-left-color: #9b2c1f; color: #7d2217; }


/* 9. Footer
   ========================================================================== */
.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}
.footer-brand p {
  max-width: 24rem;
  margin-top: 1.25rem;
  color: var(--muted);
}
.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}
.footer-col li + li { margin-top: 0.5rem; }
.footer-col address { line-height: 1.6; }
.footer-col a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.footer-col a:hover { color: var(--accent); background-size: 100% 1px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--ink); }


/* 10. Legal dialogs
   ========================================================================== */
.legal {
  width: min(44rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.legal::backdrop { background: rgba(31, 31, 28, 0.62); }

.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 46rem);
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line-strong);
}
.legal-head h2 { font-size: 1.75rem; line-height: 1.1; }
.legal-close {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.legal-close:hover { background: var(--ink); color: var(--paper); }

.legal-body {
  overflow-y: auto;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2rem;
  font-size: 1rem;
}
.legal-body h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.25rem;
}
.legal-body p { color: var(--muted); }
.legal-body .legal-updated { margin-bottom: 0; font-size: 0.9rem; }
.legal-body a { color: var(--ink); }


/* 11. Illustration colours
   Inline SVGs are styled with classes so they follow the palette tokens.
   ========================================================================== */
.f-accent { fill: var(--accent); }
.f-paper  { fill: var(--paper); }
.f-sand   { fill: var(--paper-2); }
.f-ink    { fill: var(--ink); }
.f-spot   { fill: var(--paper); fill-opacity: 0.16; }

.s-paper,
.s-ink {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s-paper { stroke: var(--paper); }
.s-ink   { stroke: var(--ink); stroke-width: 1.2; }

.plan-room  { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.plan-table { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; }
.plan-chair { fill: none; stroke: var(--ink); stroke-width: 1.2; }

.svg-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--ink);
}
.svg-label--light { fill: var(--paper); }


/* 12. Motion and reveal
   One orchestrated moment on load (the headline), plus a quiet fade on content blocks.
   ========================================================================== */
@keyframes line-rise {
  from { transform: translateY(105%); }
  to   { transform: none; }
}
.hero-title .line > span {
  animation: line-rise 0.9s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}


/* 13. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .benefit:nth-child(even) { margin-top: 3rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    background: none;
  }
  .site-nav a.is-active { color: var(--accent); }
  .nav-cta { padding: 0.9rem 1.25rem; font-size: 1rem; }

  /* Hero stacks, visual below */
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 30rem; padding-left: 2.5rem; }

  /* About */
  .about-visual,
  .about-text { grid-column: 1 / -1; }
  .about-text { margin-top: 3rem; padding-top: 0; }
  .about-facts { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }

  /* Services */
  .services-head,
  .approach-head { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-media { max-width: 24rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-col--offset { padding-top: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }

  .logo-sub { display: none; }

  .hero-title .line--indent { padding-left: 1.25rem; }
  .hero-visual { padding: 0 0 3rem 1.5rem; }
  .media--setting { border-width: 8px; }
  .hero-label { top: 1rem; font-size: 0.85rem; }

  .pullquote { width: 100%; margin-top: 0; border-left-width: 3px; padding-left: 1.25rem; }

  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit:nth-child(even) { margin-top: 0; }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .company-details dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .btn--primary[type="submit"] { width: 100%; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}
