/* Home page: the catalogue sheets. Shared grid, sheets, datasheet rows and tables live in site.css. */

/* ------------------------------------------------------------ hero: the program on a laptop, sewn designs around it */
.stage { position: relative; overflow: hidden; color: #fff;
         background: radial-gradient(120% 90% at 15% 20%, #2E5C8A 0%, #1B2A4A 55%, #111A2E 100%); }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
                 background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 1px, transparent 1px 7px); }
.stage-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px;
              align-items: center; padding-top: 56px; padding-bottom: 40px; }
.stage-art { position: relative; aspect-ratio: 1.25; }
.laptop { position: absolute; left: 6%; right: 2%; top: 14%; }
.laptop-screen { background: #0D0F14; border-radius: 14px 14px 0 0; padding: 2.2% 2.2% 2.6%; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.laptop-screen img { width: 100%; border-radius: 3px; }
.laptop-base { height: 14px; margin: 0 -7%; border-radius: 0 0 16px 16px;
               background: linear-gradient(#C9CDD4, #8C929C); box-shadow: 0 18px 30px rgba(0,0,0,.4); }
.fly { position: absolute; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.fly-1 { width: 34%; left: -4%; bottom: -2%; transform: rotate(-8deg); }
.fly-2 { width: 26%; right: -3%; top: -2%; transform: rotate(10deg); }
.fly-3 { width: 18%; left: 2%; top: 2%; transform: rotate(-14deg); }
.fly-4 { width: 20%; right: 4%; bottom: 0; transform: rotate(12deg); }
.fly-5 { width: 15%; left: 38%; bottom: -6%; transform: rotate(-6deg); }
@media (prefers-reduced-motion: no-preference) {
  .fly { animation: bob 6s ease-in-out infinite alternate; }
  .fly-2 { animation-delay: -2s; } .fly-3 { animation-delay: -4s; } .fly-4 { animation-delay: -1s; } .fly-5 { animation-delay: -3s; }
  @keyframes bob { to { translate: 0 -10px; } }
}
.stage-card { background: rgba(10, 16, 30, .72); border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
              padding: 40px 36px; backdrop-filter: blur(6px); }
.stage-tag { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; font: 600 13px/1.3 var(--font);
             background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.stage-title { color: #fff; font-size: clamp(38px, 4.4vw, 62px); line-height: 1; letter-spacing: -.035em; margin: 20px 0; }
.stage-lead { font-size: 18px; line-height: 1.55; margin: 0 0 28px; color: rgba(255,255,255,.82); }
.stage-act { display: flex; flex-wrap: wrap; gap: 14px; }
.stage-act .btn { border-radius: 10px; }
.stage .btn.ghost-light { color: #fff; border-color: rgba(255,255,255,.6); }
.stage .btn.ghost-light:hover { background: #fff; color: var(--ink); }
.stage-note { margin: 16px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.stage .on-phone { margin-top: 20px; color: #fff; }
.stage-formats { position: relative; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding-bottom: 36px; margin-top: 0; }
.stage-formats li { padding: 6px 14px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
                    font: 600 14px var(--mono); letter-spacing: .04em; }

/* ------------------------------------------------------------ three steps */
.kicker { margin: 0 0 12px; font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal-ink); }
.steps3, .atelier { padding: 88px 0; }
.steps3 h2, .atelier h2 { font-size: clamp(32px, 4vw, 54px); margin: 0 0 40px; max-width: 16em; }
.steps3 { background: #fff; }
.steps3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step-card { margin: 0; background: var(--sheet); border-radius: 16px; overflow: hidden; border: 1px solid var(--hair); }
.step-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step-card figcaption { padding: 22px 24px 26px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.step-card b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
           background: var(--signal-ink); color: #fff; font: 700 16px var(--font); }

/* ------------------------------------------------------------ shared parts of the sheets */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px var(--gut); align-items: start; }
.split-top { margin-top: 48px; }
.plate { margin: 0; }
.plate video { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--hair); }
.sub-h { font-size: 19px; margin: 0 0 14px; letter-spacing: -.01em; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); }
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; border: 1px solid var(--hair); }
.pair figcaption { margin-top: 8px; }
.pair-small { margin-top: 28px; gap: 16px; }

/* thread chart */
.threads td { vertical-align: middle; }
.threads .num { text-align: right; padding-right: 0; }
.threads th:last-child { text-align: right; padding-right: 0; }
.swatch { display: inline-block; width: 28px; height: 18px; margin-right: 10px; vertical-align: -3px; border: 1px solid rgba(0, 0, 0, .25); }
.sw-1 { background: #EC407A; }
.sw-2 { background: #43A047; }
.sw-3 { background: #FFCA28; }

/* machines */
.machines td:first-child { font-weight: 500; }
.machines td:last-child, .machines th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.kinds td:first-child { color: var(--ink-2); }

/* ------------------------------------------------------------ 04: program window with callouts */
.shot { grid-column: 1 / -1; margin: 40px 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.shot-img { grid-column: 1 / span 9; position: relative; border: 1px solid var(--rule); background: #fff; }
.shot-img img { width: 100%; }
.shot figcaption { grid-column: 10 / -1; }
.co { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center;
      background: var(--signal-ink); color: #fff; font: 600 13px/1 var(--mono); }
.co-1 { left: 10%; top: 29%; }
.co-2 { left: 4%; top: 66%; }
.co-3 { left: 30%; top: 45%; }
.co-4 { left: 56%; top: 7%; }
.co-5 { left: 81%; top: 13%; }
.co-6 { left: 81%; top: 44%; }
.co-7 { left: 81%; top: 89%; }
.legend { counter-reset: co; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); font-size: 15px; }
.legend li { display: grid; grid-template-columns: 2.2em 1fr; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.legend li::before { counter-increment: co; content: counter(co); font: 600 13px/1.7 var(--mono); color: var(--signal-ink); }

/* ------------------------------------------------------------ 05: the wall of sewn examples */
.wall { grid-column: 1 / -1; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
        grid-auto-flow: dense; }
.tile { margin: 0; position: relative; border-radius: 14px; overflow: hidden; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-right { grid-column: 3 / span 2; }
.tile-zoom { display: block; }
.tile-zoom img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.tile-zoom:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; pointer-events: none;
                   display: flex; flex-direction: column; color: #fff; font-size: 13px;
                   background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.tile figcaption b { font-size: 18px; }

/* ------------------------------------------------------------ workshop footage */
.atelier { background: var(--ink); color: #fff; }
.atelier h2 { color: #fff; }
.atelier .kicker { color: var(--signal); }
.atelier-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.atelier-grid video { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: #000; }
.atelier-grid video:first-child { grid-row: span 2; aspect-ratio: 16 / 10; }
.stock-note { margin: 12px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }

/* the trial terms, with a few sewn badges */
#fiyat .sheet-no { grid-row: 1; }
#fiyat .sheet-body { grid-row: 1 / span 2; }
.terms-art { grid-column: 1 / span 3; grid-row: 2; position: relative; height: 220px; margin-top: 40px; }
.terms-art img { position: absolute; width: 46%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
.terms-art img:nth-child(1) { left: 0; bottom: 0; transform: rotate(-8deg); }
.terms-art img:nth-child(2) { left: 40%; bottom: 40%; width: 40%; transform: rotate(9deg); }
.terms-art img:nth-child(3) { left: 52%; bottom: -4%; width: 30%; transform: rotate(-4deg); }

.lightbox { border: 1px solid var(--rule); padding: 16px; background: var(--paper); max-width: min(92vw, 760px); width: 100%; }
.lightbox::backdrop { background: rgba(27, 28, 30, .78); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.lightbox img { width: 100%; height: auto; }
.lightbox-cap { margin: 10px 0 0; font: 13px var(--mono); color: var(--ink-2); }

/* ------------------------------------------------------------ 06, 07, 08 */
.ds-wide > div { grid-template-columns: minmax(10em, 1fr) 3fr; }
.terms { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gut); align-items: end; max-width: 900px; }
.big-num { font-size: 40px; font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.plans { max-width: 900px; }
.plan h3 { font: 500 13px var(--mono); color: var(--ink-3); margin: 0; }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 980px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 28px; }
  .stage-art { order: 2; }
  .steps3-grid, .atelier-grid { grid-template-columns: minmax(0, 1fr); }
  .atelier-grid video:first-child { grid-row: auto; }
  .terms-art { display: none; }
  .split, .terms { grid-template-columns: minmax(0, 1fr); }
  .shot-img, .shot figcaption { grid-column: 1 / -1; }
  .shot figcaption { margin-top: 24px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-right { grid-column: span 2; }
}
@media (max-width: 760px) {
  .stage-card { padding: 28px 22px; }
  .stage-title { font-size: 40px; }
  .stage-lead { font-size: 17px; }
  .stage-act .btn { width: 100%; }
  .steps3, .atelier { padding: 56px 0; }
  .split-top { margin-top: 36px; }
  .pair { gap: 12px; }
  .ds-wide > div { grid-template-columns: minmax(0, 1fr); }
  .co { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 11px; }
  .wall { gap: 10px; margin-top: 28px; }
  .tile figcaption b { font-size: 15px; }
  .tile figcaption span { display: none; }
  .big-num { font-size: 34px; }
  .threads th:nth-child(3), .threads td:nth-child(3), .kinds th:nth-child(3), .kinds td:nth-child(3),
  .machines th:nth-child(3), .machines td:nth-child(3) { display: table-cell; }
}
