/* ByForma Studio — standalone rebuild of the Framer site */

:root {
  --ink: #1a1d21;
  --ink-soft: #5e5e5e;
  --btn: #1d1919;
  --dark: #171717;
  --card-dark: #1f1f1f;
  --card-work: #292929;
  --panel: #f7f7f6;
  --page-soft: #f4f4f6;
  --sand: #ded8d3;
  --orange: #ff7442;
  --yellow: #f4d464;
  --green: #254f3d;
  --blue: #3e4d82;
  --quote: #b8c9f5;
  --badge: #243744;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1000px;
  --gutter: 24px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 24px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #09f; outline-offset: 3px; }

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

/* ---------- Type ---------- */
.serif { font-family: var(--serif); }
.display {
  font-family: var(--serif);
  font-size: clamp(44px, 6.2vw, 68px);
  line-height: 1.29;
  letter-spacing: -0.045em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.27;
  letter-spacing: -0.03em;
}
.h3 { font-family: var(--serif); font-size: 26px; line-height: 30px; letter-spacing: -0.02em; }
.stat { font-family: var(--serif); font-size: 36px; line-height: 44px; letter-spacing: -0.02em; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.italic { font-family: var(--serif); font-style: italic; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: var(--radius);
  background: var(--btn); color: #fff;
  font-weight: 500; font-size: 18px; line-height: 24px;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn--light { background: #fff; color: #000; }
.btn--sm { font-size: 15px; padding: 7px 12px; }
.btn--block { width: 100%; }

.spots { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--orange); }
.spots svg { width: 20px; height: 20px; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: #fff; border-radius: 100px; padding: 6px 12px; font-size: 13px; line-height: 16px; font-weight: 500; color: #000; }

/* ---------- Nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 16px var(--gutter) 0; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1005px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: #fff; border-radius: 12px; padding: 10px 14px 10px 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.02);
  transition: max-width .4s ease;
}
.nav.is-scrolled { max-width: 720px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; font-family: var(--serif); font-size: 18px; }
.nav-links a { transition: opacity .2s; }
.nav-links a:hover { opacity: .6; }
.nav .btn { justify-self: end; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 120px; background: linear-gradient(#fff 0 calc(100% - 300px), var(--dark) calc(100% - 300px)); overflow: hidden; }
.hero-copy { position: relative; }
.hero-copy p { margin-top: 12px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-cursor { position: absolute; left: 640px; top: 250px; width: 146px; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(10px, -8px); } }
.hero-cards { position: relative; height: 560px; max-width: 1440px; margin: 40px auto 0; }
.hero-cards img { position: absolute; filter: drop-shadow(0 20px 40px rgba(0,0,0,.18)); }
.hero-card--travel { width: 390px; left: calc(50% - 650px); top: 150px; }
.hero-card--qantas { width: 561px; left: calc(50% - 240px); top: 30px; }
.hero-card--run { width: 375px; left: calc(50% + 330px); top: 150px; }

/* ---------- Dark sections ---------- */
.section-dark { background: var(--dark); color: #fff; }
.section { padding: 120px 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.about-copy p { margin-top: 20px; max-width: 360px; }
.about-copy .h2 { margin-bottom: 8px; }
.stat-stack { display: grid; gap: 20px; }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 186px; padding: 20px; }
.stat-card--yellow { background: var(--yellow); color: var(--ink); }
.stat-card--green { background: var(--green); color: #fff; }
.stat-card--blue { background: var(--blue); color: #fff; }
.stat-card p:not(.stat) { font-size: 15px; line-height: 20px; }

/* Services */
.services { display: flex; gap: 12px; margin-top: 60px; height: 380px; }
.service {
  flex: 1 1 0; min-width: 0;
  position: relative; overflow: hidden; border: 1px solid #555; border-radius: 2px;
  background: transparent; text-align: center; padding: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: flex-grow .5s cubic-bezier(.2,.7,.2,1), background-color .4s ease, border-color .4s;
}
.service h3 { position: relative; z-index: 1; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 22px 12px 0; white-space: nowrap; }
.service img { position: absolute; left: 20px; top: 66px; width: 760px; max-width: none; opacity: .35; filter: grayscale(1); transition: opacity .4s, filter .4s; }
.service[aria-selected="true"] { flex-grow: 2.4; border-color: transparent; }
.service[aria-selected="true"] img { opacity: 1; filter: none; }
.service--ux[aria-selected="true"] { background: #3b1814; }
.service--web[aria-selected="true"] { background: var(--green); }
.service--seo[aria-selected="true"] { background: #0b7a8a; }
.service--web img { width: 340px; left: 50%; transform: translateX(-50%); top: 100px; border-radius: 4px; }
.service-desc { margin-top: 12px; max-width: 340px; font-size: 13px; line-height: 16px; font-weight: 500; min-height: 48px; }

/* Logos */
.logos { padding: 48px 0 40px; text-align: center; }
.logos-title { font-family: var(--serif); font-style: italic; font-size: 18px; margin-bottom: 20px; }
.marquee { overflow: hidden; max-width: 720px; margin: 0 auto; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 80px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track img { height: 42px; width: auto; }
@keyframes marquee { to { transform: translateX(calc(-50% - 40px)); } }

/* Testimonial */
.testimonial { position: relative; background: var(--blue); border-radius: var(--radius); padding: 48px 54px 60px; color: var(--quote); }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.7; }
.testimonial .q { font-family: var(--serif); font-size: 64px; line-height: 0.6; display: block; height: 28px; }
.testimonial .q--end { position: absolute; right: 54px; bottom: 60px; transform: rotate(180deg); }
.testimonial-badge { width: 200px; margin: 20px auto 0; }

/* Pricing */
.pricing { padding: 80px 0 100px; }
.pricing-head .btn { margin-top: 24px; font-size: 15px; }
.tabs { display: flex; gap: 6px; margin: 48px 0 16px; flex-wrap: wrap; }
.tab { background: none; border: 1px solid transparent; padding: 4px 12px; font-family: var(--serif); font-size: 22px; line-height: 32px; color: #5e5e5e; border-radius: 2px; }
.tab[aria-selected="true"] { color: var(--ink); background: #f1fafb; border-color: #a8dde4; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 28px 30px 30px; }
.panel[hidden] { display: none; }
.panel .spots { background: #fff; border-radius: 100px; padding: 6px 14px; font-size: 14px; margin-bottom: 18px; }
.panel-lede { font-size: 13px; color: var(--ink-soft); }
.panel-intro { font-family: var(--serif); font-size: 18px; line-height: 26px; margin-top: 4px; }
.panel-intro + .panel-intro { margin-top: 20px; }
.steps { margin-top: 12px; }
.step { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px 0; }
.step + .step .step-body { border-top: 1px solid #e3e3e1; padding-top: 20px; margin-top: -20px; }
.step .h3 { font-size: 22px; line-height: 26px; }
.step-body { font-size: 15px; line-height: 20px; }
.step small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.step--addon { border-top: 1px solid #e3e3e1; margin-top: 8px; }
.step--addon + * { border: 0; }

/* Work */
.work-head { margin-bottom: 48px; }
.work-list { display: grid; gap: 16px; }
.work {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  background: var(--card-work); border-radius: var(--radius); padding: 24px;
}
.work-media { border-radius: 4px; overflow: hidden; aspect-ratio: 23 / 21; display: grid; place-items: center; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-media--ni { background: #8ea9c8; }
.work-media--ymb { background: #0f4a2b; padding: 40px 28px; }
.work-media--ymb img, .work-media--ni img { object-fit: contain; }
.work-media--qantas { background: #3b0712; padding: 28px; }
.work-media--qantas img { object-fit: contain; }
.work-body { display: flex; flex-direction: column; color: var(--sand); }
.work-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.work-title .h3 { color: #fff; }
.live { background: var(--badge); color: #fff; border-radius: 100px; font-size: 12px; font-weight: 500; padding: 3px 10px; line-height: 18px; }
.work-tags { display: flex; gap: 6px; font-family: var(--serif); font-style: italic; font-size: 13px; margin-top: 10px; flex-wrap: wrap; }
.work-tags span:not(:last-child)::after { content: "·"; margin-left: 6px; }
.work-highlights { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 26px; margin-top: 20px; color: #fff; }
.work-body > p { font-size: 15px; line-height: 21px; margin-top: 20px; }
.work-body .btn { margin-top: auto; }
.work--reverse .work-media { order: 2; }

/* Behind the studio */
.studio { padding: 120px 0 80px; }
.studio .h2 { margin-bottom: 32px; }
.studio-card { position: relative; background: var(--card-dark); color: #fff; border-radius: var(--radius); padding: 70px 36px 150px; display: grid; grid-template-columns: 252px 1fr; gap: 54px; align-items: center; }
.studio-card .h3 { line-height: 26px; margin-bottom: 14px; }
.studio-card p { font-size: 14px; line-height: 19px; }
.studio-card p + p { margin-top: 16px; }
.studio-card .btn { margin-top: 20px; font-size: 14px; padding: 6px 10px; }
.studio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 920px; margin: -110px auto 0; position: relative; padding: 0 var(--gutter); }
.studio-stats .stat-card { min-height: 186px; }

/* FAQ */
.faq { padding: 60px 0 120px; }
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq-list { max-width: 534px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: var(--card-dark); color: #fff; border-radius: 6px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 12px; font-size: 13px; line-height: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-size: 18px; font-weight: 300; width: 12px; transition: transform .3s; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { padding: 0 34px 16px; font-size: 13px; line-height: 19px; color: #d4d4d4; }

/* Footer */
.footer { background: #000; color: #fff; padding: 70px 0 90px; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer-logo { width: 44px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #2a2a2a; display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: #444; }
.socials svg { width: 14px; height: 14px; fill: #fff; }
.footer-mail { justify-self: end; font-size: 13px; }
.footer-mail:hover { text-decoration: underline; }

/* Soft pages (contact / thank you) */
.page-soft { background: #000; }
.page-soft .nav-wrap { background: var(--page-soft); }
.page-soft main { background: var(--page-soft); border-radius: 0 0 40px 40px; padding: 100px 0 120px; text-align: center; min-height: 70vh; }
.page-soft .display { font-size: clamp(42px, 5.4vw, 60px); line-height: 1.12; }
.page-soft .lede { margin-top: 20px; font-size: 15px; line-height: 19px; color: #6e6e73; }
.form { max-width: 528px; margin: 44px auto 0; background: #fff; border-radius: 18px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; text-align: left; }
.form label { display: grid; gap: 10px; font-size: 13px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: inherit; font-size: 15px; font-weight: 400; border: 0; background: #f2f2f2; border-radius: 8px; padding: 10px 12px; color: var(--ink); width: 100%; }
.form textarea { min-height: 76px; resize: vertical; }
.form button { grid-column: 1 / -1; background: #3b82f6; color: #fff; border: 0; border-radius: 100px; padding: 10px; font-size: 14px; font-weight: 600; }
.form button:hover { background: #2563eb; }
.thanks .btn { margin-top: 20px; font-size: 14px; padding: 6px 10px; }

/* Project pages */
.project { padding: 90px 0 120px; }
.project-icon { width: 60px; height: 60px; border-radius: 6px; margin-bottom: 20px; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; font-size: 14px; line-height: 20px; }
.project-meta h2 { font-family: var(--sans); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.project-meta .full { grid-column: 1 / -1; }
.project-meta a { color: #2563eb; }
.project-meta a:hover { text-decoration: underline; }
.project-media { display: grid; gap: 16px; margin-top: 50px; }
.project-media > * { border-radius: var(--radius); overflow: hidden; width: 100%; }
.project-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-radius: 0; }
.project-media .pair img { border-radius: var(--radius); width: 100%; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-cursor { left: auto; right: 40px; }
  .hero-cards { height: 46vw; }
  .hero-card--travel { width: 27vw; left: 2vw; top: 10vw; }
  .hero-card--qantas { width: 40vw; left: 30vw; top: 2vw; }
  .hero-card--run { width: 26vw; left: 72vw; top: 10vw; }
  .hero { background: linear-gradient(#fff 0 calc(100% - 22vw), var(--dark) calc(100% - 22vw)); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav.is-scrolled { max-width: 1005px; }
  .hero { padding-top: 80px; }
  .hero-cursor { display: none; }
  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-copy p { max-width: none; }
  .services { flex-direction: column; height: auto; }
  .service { flex: none !important; height: 64px; transition: height .5s cubic-bezier(.2,.7,.2,1), background-color .4s; }
  .service[aria-selected="true"] { height: 300px; }
  .service img { width: 600px; }
  .service--web img { width: 300px; }
  .service-desc { max-width: none; }
  .testimonial { padding: 36px 24px 40px; }
  .testimonial .q--end { display: none; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step + .step .step-body { border: 0; padding: 0; margin: 0; }
  .step + .step { border-top: 1px solid #e3e3e1; }
  .work, .work--reverse { grid-template-columns: 1fr; }
  .work--reverse .work-media { order: 0; }
  .work-body .btn { margin-top: 24px; }
  .studio-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px 40px; }
  .studio-card img { max-width: 220px; }
  .studio-stats { grid-template-columns: 1fr; margin-top: 8px; padding: 0; }
  .studio-stats .stat-card { min-height: 140px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .footer-mail { justify-self: center; }
  .form { grid-template-columns: 1fr; }
  .project-meta, .project-media .pair { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 22px; }
  .nav { padding: 8px 8px 8px 16px; }
  .panel { padding: 22px 18px; }
  .hero-cards { height: 70vw; }
  .hero-card--travel { width: 44vw; left: -6vw; top: 26vw; }
  .hero-card--qantas { width: 62vw; left: 19vw; top: 4vw; }
  .hero-card--run { width: 40vw; left: 70vw; top: 24vw; }
  .hero { background: linear-gradient(#fff 0 calc(100% - 34vw), var(--dark) calc(100% - 34vw)); }
}
