/* ─────────────────────────────────────────────────────────
   CF Digital — v1
   Editorial minimal · warm cream · serif headlines
   ───────────────────────────────────────────────────────── */

:root {
  /* palette — derived from the CF Digital logo (cobalt navy + saffron) */
  --bg:        #FAF7EE;          /* very soft warm white */
  --bg-alt:    #F1ECDD;           /* slightly deeper band */
  --ink:       #0E1535;           /* near-black navy */
  --ink-soft:  #2D3768;           /* mid navy for body */
  --muted:     #7E7C8A;           /* warm-cool grey */
  --line:      #E2DBC7;           /* warm light line */
  --accent:    #1B2A8C;           /* cobalt — logo blue */
  --accent-soft:#3A4BC4;
  --gold:      #F5A623;           /* saffron — logo yellow */
  --gold-soft: #FFB840;
  --gold-deep: #C7821A;           /* darker saffron, contrast on cream */
  --paper:     #FFFCF5;           /* lighter cream for cards */

  /* type */
  --serif: "Fraunces", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans:  "Inter", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;

  /* layout */
  --container: 1200px;
  --narrow:    720px;
  --pad:       clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

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

/* ─────────  CONTAINER  ───────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.container.narrow { max-width: var(--narrow); }

/* ─────────  NAV  ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(246, 241, 232, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 76px;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--ink);
}
.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.brand-name {
  font-style: italic;
  color: var(--accent);
  position: relative;
  top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  font-size: 14px;
  letter-spacing: 0;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width .3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 16px !important;
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }

@media (max-width: 640px) {
  .nav-inner { min-height: 68px; }
  .brand { gap: 10px; font-size: 18px; }
  .brand-logo { width: 38px; height: 38px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 7px 13px !important; }
}

/* ─────────  HERO  ───────── */
.hero {
  padding: clamp(56px, 7vw, 96px) var(--pad) clamp(64px, 8vw, 104px);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(245, 166, 35, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 90%, rgba(27, 42, 140, 0.07), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.hero-text { min-width: 0; }

.hero-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--bg-alt) 0%, #DAC8A8 100%);
  box-shadow:
    0 1px 0 rgba(26, 23, 21, 0.04),
    0 24px 60px -32px rgba(26, 23, 21, 0.45);
  min-height: 360px;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1);
}
.hero-figure:hover img { transform: scale(1.03); }

.hero-fig-cap {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
  letter-spacing: 0.01em;
}

.hero-figure.img-fallback img,
.pkg-figure.img-fallback img { display: none; }
.hero-figure.img-fallback,
.pkg-figure.img-fallback {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(245, 166, 35, 0.28), transparent 60%),
    linear-gradient(160deg, var(--bg-alt) 0%, #C9C0A0 100%);
}
.hero-figure.img-fallback::after,
.pkg-figure.img-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(26,23,21,0.04) 14px 15px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-figure {
    aspect-ratio: 16 / 10;
    max-height: 420px;
    min-height: 0;
  }
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--ink);
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 48px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta .dot { opacity: 0.5; }

@media (max-width: 540px) {
  .hero {
    padding-top: 42px;
    gap: 34px;
  }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-title {
    font-size: clamp(38px, 12vw, 54px);
    margin-bottom: 24px;
  }
  .hero-sub { margin-bottom: 32px; }
  .hero-cta { gap: 10px; margin-bottom: 36px; }
  .hero-cta .btn {
    width: 100%;
    min-height: 52px;
  }
  .hero-meta {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* ─────────  BUTTONS  ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  font-size: 14px;
  letter-spacing: 0;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(14, 21, 53, 0.5);
}
.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ─────────  MANIFESTO  ───────── */
.manifesto {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.lead {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
}
.lead em {
  font-style: italic;
  color: var(--accent);
}
.lead-sub {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}
.lead-sub em { font-style: italic; color: var(--ink); }
.lead-sub strong { color: var(--ink); font-weight: 600; }

/* ─────────  SECTION HEAD  ───────── */
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}

.section-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 55ch;
  margin: 0;
}

.section-head { margin-bottom: 80px; }
.section-head.centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.section-head.centered .section-eyebrow,
.section-head.centered .section-lead { justify-content: center; margin-inline: auto; }
.section-head.centered .section-eyebrow { display: inline-flex; }

/* ─────────  SERVICES  ───────── */
.services {
  padding: clamp(80px, 12vw, 140px) 0;
}

.package {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.package:last-child { border-bottom: 1px solid var(--line); }

.pkg-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.pkg-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pkg-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--bg-alt) 0%, #DAC8A8 100%);
  box-shadow: 0 12px 32px -20px rgba(26, 23, 21, 0.3);
}
.pkg-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.pkg-figure:hover img { transform: scale(1.04); }

.pkg-main { min-width: 0; }
.pkg-head { margin-bottom: 56px; }

.pkg-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.pkg-tag {
  font-style: italic;
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
  margin: 0;
}

.pkg-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  margin-bottom: 56px;
}

.pkg-block h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pkg-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pkg-block li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
  padding-left: 18px;
}
.pkg-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 1px;
  background: var(--muted);
}

.pkg-quote {
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 32ch;
}
.pkg-quote em { color: var(--accent); }
.pkg-quote strong { font-weight: 500; font-style: normal; color: var(--ink); }

@media (max-width: 900px) {
  .package { grid-template-columns: 1fr; gap: 32px; }
  .pkg-side { position: static; flex-direction: row; align-items: center; gap: 20px; }
  .pkg-figure { aspect-ratio: 16 / 9; max-width: 220px; flex: 1; }
  .pkg-num { font-size: 36px; flex-shrink: 0; }
  .pkg-body { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .section-head { margin-bottom: 48px; }
  .package { padding: 44px 0; }
  .pkg-head { margin-bottom: 36px; }
  .pkg-side { flex-direction: column; align-items: flex-start; }
  .pkg-figure { max-width: 100%; aspect-ratio: 16 / 10; }
  .pkg-body { margin-bottom: 40px; }
}

/* ─────────  SERVICES REFRESH  ───────── */
.services-refresh {
  padding: 0;
  background: var(--bg);
}

.services-overview {
  padding: clamp(58px, 7vw, 86px) 0 clamp(56px, 7vw, 82px);
  background:
    radial-gradient(ellipse at 12% 10%, rgba(245, 166, 35, 0.12), transparent 45%),
    linear-gradient(180deg, var(--accent) 0%, var(--ink) 100%);
  color: var(--bg);
}

.services-intro {
  max-width: 760px;
  margin: 0 auto clamp(42px, 5vw, 58px);
  text-align: center;
}
.services-intro .section-eyebrow {
  display: inline-flex;
  color: rgba(250, 247, 238, 0.72);
  margin-bottom: 18px;
}
.services-intro .section-eyebrow::before {
  background: rgba(250, 247, 238, 0.58);
}
.services-intro .section-title {
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.services-intro .section-lead {
  color: rgba(250, 247, 238, 0.78);
  margin: 0 auto;
  max-width: 58ch;
}

.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px);
}

.service-summary-card {
  min-width: 0;
}

.service-card-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(250, 247, 238, 0.72);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--gold);
}

.service-card-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 18px;
  background: rgba(250, 247, 238, 0.72);
}

.service-summary-card h3,
.service-visual-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-summary-card h3 {
  color: #fff;
  margin-bottom: 20px;
}
.service-summary-card p {
  margin: 0 0 18px;
  color: rgba(250, 247, 238, 0.78);
  font-size: 16px;
  line-height: 1.6;
}
.service-summary-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-summary-card li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: rgba(250, 247, 238, 0.82);
  font-size: 14.5px;
  line-height: 1.45;
}
.service-summary-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

.services-action {
  display: flex;
  justify-content: center;
  margin-top: clamp(38px, 5vw, 54px);
}
.services-action .btn-primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  box-shadow: -6px 6px 0 var(--gold);
}
.services-action .btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: -8px 8px 0 rgba(255, 255, 255, 0.18);
}

.services-visual {
  padding: clamp(58px, 7vw, 86px) 0 clamp(68px, 8vw, 104px);
  background: var(--bg);
}
.services-visual-head {
  max-width: 780px;
  margin: 0 auto clamp(42px, 6vw, 64px);
  text-align: center;
}
.services-visual-head .section-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
}
.services-visual-head .section-title {
  color: var(--gold-deep);
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.services-visual-head .section-lead {
  margin: 0 auto;
}

.service-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.service-visual-card {
  min-width: 0;
  background: var(--bg);
}
.service-visual-card figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--bg-alt) 0%, #C9C0A0 100%);
}
.service-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}
.service-visual-card figure.img-fallback img {
  display: none;
}
.service-visual-card figure.img-fallback {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(245, 166, 35, 0.28), transparent 60%),
    linear-gradient(160deg, var(--bg-alt) 0%, #C9C0A0 100%);
}
.service-visual-body {
  padding: 28px clamp(20px, 3vw, 34px) 0;
}
.service-visual-body .service-card-rule {
  background: var(--accent);
  margin-bottom: 18px;
}
.service-visual-card h3 {
  color: var(--gold-deep);
  margin-bottom: 16px;
  font-size: clamp(18px, 1.8vw, 22px);
}
.service-visual-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .service-summary-grid,
  .service-visual-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .service-summary-card {
    max-width: 620px;
  }
  .service-visual-card {
    max-width: 680px;
    margin: 0 auto;
  }
  .service-visual-body {
    padding-inline: 0;
  }
}

@media (max-width: 540px) {
  .services-overview,
  .services-visual {
    padding-top: 62px;
  }
  .services-intro,
  .services-visual-head {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .services-intro .section-eyebrow,
  .services-visual-head .section-eyebrow {
    display: flex;
  }
  .services-action .btn {
    width: 100%;
  }
}

/* ─────────  BANNER (between services and approach)  ───────── */
.banner {
  position: relative;
  height: clamp(280px, 38vw, 520px);
  overflow: hidden;
  background: var(--ink);
}
.banner-figure {
  margin: 0;
  position: absolute;
  inset: 0;
}
.banner-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.6) contrast(1.05);
}
.banner-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
  background:
    linear-gradient(135deg, rgba(14, 21, 53, 0.55) 0%, rgba(27, 42, 140, 0.4) 100%);
}
.banner-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 44px);
  color: var(--bg);
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.banner-figure.img-fallback {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(245, 166, 35, 0.45), transparent 60%),
    linear-gradient(160deg, #1B2A8C 0%, #0E1535 100%);
}
.banner-figure.img-fallback img { display: none; }

/* ─────────  APPROACH  ───────── */
.approach {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.principle {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition: background .25s ease;
}
.principle:last-child { border-right: 0; }
.principle:hover { background: var(--bg); }

.p-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 28px;
}
.principle h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.principle p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
}

/* ─────────  AI / LEVERAGE  ───────── */
.ai {
  padding: clamp(64px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.ai .section-head {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}
.ai .section-head .section-eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
}
.ai .section-head .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.ai-col {
  padding: clamp(32px, 4vw, 56px);
  position: relative;
}

.ai-col-machine {
  background: linear-gradient(180deg, rgba(126, 124, 138, 0.04), transparent 40%);
}
.ai-col-human {
  background: linear-gradient(180deg, rgba(27, 42, 140, 0.05), transparent 40%);
}

.ai-divider {
  width: 1px;
  background: var(--line);
  position: relative;
}
.ai-divider::before {
  content: "→";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}

.ai-col-h {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.ai-col-machine .ai-col-h { color: var(--muted); }
.ai-col-human .ai-col-h { color: var(--accent); }

.ai-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ai-col li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 12px 0;
  position: relative;
  padding-left: 22px;
}
.ai-col-machine li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--muted);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.ai-col-human li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--gold-deep);
  font-weight: 600;
}

.ai-closing {
  margin: clamp(48px, 6vw, 72px) auto 0;
  max-width: 36em;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.ai-closing strong {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(180deg, transparent 65%, rgba(245, 166, 35, 0.45) 65%);
  padding: 0 4px;
}

@media (max-width: 760px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-divider {
    width: auto;
    height: 1px;
  }
  .ai-divider::before {
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

/* ─────────  WORK / PORTFOLIO  ───────── */
.work {
  padding: clamp(64px, 8vw, 104px) 0;
}

.work-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: 80px;
}
.work-lead {
  align-self: end;
  max-width: 42ch;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-soft);
}
@media (max-width: 800px) {
  .work-head { grid-template-columns: 1fr; gap: 24px; }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.6,.2,1),
              box-shadow .35s cubic-bezier(.2,.6,.2,1),
              border-color .35s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -22px rgba(14, 21, 53, 0.35);
}

.work-link {
  display: block;
  color: inherit;
}

.work-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-alt) 0%, #C9C0A0 100%);
}
.work-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.work-card:hover .work-figure img { transform: scale(1.05); }

.work-figure.img-fallback img { display: none; }
.work-figure.img-fallback {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(245, 166, 35, 0.28), transparent 60%),
    linear-gradient(160deg, var(--bg-alt) 0%, #C9C0A0 100%);
}

.work-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(14, 21, 53, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}

.work-meta {
  padding: 28px 28px 32px;
}
.work-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.work-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.work-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 20px;
}
.work-cta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s ease, color .2s ease;
}
.work-card:hover .work-cta {
  gap: 12px;
  color: var(--gold-deep);
}

.work-note {
  margin-top: 56px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
}
.work-note a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .2s ease;
}
.work-note a:hover { color: var(--gold-deep); }

/* ─────────  FILTER  ───────── */
.filter {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.filter-col {
  padding: clamp(32px, 5vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.filter-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
}
.filter-no::before { background: var(--muted); }
.filter-yes::before { background: var(--gold); }

.filter-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.filter-no .filter-label { color: var(--muted); }
.filter-yes .filter-label { color: var(--accent); }

.filter-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-col li {
  font-size: 17px;
  padding: 12px 0;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.filter-col li:last-child { border-bottom: 0; }
.filter-no li::before {
  content: "—  ";
  color: var(--muted);
}
.filter-yes li::before {
  content: "→  ";
  color: var(--gold-deep);
  font-weight: 600;
}

@media (max-width: 700px) {
  .filter-grid { grid-template-columns: 1fr; }
}

/* ─────────  CONTACT FORM  ───────── */
.contact {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.apply-form {
  display: grid;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.field label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238A7F75' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}
@media (max-width: 600px) { .radio-group { grid-template-columns: 1fr; } }

.radio, .checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-soft);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
  text-transform: none;
  letter-spacing: 0;
}
.radio:hover, .checkbox:hover { border-color: var(--ink-soft); }
.radio input, .checkbox input { accent-color: var(--accent); width: 16px; height: 16px; }
.radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg);
  color: var(--ink);
}

.consent .checkbox { font-size: 15px; }

.btn-submit {
  margin-top: 12px;
  padding: 18px 32px;
  font-size: 15px;
  letter-spacing: 0;
  width: fit-content;
}

@media (max-width: 540px) {
  .btn-submit {
    width: 100%;
  }
}

.form-note {
  margin: 16px 0 0;
  padding: 16px 20px;
  font-size: 15px;
  border-radius: 4px;
  border: 1px solid;
}
.form-note.success { background: rgba(27, 42, 140, 0.06); border-color: var(--accent); color: var(--accent); }
.form-note.error   { background: #fff5f5; border-color: #c53030; color: #c53030; }

/* ─────────  FOOTER  ───────── */
.footer {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(245, 166, 35, 0.08), transparent 50%),
    linear-gradient(180deg, var(--accent) 0%, var(--ink) 100%);
  color: var(--bg);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1.45fr .95fr;
  gap: 34px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 247, 238, 0.15);
}
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-company-info { grid-column: span 2; }
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-company-info { grid-column: auto; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-style: italic;
  color: var(--gold);
}
.footer-tag {
  font-size: 14px;
  color: rgba(250, 247, 238, 0.78);
  line-height: 1.6;
  margin: 0;
}

.footer-h {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(250, 247, 238, 0.88);
  transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover { color: var(--gold); transform: translateX(2px); }

.footer-company-info p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(250, 247, 238, 0.78);
}
.footer-company-info strong {
  color: rgba(250, 247, 238, 0.92);
  font-weight: 700;
}
.footer-company-info .company-number {
  display: inline-block;
  white-space: nowrap;
}
.footer-company-info p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .footer-company-info p:first-of-type {
    font-size: clamp(11px, 3.2vw, 13px);
  }
}

.footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(250, 247, 238, 0.55);
  letter-spacing: 0.02em;
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ─────────  SCROLL REVEAL  ───────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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