/* ==========================================================================
   2DCut — host accent: sıcak kâğıt zemin, pastel parça grupları, kesim kırmızısı
   ========================================================================== */

.theme-2dcut {
  --bg: #f3f2ee;
  --fg: #141518;
  --fg-2: #55554f;
  --fg-3: #6e6e67;
  --line: #dad9d3;
  --line-strong: #141518;
  --surface: #ffffff;
  --placeholder: #e8e5de;
  --c-peach: #ffe3d5;
  --c-blue: #e3ebfe;
  --c-green: #e7f4ea;
  --c-yellow: #fff3c7;
  --c-lilac: #efe5fe;
  --c-cut: #c2380a;
  background: var(--bg);
  color: var(--fg);
}

.p-hero__head--2d {
  align-items: center;
}

.hero-claim {
  width: 440px;
  flex: none;
  margin-right: 177px;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.9375rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

/* Levha yerleşimi */
.sheet-plan {
  margin-top: 104px;
}

.sheet-plan__head {
  margin-bottom: 12px;
}

.sheet-plan__frame {
  padding: 9px;
  background: #ffffff;
}

.sheet-plan__inner {
  position: relative;
  aspect-ratio: 1263 / 929;
  border: 2px solid var(--fg);
}

.sheet-plan__inner .sheet-piece {
  position: absolute;
  left: calc(var(--l) * 1%);
  top: calc(var(--t) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  display: block;
  padding: clamp(6px, 1.4vw, 20px);
  font-style: normal;
}

.sheet-plan__inner .sheet-piece span {
  font-family: var(--font-mono);
  font-size: clamp(0.625rem, 0.4rem + 1vw, 1.1875rem);
  letter-spacing: 0.02em;
  color: var(--fg);
  white-space: nowrap;
}

.c-peach { background: var(--c-peach); fill: var(--c-peach); }
.c-blue { background: var(--c-blue); fill: var(--c-blue); }
.c-green { background: var(--c-green); fill: var(--c-green); }
.c-yellow { background: var(--c-yellow); fill: var(--c-yellow); }
.c-lilac { background: var(--c-lilac); fill: var(--c-lilac); }

.sheet-plan__inner .c-rest {
  background: #ffffff;
  outline: 2px dashed var(--c-cut);
  outline-offset: -2px;
}

.sheet-plan__inner .c-rest span {
  color: var(--c-cut);
}

.cut-line {
  position: absolute;
  background: var(--fg);
}

.cut-line--h {
  left: calc(var(--l) * 1%);
  top: calc(var(--t) * 1%);
  width: calc(var(--w) * 1%);
  height: 1.5px;
}

.cut-line--v {
  left: calc(var(--l) * 1%);
  top: calc(var(--t) * 1%);
  height: calc(var(--h) * 1%);
  width: 1.5px;
}

.legend__rest {
  --sw: transparent;
  border: 1px dashed var(--c-cut) !important;
}

.legend__line {
  width: 16px !important;
  height: 1.5px !important;
  background: var(--fg) !important;
}

.theme-2dcut .p-spec {
  margin-top: 48px;
}

/* Kesim türleri */
.types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  list-style: none;
  padding: 0;
}

.types__art {
  background: #ffffff;
  margin-bottom: 20px;
}

.types__art svg {
  width: 100%;
  height: auto;
}

.types .cut {
  stroke: var(--c-cut);
  stroke-width: 2.5;
  fill: none;
}

.types .cut-dash {
  stroke: var(--c-cut);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
  fill: none;
}

.types .t-small {
  margin-top: 14px;
}

/* Atölye kuralları (grafit zemin) */
.theme-graphite {
  --bg: #18191d;
  --fg: #ffffff;
  --fg-2: #b6b7bb;
  --fg-3: #8e8f94;
  --line: #2b2c30;
  background: var(--bg);
  color: var(--fg);
}

.rules {
  padding-block: 128px;
}

.rules__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-40);
  margin-top: 52px;
  list-style: none;
  padding: 0;
}

.rules__art {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 130px;
  margin-bottom: 24px;
}

.rules__art--grain {
  position: relative;
  width: 280px;
  max-width: 100%;
  background: repeating-linear-gradient(180deg, #2b2c30 0 18px, #6b5a3e 18px 19px);
}

.rules__art--grain i {
  position: absolute;
  border: 2px solid #f26a1c;
}

.rules__art--grain i:first-child {
  left: 8%;
  top: 10%;
  width: 37%;
  height: 80%;
}

.rules__art--grain i:last-child {
  left: 51%;
  top: 10%;
  width: 40%;
  height: 44%;
}

.rules__art--rest i {
  display: block;
  width: 80px;
  height: 84px;
  border: 2px dashed #f26a1c;
}

.rules__art--rest .i {
  width: 30px;
  height: 30px;
  color: #b6b7bb;
  stroke-width: 1.2;
}

.rules__art--rest b {
  display: block;
  width: 145px;
  height: 130px;
  background: #2b2c30;
}

.rules__units {
  display: flex;
  align-items: center;
  gap: 1.6em;
  height: 52px;
  margin-bottom: 22px;
  color: var(--fg) !important;
  font-size: 0.8125rem;
}

.rules__units span {
  color: #55565b;
}

.rules .t-small {
  margin-top: 12px;
}

/* Girdi → çıktı */
.io__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-64);
  align-items: start;
}

.io__grid > :first-child {
  grid-column: 1 / span 6;
}

.io__table {
  grid-column: 7 / -1;
  padding-left: 12px;
  padding-top: 8px;
}

.io__text {
  max-width: 600px;
  margin-top: 22px;
}

.io__table dl {
  border-top: 1px solid var(--fg);
}

.io__table dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-16);
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}

.io__table code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.io__table dd {
  font-size: var(--fs-small);
  color: var(--fg-2);
}

.io__table figcaption {
  margin-top: 64px;
}

.io__shots {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-top: 96px;
}

.io__web {
  grid-column: 1 / span 8;
  --ph-ratio: 846 / 528;
}

.io__phone {
  grid-column: 9 / span 2;
  width: auto;
  margin-right: -78px;
  --ph-ratio: 259 / 559;
}

.io__phone .shot {
  --shot-r: 34px;
}

.io__shots figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tr-mono);
  color: var(--fg-3);
}

/* Sektörler */
.sectors {
  padding-block: 0 var(--section);
}

.sectors__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.sectors__list li {
  padding-block: 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sectors__list li:first-child,
.sectors__list li:nth-child(6) {
  border-top-color: var(--fg);
}

/* Kapanış */
.cta-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-brand__icon {
  width: 64px;
  height: 64px;
  flex: none;
}

.theme-2dcut .p-cta__row .t-h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 3.125rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .hero-claim {
    width: auto;
    max-width: 560px;
    margin-right: 0;
  }
}

@media (max-width: 1023px) {
  .hero-claim {
    width: auto;
    max-width: 560px;
  }

  .sheet-plan {
    margin-top: 64px;
  }

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

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

  .io__grid > :first-child,
  .io__table {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .io__web {
    grid-column: 1 / span 6;
  }

  .io__phone {
    grid-column: 7 / span 2;
    margin-right: 0;
  }

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

  .sectors__list li:nth-child(4) {
    border-top-color: var(--fg);
  }

  .sectors__list li:nth-child(6) {
    border-top-color: var(--line);
  }
}

@media (max-width: 767px) {
  .sheet-plan {
    margin-top: 40px;
  }

  .sheet-plan__frame {
    padding: 4px;
  }

  .sheet-plan__inner .sheet-piece span {
    font-size: 0.5625rem;
    letter-spacing: 0;
  }

  .theme-2dcut .p-spec {
    margin-top: 48px;
  }

  .types,
  .rules__list {
    grid-template-columns: 1fr;
    row-gap: var(--space-40);
  }

  .rules {
    padding-block: 96px;
  }

  .io__shots {
    grid-template-columns: 1fr 0.42fr;
    gap: 12px;
    margin-top: 56px;
  }

  .io__web,
  .io__phone {
    grid-column: auto;
  }

  .io__phone .shot {
    --shot-r: 20px;
  }

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

  .sectors__list li,
  .sectors__list li:nth-child(n) {
    border-top-color: var(--line);
  }

  .sectors__list li:first-child {
    border-top-color: var(--fg);
  }

  .cta-brand {
    align-items: flex-start;
    gap: 14px;
  }

  .cta-brand__icon {
    width: 48px;
    height: 48px;
  }
}
