/* Creative Leaf homepage. Loaded after chrome.css. */

/* featured project */
.feature { position: relative; margin: 0 var(--gutter); }
.feature-img { height: clamp(300px, 45.8vw, 660px); background: var(--ph); overflow: hidden; border-radius: 20px; }
.feature-img > div { width: 100%; height: 100%; background-size: cover; background-position: center; transition: opacity 0.4s; }
.feature-cap {
  position: absolute; left: 20px; bottom: 20px; background: var(--ink); color: var(--paper);
  padding: 18px 24px; border-radius: 14px; display: flex; gap: 24px; align-items: baseline; max-width: calc(100% - 40px);
}
.feature-cap .idx { font-family: var(--mono); font-size: 14px; color: var(--green); white-space: nowrap; }
.feature-cap .name { font-size: 32px; font-weight: 700; font-stretch: 115%; letter-spacing: -0.02em; line-height: 1.05; }
.feature-cap .tag { font-family: var(--mono); font-size: 14px; color: var(--muted-dark); }
.feature .badge { position: absolute; right: 24px; top: 24px; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; margin: 12px var(--gutter) 0; }
.thumbs button { text-align: left; display: flex; flex-direction: column; gap: 8px; opacity: 0.55; transition: opacity 0.2s; }
.thumbs button.on, .thumbs button:hover { opacity: 1; }
.thumbs .img { width: 100%; height: 96px; background-size: cover; background-position: top; border-radius: 10px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.2s; }
.thumbs button.on .img { outline-color: var(--green); }
.thumbs span { font-family: var(--mono); font-size: 13px; }

/* headline + capabilities */
.intro { padding: 120px var(--gutter) 0; }
.intro h1 { font-size: clamp(44px, 5.83vw, 84px); line-height: 1.04; font-weight: 800; font-stretch: var(--stretch); letter-spacing: -0.035em; }
.intro .pill-img { width: 1.79em; height: 0.79em; vertical-align: -0.07em; }
.intro .dot { width: 0.79em; height: 0.79em; vertical-align: -0.07em; }
.caps { padding: 56px var(--gutter) 0; }
.caps .chips-lg { display: flex; flex-wrap: wrap; gap: 10px; }

/* work index */
.work { padding: 120px var(--gutter) 0; }
.work .rows { border-top: 0; }
.row-what.dim { color: var(--text-2); }

/* three ways */
.ways { padding: 140px var(--gutter) 0; }
.ways h2 { margin-bottom: 40px; font-size: clamp(40px, 3.9vw, 56px); }
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ways-grid .card { min-height: 420px; }

/* studio */
.studio { padding: 160px var(--gutter) 0; }
.studio h2 { margin-top: 16px; font-size: clamp(40px, 3.9vw, 56px); }
.studio .copy { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.studio .links { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.studio .frames .frame:nth-child(1) { left: 0; top: 30px; width: 250px; transform: rotate(-5deg); }
.studio .frames .frame:nth-child(2) { left: 200px; top: 0; width: 250px; transform: rotate(3deg); z-index: 2; }
.studio .frames .frame:nth-child(3) { left: 400px; top: 60px; width: 250px; transform: rotate(-2deg); }
.principles { padding: 96px var(--gutter) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles > div { border-top: 2px solid var(--ink); padding: 24px 32px 0 0; }
.principles > div:last-child { padding-right: 0; }
.principles h4 { margin: 14px 0 10px; font-size: 26px; font-weight: 700; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.15; }
.principles p { font-size: 17px; line-height: 1.55; color: var(--text-2); }

/* home footer: contact block above the link columns */
.foot-home { padding-top: 72px; }
.foot-hello { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: stretch; }
.foot-hello .say { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.foot-hello .say .label { color: var(--green); line-height: 1.5; }
.foot-hello .say h2 { margin-top: 18px; font-size: clamp(56px, 6.66vw, 96px); line-height: 0.95; font-weight: 800; font-stretch: var(--stretch); letter-spacing: -0.04em; }
.foot-hello .mail { font-size: clamp(24px, 2.8vw, 40px); font-weight: 700; font-stretch: var(--stretch); letter-spacing: -0.02em; border-bottom: 3px solid var(--green); align-self: flex-start; padding-bottom: 6px; overflow-wrap: anywhere; }
.foot-hello .mail:hover { color: #f2f1ec; opacity: 0.85; }
.foot-card { background: var(--panel); color: var(--paper); border: 1px solid var(--line-dark); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.foot-card .team { display: flex; align-items: center; gap: 14px; }
.foot-card .avatars span { width: 56px; height: 56px; border-color: var(--panel); background: repeating-linear-gradient(135deg, #2a2f2b 0 6px, #202522 6px 12px); font-size: 10px; color: #8f968f; }
.foot-card .avatars span + span { margin-left: -14px; }
.foot-card .team > span:last-child { font-size: 16px; line-height: 1.4; color: #cfd8d1; }
.foot-card .fast { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.foot-card .fast .label { color: var(--green); font-size: 13px; line-height: 1.5; }
.foot-card .fast b { display: block; margin-top: 10px; font-size: 30px; font-weight: 800; font-stretch: var(--stretch); letter-spacing: -0.02em; line-height: 1.05; }
.foot-card .fast p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #cfd8d1; }
.foot-card .go { margin-top: auto; background: var(--green); color: var(--on-green); padding: 18px 22px; border-radius: 999px; font-family: var(--mono); font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; }
.foot-card .go:hover { background: var(--paper); color: var(--ink); opacity: 1; }
.foot-home .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 88px; padding-top: 32px; border-top: 1px solid var(--line-dark); }

@media (max-width: 1100px) {
  .studio { padding-top: 120px; }
  .studio .frames .frame { width: 200px; }
  .studio .frames .frame:nth-child(2) { left: 160px; }
  .studio .frames .frame:nth-child(3) { left: 320px; }
  .studio .frames .frame .ph, .studio .frames .frame img { height: 220px; }
}
@media (max-width: 800px) {
  .feature-cap { left: 12px; bottom: 12px; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .feature-cap .name { font-size: 22px; }
  .feature-cap .tag { display: none; }
  .feature .badge { right: 12px; top: 12px; }
  .thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); padding: 5px var(--gutter) 8px; margin: 7px 0 0; scrollbar-width: none; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { scroll-snap-align: start; }
  .thumbs .img { height: 78px; }
  .thumbs span { font-size: 11px; line-height: 1.35; }
  .intro, .work { padding-top: 80px; }
  .ways { padding-top: 96px; }
  .ways-grid { grid-template-columns: 1fr; }
  .ways-grid .card { min-height: 0; }
  .card h3 { font-size: 36px; }
  .studio { padding-top: 96px; }
  .principles { grid-template-columns: 1fr; gap: 28px; padding-top: 64px; }
  .principles > div { padding-right: 0; }
  .foot-hello { grid-template-columns: 1fr; gap: 32px; }
  .foot-home .foot-cols { grid-template-columns: 1fr; margin-top: 56px; }
}
