/*
 * Home page (/).
 *
 * Additions only, every rule scoped to a class of this area, so the shared vocabulary in style.css
 * and layout.css stays as it is. The page runs top to bottom in bands: a photographic hero, the
 * strip of figures a buyer checks first, the catalogue, the technology question over a photograph,
 * the company with the questions it hears, the application fields, delivery, and the closing band.
 */

/* ---------- small shared parts of this page ---------- */
.sf-icon { width: 24px; height: 24px; flex: 0 0 auto; }
.sf-arrow {
  display: inline-block;
  margin-left: .45em;
  transition: transform .16s ease;
}
a:hover > .sf-arrow, a:focus-visible > .sf-arrow { transform: translateX(3px); }

/* ---------- 1: hero — one photograph, one sentence ---------- */
.sf-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(28rem, 62vh, 40rem);
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
}
.sf-hero__media { position: absolute; inset: 0; z-index: -2; background: var(--ink-deep); }
.sf-hero__img { width: 100%; height: 100%; object-fit: cover; }
/* The scrim is one sweep: deep slate under the headline on the left, falling away to nothing on
   the right so the photograph keeps its own light. No bottom band — the reference leaves the foot
   of the image as bright as the picture is. */
.sf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    94deg,
    rgba(10, 24, 32, .88) 0%,
    rgba(10, 24, 32, .72) 24%,
    rgba(10, 24, 32, .42) 46%,
    rgba(10, 24, 32, .16) 68%,
    rgba(10, 24, 32, .03) 86%,
    rgba(10, 24, 32, 0) 100%
  );
}

/* The placeholder stands in until a photograph of the resin is uploaded. */
.sf-hero__slot {
  display: grid;
  place-items: start end;
  width: 100%;
  height: 100%;
  padding: var(--space-4);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 12px),
    linear-gradient(150deg, #14212b 0%, #0d2a2a 55%, var(--accent) 100%);
}
.sf-hero__slot .sf-figure__slot { color: rgba(255, 255, 255, .8); }

.sf-hero__body { position: relative; width: 100%; padding-block: var(--space-8) var(--space-7); }
.sf-hero__inner { display: grid; justify-items: start; max-width: 60rem; }
.sf-hero__eyebrow {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
.sf-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.1rem + 4.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 22ch;
  color: #fff;
}
.sf-hero__lede { margin: var(--space-4) 0 0; max-width: 56ch; font-size: var(--step-1); line-height: 1.6; color: rgba(255, 255, 255, .84); }
.sf-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.sf-hero .sf-btn { padding: .8em 1.35em; border-color: rgba(255, 255, 255, .42); background: transparent; color: #fff; }
.sf-hero .sf-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.sf-hero .sf-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.sf-hero .sf-btn--primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #fff; }

/* ---------- 2: the figures a buyer checks before writing ---------- */
.sf-strip { background: var(--paper); border-bottom: var(--rule); }
.sf-strip__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-strip__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-right: var(--rule);
}
.sf-strip__item:last-child { border-right: 0; }
.sf-strip__item + .sf-strip__item { padding-left: var(--space-4); }
.sf-strip__icon { color: var(--accent); display: flex; padding-top: .15rem; }
.sf-strip__icon .sf-icon { width: 26px; height: 26px; }
.sf-strip__text { display: grid; gap: .15rem; }
.sf-strip__label { font-size: var(--step-0); font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.sf-strip__value { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }

/* ---------- the band vocabulary of this page: a heading row and a card grid ---------- */
.sf-band { padding-block: var(--space-7); background: var(--paper); }
.sf-band--surface { background: var(--surface); }
.sf-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.sf-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 30ch;
}
.sf-band__head .sf-lede { margin-top: var(--space-3); max-width: 60ch; }
.sf-band__more { margin: 0; font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.sf-band__more a, .sf-band__more a:visited {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.sf-band__more a:hover { color: var(--accent-ink); border-bottom-color: currentColor; }

.sf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-cards__item { margin: 0; }
.sf-card-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "media media" "body arrow";
  align-items: end;
  gap: var(--space-2) var(--space-3);
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}
.sf-card-link__media {
  grid-area: media;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.sf-card-link__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sf-card-link:hover .sf-card-link__img { transform: scale(1.04); }
/* The tile that stands in for a photograph the catalogue does not hold yet. */
.sf-card-link__slot {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, #dde5e8 0%, #cfdadd 46%, #b9c9cd 100%);
}
.sf-card-link__body { grid-area: body; display: grid; gap: .2rem; }
.sf-card-link__name { font-size: var(--step-0); font-weight: 600; letter-spacing: -.005em; }
.sf-card-link__meta { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.sf-card-link__count { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .04em; text-transform: uppercase; }
.sf-card-link__arrow {
  grid-area: arrow;
  font-size: var(--step-0);
  color: var(--accent);
  line-height: 1;
  transition: transform .16s ease;
}
.sf-card-link:hover .sf-card-link__name { color: var(--accent); }
.sf-card-link:hover .sf-card-link__arrow { transform: translateX(4px); }
.sf-cards--dense { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sf-cards--dense .sf-card-link__media { aspect-ratio: 3 / 2; }

/* ---------- 4: the technology question, over a photograph ---------- */
.sf-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 34rem;
  padding-block: var(--space-7);
  background: var(--ink-deep);
  color: #eaf0f2;
  overflow: hidden;
}
.sf-feature__media { position: absolute; inset: 0; z-index: -2; }
.sf-feature__img { width: 100%; height: 100%; object-fit: cover; }
.sf-feature__slot { width: 100%; height: 100%; background: linear-gradient(115deg, #16232c 0%, #1d3540 48%, #0d4a46 100%); }
.sf-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(8, 20, 26, .93) 0%, rgba(8, 20, 26, .74) 52%, rgba(8, 20, 26, .42) 100%);
}
.sf-feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: var(--space-6);
  align-items: start;
}
.sf-eyebrow--onDark { color: rgba(255, 255, 255, .66); }
.sf-feature__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 24ch;
}
.sf-feature__lede { margin: 0; max-width: 54ch; color: rgba(234, 240, 242, .82); }
.sf-feature__actions { margin: var(--space-4) 0 0; }
.sf-btn--onDark { background: transparent; border-color: rgba(255, 255, 255, .42); color: #fff; }
.sf-btn--onDark:hover { background: #fff; border-color: #fff; color: var(--ink); }
.sf-feature__list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.sf-feature__list li {
  margin: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 2px solid var(--accent-bright);
  background: rgba(255, 255, 255, .07);
}
.sf-feature__label {
  margin: 0 0 .25rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fd3cb;
}
.sf-feature__body { margin: 0; font-size: var(--step--1); line-height: 1.55; color: rgba(234, 240, 242, .86); }

/* ---------- 5: the company and the questions it hears ---------- */
.sf-company__inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: var(--space-7);
  align-items: start;
}
.sf-company__text .sf-prose { margin-top: var(--space-3); max-width: 42ch; }
.sf-company__text .sf-prose p { color: var(--ink-soft); }
.sf-company__text .sf-band__more { margin-top: var(--space-4); }
.sf-company__doors-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-door {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sf-door:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.sf-door__icon { color: var(--accent); margin-bottom: .25rem; }
.sf-door__icon .sf-icon { width: 28px; height: 28px; }
.sf-door__title { margin: 0; font-size: var(--step-0); font-weight: 600; line-height: 1.3; }
.sf-door__line { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.55; }
.sf-door__links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.sf-door__links a {
  display: inline-block;
  padding: .2em .6em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--step--2);
  color: var(--ink-soft);
  text-decoration: none;
}
.sf-door__links a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------- 6: the application fields ---------- */
.sf-apps .sf-band__head { align-items: end; }

/* ---------- 7: delivery, with the routes drawn beside it ---------- */
.sf-delivery { border-top: var(--rule); border-bottom: var(--rule); }
.sf-delivery__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: var(--space-6);
  align-items: center;
}
.sf-delivery__map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(.8rem, 2.1vw, 1.9rem);
}
.sf-delivery__frame { position: relative; }
.sf-delivery__img { display: block; width: 100%; height: auto; }
.sf-delivery__routes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--line-strong);
  stroke: var(--line-strong);
}
.sf-delivery__rows { margin: var(--space-4) 0 0; display: grid; }
.sf-delivery__row {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) 0;
  border-top: var(--rule);
}
.sf-delivery__row dt {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .2rem;
}
.sf-delivery__row dd { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.sf-delivery__actions { margin: var(--space-4) 0 0; }

/* ---------- 8: the closing band ---------- */
.sf-cta {
  background:
    radial-gradient(140% 160% at 88% 0%, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(100deg, var(--accent-ink) 0%, var(--accent) 58%, #14706a 100%);
  color: #eaf6f4;
  padding-block: var(--space-6);
}
.sf-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.sf-cta__text { max-width: 52ch; }
.sf-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
}
.sf-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sf-cta .sf-btn--primary { background: #fff; border-color: #fff; color: var(--accent-ink); }
.sf-cta .sf-btn--primary:hover { background: #eaf6f4; border-color: #eaf6f4; color: var(--accent-ink); }

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  .sf-feature__inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .sf-company__inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .sf-delivery__inner { grid-template-columns: 1fr; gap: var(--space-4); }
  .sf-delivery__map { max-width: 34rem; }
}

@media (max-width: 760px) {
  .sf-hero { min-height: clamp(24rem, 70vh, 32rem); }
  /* A phone shows a narrow slice of the photograph and the copy spans the full width, so the sweep
     stays deep further right than it does on a wide screen. */
  .sf-hero::after {
    background: linear-gradient(
      94deg,
      rgba(10, 24, 32, .9) 0%,
      rgba(10, 24, 32, .8) 52%,
      rgba(10, 24, 32, .56) 80%,
      rgba(10, 24, 32, .32) 100%
    );
  }
  .sf-hero__body { padding-block: var(--space-7) var(--space-6); }
  .sf-hero__title { max-width: none; }
  .sf-band { padding-block: var(--space-6); }
  .sf-strip__item { border-right: 0; border-bottom: var(--rule); padding-left: 0 !important; }
  .sf-strip__item:last-child { border-bottom: 0; }
  .sf-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
  .sf-cards--dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .sf-delivery__row { grid-template-columns: 1fr; gap: .15rem; }
  .sf-hero__actions .sf-btn { flex: 1 1 auto; justify-content: center; }
  .sf-cta__actions .sf-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- additions: the aside of the technology band, and the company photo ---------- */
.sf-feature__aside { display: grid; gap: var(--space-3); }
.sf-feature__note {
  margin: 0;
  padding-left: var(--space-4);
  border-left: 2px solid rgba(255, 255, 255, .28);
  font-size: var(--step--1);
  line-height: 1.55;
  color: rgba(234, 240, 242, .66);
}
.sf-company__figure { margin-top: var(--space-4); }
.sf-company__figure .sf-figure img, .sf-company__figure .sf-figure--empty { border-radius: var(--radius); }

/* The stand-in tile reads as a set rather than one block repeated: four quiet gradients, cycled. */
.sf-cards__item:nth-child(4n + 2) .sf-card-link__slot {
  background: linear-gradient(150deg, #e3e9ea 0%, #ccd8da 52%, #aebfc4 100%);
}
.sf-cards__item:nth-child(4n + 3) .sf-card-link__slot {
  background: linear-gradient(150deg, #dce7e6 0%, #c2d5d3 52%, #9db8b6 100%);
}
.sf-cards__item:nth-child(4n + 4) .sf-card-link__slot {
  background: linear-gradient(150deg, #e6ebec 0%, #d2dcdd 52%, #b4c4c6 100%);
}
