/* Unpublished Roost preview. Local Montserrat (installed on this machine), no CDN. */

:root {
  --navy: #1a2b4a;
  --navy-deep: #122033;
  --cream: #f6f1e8;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #3f3c38;
  --line: #e4dcd0;
  --focus: #3d6bb3;
  --shadow: 0 24px 60px rgba(26, 43, 74, 0.08);
  --font: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-head h2,
.about-copy h2,
.band h2,
.contact-band h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.section {
  padding: 4.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 999px;
  padding: 0.72rem 0.8rem 0.72rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  border: 0;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-deep);
}

.btn-cream {
  background: var(--cream);
  color: var(--navy);
}

.btn-cream:hover {
  background: var(--white);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 1rem 0.95rem 1.35rem;
}

.btn-arrow {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}

.btn-cream .btn-arrow {
  background: rgba(26, 43, 74, 0.1);
}

.btn-arrow::before {
  content: "→";
  font-size: 0.95rem;
  line-height: 1;
}

.text-link {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 0.22em;
}

/* Hero */

.hero-wrap {
  padding: 1.25rem 1.25rem 0;
}

.hero-panel {
  position: relative;
  background: var(--white);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem 2.2rem;
  overflow: hidden;
}

.hero-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
}

.brand img {
  height: 52px;
  width: auto;
}

.slogan {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  background: #efe8dc;
  padding: 0.35rem;
  border-radius: 999px;
}

.pill-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
}

.pill-nav a[aria-current="page"] {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.08);
}

.pill-nav a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-bar > .btn {
  justify-self: end;
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.15fr);
  gap: 1.5rem 2rem;
  align-items: center;
  min-height: 540px;
  padding: 1.6rem 0.4rem 7.2rem;
}

.hero-copy {
  max-width: 16ch;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--ink);
}

.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 28px;
}

.hero-aside {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  max-width: min(280px, calc(100% - 2.2rem));
  background: rgba(246, 241, 232, 0.94);
  border-radius: 20px;
  padding: 0.9rem 0.95rem 0.85rem;
}

.hero-aside p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.hero-cloud {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -28px;
  height: 150px;
  pointer-events: none;
  background:
    radial-gradient(48% 90% at 12% 100%, var(--cream) 68%, transparent 70%),
    radial-gradient(42% 100% at 48% 115%, var(--cream) 66%, transparent 68%),
    radial-gradient(50% 95% at 86% 110%, var(--cream) 68%, transparent 70%);
}

.photo-note {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 1rem auto 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* Work cards */

.work-grid,
.why-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.work-card,
.why-grid li {
  background: var(--white);
  border-radius: 28px;
  padding: 0.75rem 0.75rem 1.1rem;
  box-shadow: 0 10px 30px rgba(26, 43, 74, 0.05);
}

.work-card figure,
.why-grid figure {
  margin: 0;
}

.work-card figure {
  display: grid;
  gap: 0.85rem;
}

.work-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
}

.work-card:nth-child(1) img { object-position: center 72%; }
.work-card:nth-child(2) img { object-position: center 58%; }
.work-card:nth-child(3) img { object-position: center 58%; }

.work-card figcaption {
  padding-inline: 0.4rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.small-works {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-weight: 500;
}

/* Photo band */

.band {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 43, 74, 0.82) 0%, rgba(26, 43, 74, 0.55) 46%, rgba(26, 43, 74, 0.18) 100%);
}

.band-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 4rem 0;
  max-width: 640px;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2));
}

.band h2 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: 12ch;
}

.band p {
  max-width: 38ch;
  font-size: 1.08rem;
  margin: 1rem 0 1.4rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) 1.14fr;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 28px;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
}

.switcher {
  display: contents;
}

.switcher > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.switcher-tabs {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.switcher-tabs label {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.about-copy h2,
.switcher > p,
.switcher-panels {
  grid-column: 1 / -1;
}

.about-copy h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  max-width: 28ch;
}

.switcher > p,
.switcher-panels p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  max-width: 46ch;
}

.panel {
  display: none;
  font-weight: 600;
  color: var(--ink);
}

.switcher:has(#tab-about:checked) .panel-about,
.switcher:has(#tab-create:checked) .panel-create,
.switcher:has(#tab-area:checked) .panel-area {
  display: block;
}

.switcher:has(#tab-about:checked) label[for="tab-about"],
.switcher:has(#tab-create:checked) label[for="tab-create"],
.switcher:has(#tab-area:checked) label[for="tab-area"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.switcher:has(#tab-about:focus-visible) label[for="tab-about"],
.switcher:has(#tab-create:focus-visible) label[for="tab-create"],
.switcher:has(#tab-area:focus-visible) label[for="tab-area"] {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Why us */

.why {
  padding-top: 1rem;
}

.why-grid figure {
  display: grid;
  gap: 0.85rem;
}

.why-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
}

.why-grid li:nth-child(1) img { object-position: center 50%; }
.why-grid li:nth-child(2) img { object-position: center 28%; }
.why-grid li:nth-child(3) img { object-position: center 78%; }

.why-grid figcaption {
  display: inline-block;
  margin-left: 0.35rem;
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* FAQ */

.faq-wrap {
  width: min(760px, calc(100% - 2.5rem));
}

.faq-list {
  margin-top: 1.25rem;
  background: var(--white);
  border-radius: 28px;
  padding: 0.4rem 1.4rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
  max-width: 52ch;
}

/* Footer contact */

.contact-band {
  background: var(--navy);
  color: var(--cream);
  padding: 4.5rem 0 3.5rem;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.ask {
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-band h2 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.callback-note,
.footer-slogan,
.footer-area,
.phone {
  margin: 0;
}

.callback-note {
  margin-top: 1rem;
  color: rgba(246, 241, 232, 0.86);
}

.phone {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.phone a {
  color: rgba(246, 241, 232, 0.78);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.footer-slogan {
  margin-top: 1.8rem;
  font-weight: 700;
}

.footer-area {
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-bar {
    grid-template-columns: 1fr auto;
  }

  .pill-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 5.5rem;
  }

  .hero-copy {
    max-width: 14ch;
  }

  .hero-photo img {
    height: 380px;
  }

  .hero-aside {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }

  .work-grid,
  .why-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-top {
    grid-template-columns: 1fr;
  }

  .switcher-tabs {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 0.6rem;
  }

  .band-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .band::after {
    background: linear-gradient(180deg, rgba(26, 43, 74, 0.78), rgba(26, 43, 74, 0.45));
  }
}

@media (max-width: 640px) {
  .hero-wrap {
    padding: 0.7rem 0.7rem 0;
  }

  .hero-panel {
    border-radius: 24px;
    padding: 1rem 0.9rem 1.6rem;
  }

  .hero-bar > .btn {
    padding-inline: 0.85rem;
  }

  .brand img {
    height: 42px;
  }

  .section {
    padding: 3rem 0;
  }

  .faq-list {
    padding-inline: 1rem;
  }

  .work-card img,
  .why-grid img {
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
