/* Oak Studios public site. Sits on oak.css, cine.css, and trend.css. */

body.agency {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(196, 98, 45, 0.08), transparent 55%),
    var(--paper);
}

body.agency.sub {
  padding-top: 6.4rem;
}

body.agency h1,
body.agency h2,
body.agency h3,
body.agency [id] {
  scroll-margin-top: 5.5rem;
}

body.agency .page-hero {
  padding: 1.2rem 0 0.4rem;
}

body.agency .page-hero .lede {
  margin-top: 1.1rem;
  font-size: 1.12rem;
}

body.agency .section {
  padding: 4.5rem 0;
}

body.agency .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

body.agency .section-head p:last-child {
  max-width: 28rem;
  margin: 0;
  color: #3d342c;
}

body.agency .kicker {
  color: var(--copper);
}

.bento {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 0.85rem;
}

.bento article,
.service-card,
.price,
.rate,
.offer article,
.inquiry form,
.note-card {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.62);
}

.bento article {
  padding: 1.6rem 1.5rem 1.4rem;
}

.bento article:first-child {
  grid-row: span 2;
  background: var(--oak);
  color: #f6f1e8;
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 22rem;
}

.bento h3,
.service-card h3,
.price h3,
.rate h3,
.offer h3 {
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  margin-bottom: 0.7rem;
}

.bento p,
.service-card p,
.price p,
.rate p,
.offer p {
  margin: 0;
}

.bento article:first-child p {
  max-width: 28rem;
  color: rgba(246, 241, 232, 0.82);
}

.service-grid,
.work-grid,
.price-grid,
.rate-grid,
.offer-grid {
  display: grid;
  gap: 0.85rem;
}

.service-grid {
  grid-template-columns: repeat(6, 1fr);
}

.service-card {
  grid-column: span 2;
  padding: 1.35rem 1.3rem 1.2rem;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
}

.service-card:nth-child(-n + 2) {
  grid-column: span 3;
  min-height: 18rem;
}

.service-card span,
.price > span,
.price .amount span,
.rate .amount span {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.service-card strong {
  margin-top: auto;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 0.08rem;
}

.work-grid {
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  position: relative;
  display: block;
  color: #f7f3ec;
  border-radius: 1.35rem;
  overflow: hidden;
  background: var(--oak);
  min-height: 18rem;
}

.work-card figure {
  margin: 0;
}

body.agency .work-card picture,
body.agency .work-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  clip-path: none;
}

body.agency .case-link {
  grid-column: 1 / -1;
}

body.agency .case-copy {
  direction: ltr;
}

@media (min-width: 901px) {
  body.agency .case .case-link {
    direction: ltr;
  }

  body.agency .case:nth-of-type(even) .case-link {
    direction: rtl;
  }
}

.work-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.2rem 1.15rem 1.1rem;
  background: linear-gradient(to top, rgba(12, 9, 7, 0.82), rgba(12, 9, 7, 0));
}

.work-card h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.flag {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(246, 241, 234, 0.55);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case .flag {
  color: var(--copper);
  border-color: rgba(168, 91, 50, 0.45);
  margin-bottom: 0.7rem;
}

.price-grid {
  grid-template-columns: 1fr 1fr;
}

.price,
.rate,
.offer article {
  padding: 1.5rem 1.4rem 1.35rem;
}

.price .amount,
.rate .amount {
  margin: 0.3rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.rate-grid {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 0.85rem;
}

.rate {
  grid-column: span 2;
}

.rate:nth-child(n + 4) {
  grid-column: span 3;
}

.offer-grid {
  grid-template-columns: 1fr 1fr;
}

.offer article:first-child {
  background: var(--oak);
  color: #f6f1e8;
  border-color: transparent;
}

.offer article:last-child {
  background: var(--leaf);
  color: #f4f7f2;
  border-color: transparent;
}

.offer article p + p {
  margin-top: 0.8rem;
  color: inherit;
  opacity: 0.86;
}

.bundle {
  margin-top: 0.85rem;
  padding: 1.2rem 1.3rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.bundle p {
  margin: 0.35rem 0 0;
}

.service-block {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 2rem;
  padding: 2.8rem 0;
  border-top: 1px solid var(--line);
}

.service-block h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  max-width: 10ch;
}

.service-block .amount {
  margin: 0.8rem 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.service-block ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.service-block li + li {
  margin-top: 0.35rem;
}

.inquiry {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.4rem;
  align-items: start;
  padding-bottom: 4.5rem;
}

.inquiry .direct {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

.inquiry .direct a {
  border-bottom: 1px solid currentColor;
}

.inquiry address {
  font-style: normal;
  color: #3d342c;
}

.inquiry form {
  padding: 1.3rem;
  display: grid;
  gap: 0.85rem;
}

.inquiry label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inquiry input,
.inquiry textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
}

.inquiry textarea {
  min-height: 9rem;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--oak);
  color: #f6f1ea;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.3rem;
}

.cine-copy .hero-actions {
  justify-content: center;
  margin-top: 0.2rem;
}

.contact-band a.btn {
  background: #f6f1ea;
  color: #1c1612;
}

.contact-band a.btn.secondary {
  background: transparent;
  color: #f6f1ea;
  border: 1px solid rgba(246, 241, 234, 0.75);
}

.offer article .kicker,
.bento article:first-child .kicker,
.contact-band .kicker {
  color: #f0c7a4;
}

.form-error {
  margin: 0;
  color: #8c2f16;
}

.form-status,
.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq .acc-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1.05rem 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  color: inherit;
}

.faq .acc-item button::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

.faq .acc-item button[aria-expanded="true"]::after {
  content: "–";
}

.faq .acc-item [data-acc-panel] {
  padding: 0 0 1rem;
  max-width: 42rem;
}

.faq .acc-item p {
  margin: 0;
}

.template-note {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #f3e2c4;
  border: 1px solid #e2c48a;
}

.legal {
  max-width: 44rem;
  padding-bottom: 4rem;
}

.legal h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.45rem;
}

.legal p,
.legal li {
  color: #3c342c;
}

.legal ul {
  padding-left: 1.1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.about-grid figure {
  margin: 0;
}

.about-grid img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 4rem 1.5rem;
}

.about-grid figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
  padding: 0;
  margin: 0 0 4rem;
  list-style: none;
}

.principles li {
  padding: 1.2rem;
  border-top: 1px solid var(--ink);
}

.principles strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.swatch-ink { background: #14110f; }
.swatch-copper { background: #c4622d; }
.swatch-paper { background: #f3eee6; }
.swatch-rust { background: #8c3e16; }
.swatch-pine { background: #1d4743; }
.swatch-sand { background: #ead9cc; }
.swatch-sage { background: #6d8578; }
.swatch-black { background: #141414; }
.swatch-brass { background: #8d6b34; }
.swatch-stone { background: #e4ddd2; }
.swatch-navy { background: #0c2340; }
.swatch-amber { background: #e8940a; }
.swatch-mist { background: #e7f0f7; }
.swatch-ice { background: #f7fbfe; }
.swatch-clay { background: #b24a1e; }
.swatch-olive { background: #3d4a28; }
.swatch-cream { background: #f7f1e7; }
.swatch-forest { background: #163228; }
.swatch-bark { background: #6a4a32; }
.swatch-gold { background: #c6a15b; }

.site-footer .quiet {
  margin: 0.35rem 0 0;
}

@media (max-width: 700px) {
  .cine-copy .hero-actions {
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .bento,
  .service-grid,
  .work-grid,
  .price-grid,
  .rate-grid,
  .offer-grid,
  .service-block,
  .inquiry,
  .about-grid,
  .principles,
  body.agency .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-card,
  .service-card:nth-child(-n + 2),
  .rate,
  .rate:nth-child(n + 4) {
    grid-column: auto;
    min-height: 0;
  }

  .bento article:first-child {
    grid-row: auto;
    min-height: 0;
  }

  body.agency .work-card picture,
  body.agency .work-card img,
  .about-grid img {
    height: 240px;
  }

  .section-head p:last-child {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card img {
    clip-path: none;
  }
}
