/* ML Workflow — editorial usability theme */
:root {
  --color-bg: #eef2f6;
  --color-bg-alt: #e2e8f0;
  --color-surface: #f7fafc;
  --color-ink: #1a2332;
  --color-ink-muted: #4a5568;
  --color-primary: #0a3d62;
  --color-primary-deep: #062a44;
  --color-accent: #e85d04;
  --color-accent-hover: #c44e03;
  --color-line: #c5d0dc;
  --color-error: #b42318;
  --color-success: #0f6b4c;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --radius: 2px;
  --shadow-soft: 0 12px 40px rgba(10, 61, 98, 0.08);
  --header-h: 4.25rem;
  --max: 72rem;
  --reading: 42rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.025rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(232, 93, 4, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(10, 61, 98, 0.07), transparent 45%),
    var(--color-bg);
  min-height: 100vh;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 var(--space-sm); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 0 0 var(--space-sm); }
h3 { font-size: 1.2rem; margin: 0 0 var(--space-xs); }

p { margin: 0 0 var(--space-sm); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap--narrow { width: min(100% - 2rem, 40rem); }
.wrap--reading { width: min(100% - 2rem, var(--reading)); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-xs);
}

.section {
  padding: var(--space-xl) 0;
}

.section--tight { padding-top: var(--space-lg); }
.section--alt { background: var(--color-bg-alt); }
.section--error { min-height: 60vh; display: grid; align-items: center; }

.section__title { margin-bottom: var(--space-xs); }
.section__lead {
  max-width: 40rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-md);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(26, 35, 50, 0.06);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.site-header__brand:hover { color: var(--color-accent); }

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-header__link {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.site-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.site-header__link:hover::after,
.site-header__link.is-active::after {
  transform: scaleX(1);
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-header__toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--color-ink);
}

@media (max-width: 860px) {
  .site-header__toggle { display: flex; }
  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    padding: var(--space-sm) 1rem var(--space-md);
    display: none;
  }
  .site-header__nav.is-open { display: block; }
  .site-header__list { flex-direction: column; gap: 0.85rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}
.btn--secondary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary-deep);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.1rem;
}
.text-link:hover { color: var(--color-accent); }

/* Hero — full-bleed */
.hero--home {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 42, 68, 0.35) 0%, rgba(6, 42, 68, 0.82) 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-xl) 0 var(--space-lg);
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  color: #fff;
}

.hero__title {
  max-width: 18ch;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.hero__lead {
  max-width: 36rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.hero__actions .btn--ghost:hover {
  background: #fff;
  color: var(--color-primary);
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
  animation: rise 0.7s var(--ease) both;
}

.page-hero__lead {
  max-width: 40rem;
  color: var(--color-ink-muted);
  font-size: 1.08rem;
}

.page-hero--media .page-hero__img {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-md) auto 0;
  max-height: 22rem;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Feature / offers */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.feature-split__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-accent);
  border-radius: 1px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.offer-item__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius);
}

.offer-item__text { color: var(--color-ink-muted); font-size: 0.95rem; }

.pull-quote {
  margin: 0 0 var(--space-md);
  padding: 0;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.4;
}

.pull-quote footer {
  color: var(--color-ink-muted);
  font-size: 0.92rem;
}

.journal-preview {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.journal-preview__item {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-line);
}

.journal-preview time {
  font-size: 0.82rem;
  color: var(--color-ink-muted);
}

.cta-band {
  text-align: center;
  background: var(--color-primary);
  color: #fff;
}

.cta-band a { color: #fff; }
.cta-band .btn--primary { margin-top: var(--space-sm); }
.cta-band__title { color: #fff; }

/* Services list */
.service-list {
  display: grid;
  gap: var(--space-lg);
}

.service-list__item {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: var(--space-md);
  align-items: start;
}

.service-list__item img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.service-list__tagline {
  color: var(--color-accent);
  font-weight: 600;
}

.service-list__meta {
  font-size: 0.92rem;
  color: var(--color-ink-muted);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #fff;
  padding: 0.25rem 0.55rem;
  margin-bottom: var(--space-xs);
}

.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 0.5rem; }

.detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.lede {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
}

/* Method */
.method-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.method-track__step {
  padding: var(--space-md);
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-soft);
  animation: rise 0.6s var(--ease) both;
}

.method-track__step:nth-child(2) { animation-delay: 0.08s; border-left-color: #1a6a8a; }
.method-track__step:nth-child(3) { animation-delay: 0.16s; border-left-color: #c45c1a; }
.method-track__step:nth-child(4) { animation-delay: 0.24s; border-left-color: var(--color-accent); }

.method-track__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

/* People / reviews / posts */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.person img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
}

.person figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.person span { color: var(--color-ink-muted); font-size: 0.9rem; }

.rate-table {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.rate-table__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-line);
}

.rate-table__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  white-space: nowrap;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.review-card {
  margin: 0;
  padding: var(--space-md);
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent);
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
}

.review-card__service {
  color: var(--color-primary);
  font-weight: 600;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-card__body { padding-top: var(--space-sm); }
.post-card time { font-size: 0.82rem; color: var(--color-ink-muted); }
.post-meta { color: var(--color-ink-muted); font-size: 0.92rem; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-md) 0;
}
.post-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--color-line);
  padding: 0.25rem 0.55rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-form,
.contact-aside {
  background: var(--color-surface);
  padding: var(--space-md);
  border: 1px solid var(--color-line);
}

.form-field {
  margin-bottom: var(--space-sm);
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: var(--color-error);
}

.form-field__error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: var(--space-sm);
  padding: 0.75rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: rgba(15, 107, 76, 0.12);
  color: var(--color-success);
}

.form-status.is-error {
  background: rgba(180, 35, 24, 0.1);
  color: var(--color-error);
}

/* Legal */
.legal h2 { margin-top: var(--space-md); }
.table-wrap { overflow-x: auto; margin: var(--space-md) 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  border: 1px solid var(--color-line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--color-bg-alt); }

/* Footer */
.site-footer {
  background: var(--color-primary-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: auto;
}

.site-footer a { color: #fff; }
.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-md);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-md) auto 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -8px 32px rgba(26, 35, 50, 0.12);
  padding: var(--space-sm) 0;
  animation: rise 0.45s var(--ease) both;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.cookie-banner__text {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-split,
  .service-list__item,
  .contact-layout,
  .site-footer__inner,
  .offer-grid,
  .people-grid,
  .post-grid,
  .review-grid,
  .rate-table__row {
    grid-template-columns: 1fr;
  }

  .rate-table__price { white-space: normal; }
}

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