/* Homepage - editorial dark hero + portfolio-first layout */

.page-home {
  --ink: #0c0c0d;
  --ink-soft: #1a1a1e;
  --paper: #faf9f7;
  --muted: #6b6b76;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: #e4e2dd;
  --accent: #e8a54b;
  --accent-deep: #c47f2a;
  --radius: 14px;
  background: var(--paper);
  color: var(--ink);
}

.page-home a { color: inherit; }

.page-home .shell {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* Nav */
.home-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 22px 0;
}
.home-nav .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.home-nav .brand img {
  display: block;
  height: 36px;
  width: auto;
}
.home-nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
}
.home-nav .links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s;
}
.home-nav .links a:hover { color: #fff; }
.home-nav .links .nav-cta {
  color: var(--ink);
  background: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.home-nav .links .nav-cta:hover {
  background: var(--accent);
  color: var(--ink);
}

/* Hero */
.hero-panel {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 120px 0 88px;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(232, 165, 75, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(99, 102, 241, 0.08), transparent 50%);
  pointer-events: none;
}
.hero-panel .shell { position: relative; z-index: 1; }
.hero-panel .kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-panel h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-top: 20px;
}
.hero-panel .sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.hero-panel .actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-panel .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.hero-panel .btn-primary:hover {
  background: #f0b96a;
  transform: translateY(-1px);
}
.hero-panel .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.hero-panel .btn-secondary:hover { border-color: rgba(255, 255, 255, 0.45); }

.hero-stats {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  max-width: 100%;
}
@media (max-width: 820px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
}
.hero-stats dl { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.hero-stats dd {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #fff;
}
.hero-stats dd span {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* Work bento */
.work-showcase {
  padding: 72px 0 80px;
}
.work-showcase .head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.work-showcase .head > div {
  max-width: min(52ch, 100%);
}
.work-showcase .head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.work-showcase .head p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.9375rem;
}
.work-showcase .head a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
}
.work-showcase .head a:hover { text-decoration: underline; }

.bento {
  --bento-h: clamp(420px, 40vw, 540px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "hero side-a"
    "hero side-b";
  gap: 16px;
  height: var(--bento-h);
  align-items: stretch;
}
@media (max-width: 820px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "hero"
      "side-a"
      "side-b";
    height: auto;
  }
}
.bento .tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--ink-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(12, 12, 13, 0.08);
}
.bento .tile--hero { grid-area: hero; }
.bento .tile--side-a { grid-area: side-a; }
.bento .tile--side-b { grid-area: side-b; }
@media (max-width: 820px) {
  .bento .tile--hero { min-height: 300px; }
  .bento .tile--side-a,
  .bento .tile--side-b { min-height: 200px; }
}
.bento .tile-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--ink-soft);
}
.bento .tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}
.bento .tile--hero .tile-media img {
  object-position: center 18%;
}
.bento .tile:hover .tile-media img {
  transform: scale(1.03);
}
.bento .tile .meta {
  flex: 0 0 92px;
  padding: 14px 18px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento .tile .tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.bento .tile .tag.client { color: #fbbf24; }
.bento .tile h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bento .tile p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pricing */
.pricing-block {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--radius) + 4px);
  padding: 48px;
  max-width: 420px;
  margin-inline: auto;
}
@media (max-width: 720px) {
  .pricing-block {
    padding: 32px 24px;
  }
}
.pricing-block .plan .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pricing-block .plan .price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: -0.03em;
}
.pricing-block .plan .price small {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted);
}
.pricing-block .plan .desc {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 32ch;
}
.pricing-block .plan-pay {
  margin-top: 20px;
}
.pricing-block .plan-pay stripe-buy-button {
  display: block;
}
.pricing-block .pay-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 32ch;
}
.pricing-block .pay-note a {
  color: var(--accent-deep);
  font-weight: 600;
}
.pricing-block .pay-note--price {
  color: var(--ink);
  max-width: 36ch;
}
.pricing-block .pay-note--price strong {
  font-weight: 700;
}
.pricing-block .divider {
  width: 1px;
  height: 100%;
  min-height: 120px;
  background: var(--line-dark);
}

/* Values */
.values-row {
  padding: 80px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) { .values-row { grid-template-columns: 1fr; } }
.values-row article h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}
.values-row article p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}
.values-row article::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* Process */
.process-strip {
  padding: 64px 0 80px;
  border-top: 1px solid var(--line-dark);
}
.process-strip h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 36px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-grid .item .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  color: var(--line-dark);
  font-weight: 500;
  line-height: 1;
}
.process-grid .item h3 {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.process-grid .item p {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Final CTA */
.home-cta {
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 64px;
}
.home-cta h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}
.home-cta p {
  margin: 14px auto 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}
.home-cta .actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.home-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.home-footer nav {
  display: flex;
  gap: 24px;
}
.home-footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.home-footer nav a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .home-nav .links a:not(.nav-cta) { display: none; }
  .hero-panel { padding-top: 100px; }
}
