/* Frumco Group — Industrial Design & Editorial Architecture
 * Discipline: Radical reduction, optical typography, physical materiality.
 */

:root {
  --bg-white: #ffffff;
  --bg-stone: #f5f5f3;
  --bg-obsidian: #101010;

  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-tertiary: #86868b;

  --ink-light: #f5f5f7;
  --ink-light-muted: rgba(245, 245, 247, 0.68);
  --ink-light-subtle: rgba(245, 245, 247, 0.48);

  --hairline: rgba(29, 29, 31, 0.09);
  --hairline-strong: rgba(29, 29, 31, 0.16);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-plate: 20px;
  --radius-pill: 980px;

  --container: 1120px;
  --gutter: clamp(24px, 4.5vw, 56px);
  --nav-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-white);
  color: var(--ink);
  font-family: var(--font-text);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Navigation ───────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--over-dark {
  background: transparent;
  color: var(--ink-light);
}

.nav--over-dark .nav__link {
  opacity: 0.84;
}

.nav--light {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav__mark {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
}

/* ── Buttons & Text Links ─────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.25s var(--ease-out),
    opacity 0.25s var(--ease-out);
}

.pill:active {
  transform: scale(0.975);
}

.pill--light {
  background: var(--ink-light);
  color: var(--bg-obsidian);
}

.pill--light:hover {
  background: #ffffff;
}

.pill--dark {
  background: var(--ink);
  color: var(--ink-light);
}

.pill--dark:hover {
  background: #000000;
}

.pill--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.pill--ghost:hover {
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.008em;
  transition: opacity 0.25s var(--ease-out);
}

.text-link__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover .text-link__arrow {
  transform: translateX(4px);
}

.text-link--on-dark {
  color: var(--ink-light-muted);
}

.text-link--on-dark:hover {
  color: var(--ink-light);
}

.text-link--on-light {
  color: var(--ink);
}

.text-link--on-light:hover {
  opacity: 0.65;
}

/* ── Act I: Full-Bleed Obsidian Hero ──────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: min(100svh, 920px);
  background: var(--bg-obsidian);
  color: var(--ink-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 52%;
}

/* Delicate left & top-edge optical grounding without muting the right-side still life */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.44) 0%,
      rgba(16, 16, 16, 0) 20%
    ),
    linear-gradient(
      90deg,
      rgba(16, 16, 16, 0.72) 0%,
      rgba(16, 16, 16, 0.32) 38%,
      rgba(16, 16, 16, 0) 64%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 64px;
}

.hero__copy {
  max-width: 470px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.1vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.036em;
  color: var(--ink-light);
}

.hero__lead {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.014em;
  color: var(--ink-light-muted);
  max-width: 420px;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Act II: Manifesto Stillness ──────────────────────────────────────────── */

.manifesto {
  background: var(--bg-white);
  padding-block: clamp(104px, 13vw, 176px);
}

.manifesto__inner {
  max-width: 820px;
}

.manifesto__statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.68rem, 3.05vw, 2.65rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.manifesto__muted {
  color: var(--ink-tertiary);
}

.manifesto__footnote {
  margin: 40px 0 0;
  font-size: 15px;
  color: var(--ink-secondary);
  letter-spacing: -0.006em;
}

/* ── Act III: Studio Material Gallery ─────────────────────────────────────── */

.gallery {
  background: var(--bg-stone);
  padding-block: clamp(96px, 11vw, 148px);
}

.section-head {
  max-width: 560px;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-sub {
  margin: 14px 0 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  letter-spacing: -0.008em;
}

/* Featured primary line (Aseel Dates) */
.feature-plate {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.plate-frame {
  border-radius: var(--radius-plate);
  overflow: hidden;
  background: #e2e0dc;
  aspect-ratio: 4 / 3;
}

.plate-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}

.plate-frame:hover .plate-frame__img {
  transform: scale(1.018);
}

.plate-meta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.plate-meta__desc {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.spec-rows {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.spec-row__key {
  color: var(--ink-secondary);
  flex-shrink: 0;
}

.spec-row__val {
  color: var(--ink);
  text-align: right;
  font-weight: 400;
}

/* Secondary diptych (Sesame & Basmati) */
.plate-pair {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3.6vw, 44px);
}

.plate-item__caption {
  margin-top: 22px;
  max-width: 460px;
}

.plate-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plate-item__desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.plate-item__spec {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
}

.gallery__note {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gallery__note-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 660px;
}

.gallery__note-text strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── Act IV: Full-Bleed Port Plate & Execution ────────────────────────────── */

.port-band {
  width: 100%;
  background: var(--bg-white);
}

.port-plate {
  width: 100%;
  height: clamp(280px, 36vw, 520px);
  overflow: hidden;
  background: #cdd3da;
}

.port-plate__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.port-caption {
  padding-top: 14px;
  font-size: 12px;
  color: var(--ink-tertiary);
  letter-spacing: -0.005em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.port-caption a {
  transition: color 0.2s var(--ease-out);
}

.port-caption a:hover {
  color: var(--ink-secondary);
}

.execution {
  background: var(--bg-white);
  padding-block: clamp(92px, 11vw, 144px);
}

.pillars {
  margin-top: clamp(44px, 5.5vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 60px);
}

.pillar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.pillar__body {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.64;
  color: var(--ink-secondary);
}

/* ── Act V: Heritage & Quiet Close ────────────────────────────────────────── */

.close-band {
  background: var(--bg-stone);
  padding-block: clamp(92px, 11vw, 140px);
}

.close-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.close-story__body {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink-secondary);
  max-width: 510px;
}

.close-story__link {
  margin-top: 28px;
}

.desk-card {
  padding-top: 4px;
}

.desk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.desk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
}

.desk-row__label {
  color: var(--ink-secondary);
}

.desk-row__value {
  color: var(--ink);
  font-weight: 400;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.desk-row__value a {
  transition: opacity 0.25s var(--ease-out);
}

.desk-row__value a:hover {
  opacity: 0.6;
}

.desk-action {
  margin-top: 32px;
}

/* ── Inner Pages (/about & /contact) ──────────────────────────────────────── */

.page-hero {
  padding-top: calc(var(--nav-h) + clamp(68px, 9vw, 118px));
  padding-bottom: clamp(56px, 7vw, 84px);
  background: var(--bg-white);
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.034em;
  color: var(--ink);
  max-width: 720px;
}

.page-hero__lead {
  margin: 22px 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 620px;
  letter-spacing: -0.012em;
}

.prose-band {
  background: var(--bg-stone);
  padding-block: clamp(72px, 9vw, 116px);
}

.prose-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.prose-grid + .prose-grid {
  margin-top: clamp(56px, 7vw, 84px);
  padding-top: clamp(56px, 7vw, 84px);
  border-top: 1px solid var(--hairline);
}

.prose-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.prose-copy p {
  margin: 0;
}

.prose-copy p + p {
  margin-top: 18px;
}

/* Contact layout & quiet form */
.contact-band {
  background: var(--bg-stone);
  padding-block: clamp(68px, 8vw, 108px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.form {
  display: grid;
  gap: 22px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: -0.005em;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease-out);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--ink);
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25' stroke='%236e6e73' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field__textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.55;
}

.form__actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form__status {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  min-height: 20px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--hairline);
  padding-block: 36px 44px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-secondary);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.footer__mark {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer__nav a {
  transition: color 0.2s var(--ease-out);
}

.footer__nav a:hover {
  color: var(--ink);
}

/* ── Restrained Scroll Motion ─────────────────────────────────────────────── */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.85s var(--ease-out),
      transform 0.85s var(--ease-out);
  }

  .js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .feature-plate,
  .close-grid,
  .prose-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .nav__brand {
    gap: 6px;
    font-size: 15px;
  }

  .nav__mark {
    width: 17px;
    height: 17px;
  }

  .nav__links {
    gap: 14px;
  }

  .nav__link {
    font-size: 12.5px;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .hero__img {
    object-position: 74% 34%;
  }

  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.22) 0%,
      rgba(16, 16, 16, 0.54) 48%,
      rgba(16, 16, 16, 0.92) 86%,
      rgba(16, 16, 16, 0.96) 100%
    );
  }

  .hero__content {
    padding-top: 120px;
    padding-bottom: 52px;
  }

  .plate-pair,
  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
