/* ============ Shared section frame ============ */
.section-dark { position: relative; background: var(--bg); z-index: 1; }

/* ============ About ============ */
.about { padding-top: 240px; }
.about__body { margin-top: 120px; display: flex; flex-direction: column; gap: 52px; }
.about__cols { display: flex; justify-content: space-between; gap: 40px; padding-top: 35px; }
.about__desc { width: 515px; font-size: 24px; line-height: 1.3; letter-spacing: -0.04em; color: var(--muted-2); }
.about__desc b, .about__desc .hl { color: var(--fg); }
.about__desc b { font-weight: 500; }
.about__side { width: 285px; font-size: 18px; line-height: 1.3; letter-spacing: -0.04em; color: var(--muted-2); }
.about .btn--ghost { align-self: flex-start; }

.about__image-wrap { height: 900px; margin-top: 200px; display: flex; justify-content: center; padding: 0 var(--pad); }
.about__image { width: 100%; max-width: 1360px; height: 900px; border-radius: 24px; /* fixed, like the original */ overflow: hidden; transform: translateY(-80px) scale(.9);
  transform-origin: 50% 50%; will-change: transform; }

/* Original abstract scene in place of a photo */
.scene { position: relative; width: 100%; height: 100%; background: radial-gradient(120% 90% at 70% 10%, #ffffff 0%, #ebe9e4 55%, #e0ddd7 100%); }
.scene__glow { position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 35%, rgba(254,217,112,.45), transparent 70%); }
.scene__grid { position: absolute; left: 4%; right: 4%; bottom: 0; height: 42%; transform: perspective(900px) rotateX(58deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(29,54,85,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(29,54,85,.08) 1px, transparent 1px);
  background-size: 22px 22px; border: 2px solid #d3d0c9; border-radius: 6px; }
.monitor { position: absolute; left: 50%; top: 9%; width: 62%; transform: translateX(-50%) rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; z-index: 2; }
.monitor__screen { position: relative; color: #fff; aspect-ratio: 16/10; border-radius: 14px; border: 10px solid #111; overflow: hidden;
  background: radial-gradient(70% 90% at 30% 60%, #2d4f7a 0%, #1d3655 40%, #0f1f33 100%); box-shadow: 0 40px 120px rgba(29,54,85,.3); }
.monitor__blur { position: absolute; left: 18%; top: 10%; width: 32%; height: 95%; border-radius: 45% 45% 10% 10%;
  background: radial-gradient(60% 50% at 50% 30%, rgba(254,217,112,.75) 0%, rgba(254,217,112,.2) 60%, transparent 100%); filter: blur(14px); animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: translateX(0) skewX(0); } 50% { transform: translateX(14px) skewX(-4deg); } }
.monitor__copy { position: absolute; right: 8%; top: 22%; font-size: clamp(16px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.03em; display: flex; flex-direction: column; }
.monitor__copy .dim { color: rgba(255,255,255,.6); }
.monitor__copy .pill { font-style: normal; align-self: flex-end; margin-top: 12px; font-size: 11px; background: #fff; color: #111; padding: 5px 10px; border-radius: 6px; }
.monitor__foot { position: absolute; left: 6%; bottom: 10%; font-size: clamp(10px, 1.1vw, 15px); line-height: 1.25; }
.monitor__foot .chips { display: flex; gap: 6px; margin-top: 10px; }
.monitor__foot .chips i { width: 54px; height: 16px; border-radius: 4px; background: rgba(255,255,255,.18); }
.monitor__stand { width: 22%; height: 90px; margin: 0 auto; background: linear-gradient(#1a1a1a, #0a0a0a); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }

/* ============ Works ============ */
.works { padding-top: 240px; padding-bottom: 240px; }
.works__body { margin-top: 120px; display: flex; justify-content: space-between; padding-bottom: 120px; }
.works__desc { width: 515px; font-size: 24px; line-height: 1.3; letter-spacing: -0.04em; }
.works__sub { width: 285px; font-size: 18px; line-height: 1.3; font-weight: 400; letter-spacing: -0.02em; color: var(--muted-2); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--pad); }
@media (min-width: 1101px) {   /* a touch wider than the 1200px reviews row and about image */
  .projects { width: 1300px; max-width: calc(100% - 2 * var(--pad)); margin: 0 auto; padding: 0; }
}
.card { --hover-ease: cubic-bezier(.65, 0, .35, 1); position: relative; height: 738px; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, var(--c1), var(--c2));
  display: block; isolation: isolate; color: #fff; }
.card__tags { position: absolute; top: 24px; right: 24px; display: flex; gap: 6px; z-index: 3; }
.card__tags i { font-style: normal; font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; padding: 7px 11px; border-radius: 8px; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); color: #fff; }
.card--light .card__tags i { background: rgba(255,255,255,.35); color: #fff; }
.card__art { position: absolute; inset: 0; display: grid; place-items: center; transform: scale(1.08); transition: transform .65s var(--hover-ease); z-index: 1; }
.card:hover .card__art { transform: scale(1); }
.card__foot { position: absolute; left: 32px; right: 32px; bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 3; }
.card__foot h3 { font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; text-shadow: 0 2px 18px rgba(5,15,30,.35); }
.card__foot p { font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: rgba(255,255,255,.85); margin-top: 8px; }
.card--light .card__foot h3 { color: #fff; }
.card--ink { color: var(--navy); }
.card--ink .card__foot p { color: rgba(29,54,85,.85); }
.card--ink .card__foot h3 { text-shadow: none; }
.card--ink .card__tags i { background: rgba(255,255,255,.6); color: var(--navy); }
.card--ink .card__plus { background: var(--navy); color: #fff; }
.card__plus { width: 40px; height: 40px; border-radius: 16px; background: #fff; color: #111; display: grid; place-items: center;
  transform: scale(0); transition: transform .65s var(--hover-ease); }
.card__plus svg { width: 14px; height: 14px; transition: transform .65s var(--hover-ease); }
.card:hover .card__plus { transform: scale(1); }
.card:hover .card__plus svg { transform: rotate(135deg); }
.card .roll > span { transition: transform .65s var(--hover-ease); }

/* card art (original placeholder illustrations) */
/* programme card notes: a white stat sheet led by one big number, with two small stat notes either side.
   Each card sets one tilt (--r) and the side notes lean against it, so the four cards share one rhythm */
.note { position: absolute; border-radius: 16px; box-shadow: 0 26px 50px rgba(5,15,30,.45); }
.note--a { left: 50%; top: 46%; width: 290px; height: 210px; margin: -105px 0 0 -145px; padding: 24px; background: #fff; color: var(--navy); rotate: var(--r, -4deg); }
.note--a b { display: block; font-size: 64px; line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.note--a span { display: block; margin-top: 6px; font-size: 18px; line-height: 1.2; letter-spacing: -0.02em; }
.note--a em { position: absolute; left: 24px; right: 24px; bottom: 20px; font-style: normal; font-size: 14px; color: var(--muted); }
.note--b, .note--c { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: 140px; height: 112px; padding: 14px 16px; color: var(--navy); }
.note--b b, .note--c b { font-size: 32px; line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.note--b span, .note--c span { font-size: 12px; line-height: 1.2; font-weight: 500; opacity: .75; }
.note--b { left: 9%; top: 14%; background: linear-gradient(135deg,#fed970,#f4bf3a); rotate: calc(var(--r, -4deg) * -1.3); }
.note--c { right: 9%; bottom: 20%; background: #fff6df; rotate: calc(var(--r, -4deg) * 1.2); }
/* light cards: softer shadows; on the gold card the first stat note turns navy so it still stands out */
.card--ink .note { box-shadow: 0 26px 50px rgba(29,54,85,.2); }
.card[href*="persian-school"] .note--b { background: linear-gradient(135deg,#2d4f7a,#13253c); color: #fff; }
.card[href*="persian-school"] .note--c { background: #fff; }
/* single-column tablets: lift the lower stat note clear of the larger title */
@media (min-width: 810px) and (max-width: 1100px) {
  .note--c { bottom: 27%; }
}
/* wide screens: all four programmes in one row, with the notes scaled to the narrower cards */
@media (min-width: 1280px) {
  .projects { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .card { height: 620px; }
  .card__tags { top: 18px; right: 18px; left: 18px; justify-content: flex-end; flex-wrap: wrap; }
  .card__tags i { font-size: 13px; padding: 5px 9px; }
  .card__foot { left: 24px; right: 24px; bottom: 24px; }
  .card__foot h3 { font-size: 27px; }
  .card__foot p { font-size: 14px; }
  .note--a { top: 42%; width: 228px; height: 168px; margin: -84px 0 0 -114px; padding: 18px 20px; }
  .note--a b { font-size: 48px; }
  .note--a span { margin-top: 4px; font-size: 15px; }
  .note--a em { left: 20px; right: 20px; bottom: 16px; font-size: 12px; }
  .note--b, .note--c { width: 116px; height: 92px; padding: 12px 13px; border-radius: 14px; }
  .note--b b, .note--c b { font-size: 26px; }
  .note--b span, .note--c span { font-size: 11px; }
  .note--b { left: 7%; top: 13%; }
  .note--c { right: 7%; bottom: 28%; }
}
.bankcard { width: 220px; height: 340px; border-radius: 18px; transform: rotate(-4deg); background: linear-gradient(160deg, #3a5f8f, #1d3655 55%, #0f1f33);
  box-shadow: 0 40px 80px rgba(29,54,85,.35), inset 0 0 0 1px rgba(255,255,255,.25); position: relative; padding: 20px; color: #fff; }
.bankcard span { position: absolute; right: 18px; top: 16px; writing-mode: vertical-rl; font-size: 26px; letter-spacing: -0.02em; }
.bankcard b { position: absolute; left: 16px; bottom: 16px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 18px; font-weight: 600; }
.phone { width: 230px; height: 470px; border-radius: 40px; background: #0b0b0b; padding: 10px; box-shadow: 0 40px 80px rgba(0,0,0,.4); transform: translateY(120px); }
.phone__screen { width: 100%; height: 100%; border-radius: 31px; }
.phone__screen--warm { background: linear-gradient(180deg,#fff7d6,#f6d36b 60%,#e2a83a); }
.phone__screen--green { background: linear-gradient(180deg,#e7edf5,#8aa3c2 50%,#1d3655); }

/* ============ Reviews ============ */
.reviews { padding-bottom: 240px; }
.reviews__row { display: flex; gap: 20px; width: 1200px; max-width: calc(100% - 2 * var(--pad)); margin: 120px auto 0; height: 434px; }
.reviews__trust { width: 367px; flex: none; border-radius: 22px; background: rgba(29,54,85,.04); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.reviews__trust .quote { color: rgba(29,54,85,.12); }
.reviews__trust h3 { font-size: 32px; letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.reviews__trust p { font-size: 18px; line-height: 1; letter-spacing: -0.04em; color: var(--muted); margin-top: 14px; }
.reviews__card { flex: 1; border-radius: 22px; background: var(--surface); padding: 34px 40px; position: relative; overflow: hidden; }
.reviews__dots { display: flex; gap: 6px; height: 14px; align-items: center; }
.reviews__dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(29,54,85,.18); transition: width .5s var(--ease), background-color .5s; }
.reviews__dots i.on { width: 16px; background: var(--fg); }
.reviews__viewport { overflow: hidden; margin-top: 20px; height: 326px; }
.reviews__track { display: flex; height: 100%; transition: transform 1s var(--ease); }
.review { flex: 0 0 100%; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 6px; }
.review p { font-size: 28px; line-height: 1.3; letter-spacing: -0.04em; color: var(--muted); max-width: 640px; }
.review p b { color: var(--fg); font-weight: 500; }
.review__by { display: flex; align-items: center; gap: 14px; }
.review__by b { display: block; font-size: 16px; line-height: 1; letter-spacing: -0.04em; margin-bottom: 6px; }
.review__by small { font-size: 16px; line-height: 1; letter-spacing: -0.03em; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 10px; background: radial-gradient(circle at 35% 35%, #fff 0 10%, var(--a) 11% 100%); }
.review__logo { margin-left: auto; font-size: 13px; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }

/* ============ Services (light) ============ */
.services { position: relative; z-index: 1; overflow: hidden; background: var(--light); color: var(--ink); padding: 200px var(--pad) 240px; }
.services__intro { position: relative; height: 342px; max-width: 1360px; margin: 0 auto; }
.services__h { font-size: 84px; line-height: 1; letter-spacing: -0.04em; font-weight: 500; position: absolute; will-change: transform; }
.services__h { translate: 0 100px; rotate: var(--r, 0deg); transition: translate 1.1s cubic-bezier(.16, 1, .3, 1), rotate 1.1s cubic-bezier(.16, 1, .3, 1); }
.services__h.is-in { translate: 0 0; rotate: 0deg; }
.services__h--2 { transition-delay: .12s; }
.services__h--1 { left: 0; top: 0; display: flex; align-items: center; gap: 30px; white-space: nowrap; transform-origin: 0 50%; }
.services__h--2 { right: 0; top: 190px; transform-origin: 100% 50%; }   /* flush with the page margin, mirroring the heading on the left */
.tools { display: inline-flex; gap: 12px; align-items: center; }
.tool { position: relative; width: 80px; height: 80px; border-radius: 18px; background: var(--t); color: var(--tc, #fff); display: grid; place-items: center;
  font-size: 24px; letter-spacing: -0.03em; box-shadow: 0 10px 24px rgba(0,0,0,.12); will-change: transform; transition: scale .4s var(--ease); }
.tool { translate: 0 45px; transition: scale .4s var(--ease), translate 1.1s var(--ease) var(--d, 0ms); }
.tools.is-in .tool { translate: 0 0; }
.tool b { font-weight: 600; }
.tool em { position: absolute; top: calc(100% + 10px); left: 50%; font-style: normal; font-size: 13px; letter-spacing: 0; white-space: nowrap; padding: 3px 8px;
  border-radius: 6px; background: var(--ink); color: var(--on-ink); opacity: 0; transform: translateX(-50%) scale(.9); transition: opacity .3s var(--ease), transform .4s var(--ease); pointer-events: none; }
.tool:hover { scale: 1.08; }
.tool:hover em { opacity: 1; transform: translateX(-50%) scale(1); }
/* desktop: the one-line heading + nine chips is ~1540px at full size, so scale it with the screen
   (with room to spare for a wider fallback font) and cap it just under the original size so it fits even at 1920px with a fallback font */
@media (min-width: 1101px) {
  .services__intro { height: min(342px, 18.3vw); }
  .services__h { font-size: min(80px, 4.5vw); }
  .services__h--1 { gap: min(30px, 1.6vw); }
  .services__h--2 { top: min(190px, 10.2vw); }
  .tools { gap: min(12px, .65vw); }
  .tool { width: min(74px, 4.2vw); height: min(74px, 4.2vw); border-radius: min(18px, .95vw); font-size: min(24px, 1.3vw); }
}
/* desktop: the whole section sits on the centre line — heading row, tagline and both card columns */
@media (min-width: 1101px) {
  .services__h--1 { left: 0; right: 0; justify-content: center; transform-origin: 50% 50%; }
  .services__h--2 { left: 0; right: 0; text-align: center; transform-origin: 50% 50%; }
  .services .services__grid { justify-content: center; }   /* .services prefix: outranks the base rule further down */
}

.services__grid { display: flex; gap: 40px; justify-content: flex-end; max-width: 1360px; margin: 180px auto 0; }
.services__col { width: 373px; display: flex; flex-direction: column; gap: 40px; }
.services__col--left { margin-top: -80px; }
.services__col--right { margin-top: 0; }
.services__text p { font-size: 18px; line-height: 1.3; letter-spacing: -0.03em; color: var(--text-2); margin-bottom: 26px; }
.service { position: relative; background: #fff; border-radius: 24px; padding: 34px 32px 32px; min-height: 291px; box-shadow: 0 8px 20px rgba(29,54,85,.06);
  transition: transform .5s var(--ease); }
.service:hover { transform: scale(.96); }
.service h3 { font-size: 30px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 600; }
.service hr { border: 0; height: 1px; background: #e2e2e2; margin: 24px 0 14px; }
.service small { font-size: 14px; font-weight: 400; letter-spacing: -0.03em; color: var(--text-2); }
.service p { font-size: 16px; line-height: 1.3; letter-spacing: -0.03em; color: rgba(29,54,85,.85); margin-top: 10px; max-width: 290px; }
.service__arrow { position: absolute; right: 22px; bottom: 22px; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ink);
  display: grid; place-items: center; }
.service__arrow svg { width: 10px; height: 10px; transition: transform .5s var(--ease); }
.service:hover .service__arrow svg { transform: rotate(45deg) scale(1.4); }

/* ============ Pricing ============ */
.pricing { padding-top: 285px; padding-bottom: 240px; overflow: hidden; }
.pricing__glow { position: absolute; left: 0; right: 0; top: 0; height: 600px; pointer-events: none;
  background: radial-gradient(60% 60% at 0% 0%, rgba(254,217,112,.75), transparent 70%), radial-gradient(50% 50% at 100% 0%, rgba(254,217,112,.5), transparent 70%);
  filter: blur(20px); opacity: .7; }
.pricing__label { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; margin: 120px 0 30px; }
.pricing__label--faq { font-size: 32px; letter-spacing: -0.03em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.plan { position: relative; background: var(--card); border-radius: 22px; padding: 40px; min-height: 480px; backdrop-filter: blur(20px); }
.plan__badge { display: inline-block; font-size: 14px; letter-spacing: -0.03em; background: var(--surface-2); color: rgba(29,54,85,.75); padding: 6px 10px; border-radius: 8px; }
.plan__price { font-size: 60px; line-height: 1.1; letter-spacing: -0.04em; margin-top: 54px; display: flex; align-items: baseline; gap: 10px; }
.plan__price small { font-size: 16px; line-height: 2; font-weight: 400; color: var(--text-2); letter-spacing: -0.02em; }
.plan__body { margin-top: 38px; font-size: 18px; line-height: 1.2; font-weight: 400; letter-spacing: -0.03em; }
.plan__body b, .project-model__right b { font-weight: 400; }
.plan__body ul, .project-model ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.plan__body li, .project-model li { font-size: 16px; line-height: 1.3; font-weight: 400; letter-spacing: -0.03em; color: var(--text-2); padding-left: 24px; position: relative; }
.plan__body li::before, .project-model li::before { content: "✓"; position: absolute; left: 0; color: var(--fg); font-size: 12px; }
/* Rising sun from the logo: sits on the card corner and lifts when the card is hovered */
.sunmark { position: absolute; right: 28px; top: -38px; width: 104px; height: 104px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, var(--gold) 0%, #fee49a 45%, rgba(255,246,223,0) 100%); transition: transform .6s var(--ease); }
.sunmark--inline { position: relative; right: auto; top: auto; display: block; width: 72px; height: 72px; margin: -8px 0 22px; }
.plan:hover .sunmark, .project-model:hover .sunmark { transform: translateY(-10px); }
a.plan { display: block; }

/* Cursor-following "Select" pill inside pricing cards */
[data-select] { cursor: pointer; }
.plan[data-select], .project-model[data-select] { position: relative; }
.card .select-pill { background: rgba(10,10,10,.45); color: #fff; }
.select-pill { position: absolute; left: 0; top: 0; min-width: 80px; height: 40px; padding: 0 16px; white-space: nowrap; border-radius: 16px; display: grid; place-items: center;
  background: rgba(29,54,85,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--fg);
  font-size: 18px; font-weight: 400; letter-spacing: -0.03em; pointer-events: none; z-index: 5;
  opacity: 0; scale: .6; transform-origin: 0 50%; transition: opacity .3s var(--ease), scale .4s var(--ease); }
[data-select]:hover .select-pill { opacity: 1; scale: 1; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
.perk { display: flex; gap: 16px; padding: 0 40px; }
.perk__icon { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; font-size: 11px; flex: none; }
.perk b { font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.perk p { font-size: 16px; font-weight: 400; letter-spacing: -0.02em; color: var(--text-2); margin-top: 8px; line-height: 1.3; }
.project-model { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--card); border-radius: 22px; padding: 40px; }
.project-model__left .plan__price { margin-top: 0; }
.project-model__right { font-size: 18px; line-height: 1.2; letter-spacing: -0.03em; padding-top: 20px; }
.faq__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq__col { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border-radius: 24px; overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 24px 76px 24px 28px; min-height: 70px; display: flex; align-items: center;
  font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { position: absolute; right: 28px; top: 50%; width: 32px; height: 22px; margin-top: -11px; border-radius: 12px; background: var(--surface-2);
  display: grid; place-items: center; }
.faq__chev svg { width: 14px; height: 14px; transition: transform .5s cubic-bezier(.45, 0, .25, 1); }
.faq__item.is-open .faq__chev svg { transform: rotate(180deg); }
.faq__item p { padding: 0 28px 24px; font-size: 16px; font-weight: 400; letter-spacing: -0.02em; color: var(--text-2); line-height: 1.3; }

/* ============ Footer ============ */
.footer { position: relative; z-index: 1; background: var(--bg); padding: 0 var(--pad); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; }
.footer__left { width: 898px; height: 224px; display: flex; flex-direction: column; align-items: flex-start; }
.footer__time { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; color: var(--fg); }
.footer__time .sun { width: 14px; height: 14px; margin-right: 2px; animation: sunSpin 5s linear infinite; }
@keyframes sunSpin { to { transform: rotate(360deg); } }
.footer__left p { font-size: 24px; letter-spacing: -0.03em; line-height: 1.14; width: 390px; margin-top: 26px; }
.footer__left .btn { margin-top: auto; }
.footer__links { display: flex; gap: 80px; }
.footer__links div { min-width: 120px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; }
.footer__links div:last-child { min-width: 0; }   /* the last column ends where its text ends, at the page margin */
.footer__links small { color: var(--text-2); font-size: 14px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--muted); }
.footer__legal { display: flex; justify-content: space-between; font-size: 12px; line-height: 17px; font-weight: 400; color: var(--muted-2); letter-spacing: -0.02em; margin-top: 38px; text-transform: uppercase; }
.footer__logo-wrap { height: 322px; position: relative; margin-top: 20px; }
.wordmark--footer { position: absolute; left: 0; right: 0; top: 0; }
.wordmark--footer .wordmark__main { background: linear-gradient(180deg, rgba(254,217,112,0) 0%, rgba(254,217,112,.9) 55%, #f4bf3a 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal-logo { opacity: 0; transform: translateY(70px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal-logo.is-in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  :root { --pad: 20px; }
  .h-xl { font-size: 54px; }
  .hero__intro { width: auto; left: var(--pad); top: 130px; }
  .hero__spacer { display: none; }
  .hero__logo { height: 260px; }
  .wordmark--hero { height: 230px; }
  .about__cols, .works__body { flex-direction: column; }
  .about__desc, .works__desc, .about__side, .works__sub { width: 100%; }
  .about__image-wrap, .about__image { height: 520px; }
  .projects, .plans, .perks, .project-model, .faq__cols { grid-template-columns: 1fr; }
  .card { height: 520px; }
  .reviews__row { flex-direction: column; height: auto; }
  .reviews__trust { width: 100%; gap: 40px; }
  .services__h { font-size: 48px; position: relative; right: auto; }
  .services__h--1 { flex-wrap: wrap; white-space: normal; }
  .services__h--2 { top: auto; margin-top: 20px; }
  .services__intro { height: auto; }
  .tool { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
  .tools { flex-wrap: wrap; }
  .services__grid { flex-direction: column; padding-right: 0; }
  .services__col { width: 100%; }
  .services__col--left { margin-top: 0; }
  .footer__top { flex-direction: column; gap: 40px; }
  .footer__left { width: 100%; height: auto; }
  .footer__left .btn { margin-top: 32px; }
  .footer__left p { width: auto; }
  .footer__logo-wrap { height: 160px; }
  .menu { width: 220px; }
  .menu.is-open { width: 450px; }
  .menu__status { display: none; }
}
@media (max-width: 640px) {
  .nav__cta { display: none; }
  .menu, body.is-loading .menu { left: auto; right: var(--pad); transform: none; width: 132px; }
  .menu.is-open { width: calc(100vw - 2 * var(--pad)); height: 537px; }
  .menu__panel { width: calc(100vw - 2 * var(--pad)); }
  .h-xl { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w, .reveal, .reveal-logo { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* ============ Phone navbar & footer (original mobile layout) ============ */
@media (max-width: 809px) {
  .nav { height: 80px; padding: 25px 20px 0; }
  .nav__logo { height: 45px; }
  .nav__cta { display: none; }
  .menu, body.is-loading .menu { left: auto; right: 20px; top: 25px; transform: none; width: 95px; height: 45px; border-radius: 14px; }
  .menu__bar { width: 95px; height: 45px; padding: 0; margin: 0; }
  .menu__btn { padding-left: 16px; height: 26px; }
  .menu__status { display: none; }
  .menu.is-open { width: calc(100vw - 40px); height: 520px; }
  .menu.is-open .menu__bar { height: 64px; }
  .menu__panel { top: 64px; width: calc(100vw - 40px); }

  .footer { padding: 0 20px 20px; }
  .footer__top { flex-direction: column; gap: 70px; padding-top: 40px; }
  .footer__left { width: 100%; height: auto; }
  .footer__left p { width: auto; }
  .footer__left .btn { margin-top: 80px; }
  .footer__links { margin-right: 0; gap: 80px; }
  .footer__links div { width: auto; min-width: 120px; }
  .footer__legal { margin-top: 20px; }
  .footer__logo-wrap { height: 102px; margin-top: 20px; }
}

/* Content version: engagement names are words, not prices; keep the small line under them on every card */
.plan__price { flex-wrap: wrap; row-gap: 4px; }
.plan__price small { flex-basis: 100%; }
