/* ============ Projects window + Lets Talk window ============ */

/* ================= PROJECTS ================= */
.win-projects { background: #2b2b2b; overflow: hidden; }

.pj-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.5vh, 36px) clamp(20px, 3.5vw, 52px);
  gap: clamp(14px, 2.4vh, 26px);
}

.pj-heading {
  font-weight: 800;
  color: #000000;
  font-size: clamp(51px, 11vw, 193px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  width: 90%;
  user-select: none;
}

.pj-intro {
  color: var(--paper);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.65;
  font-weight: 400;
  max-width: 72ch;
}

/* ----- 5 vertical blocks ----- */
.pj-blocks {
  flex: 1;
  display: flex;
  gap: clamp(8px, 0.9vw, 14px);
  min-height: 0;
}

.pj-block {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  transform: translateY(calc(100% + 120px));
  transition:
    flex 0.65s var(--ease-win),
    transform 0.9s var(--ease-win) calc(var(--ti, 0) * 90ms);
}
.win-projects.tabs-in .pj-block { transform: translateY(0); }
.win-projects.tabs-noanim .pj-block { transition: none; }
.pj-blocks:has(.pj-block:hover) .pj-block:not(:hover) { flex: 0 0 clamp(58px, 6vw, 86px); }
.pj-block:hover { flex: 50 1 0; }

.pj-ph {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s var(--ease-win);
}
.pj-block:hover .pj-ph { transform: scale(1.04); }

.striped {
  background:
    repeating-linear-gradient(45deg, #3b3b3b 0 14px, #424242 14px 28px);
}

.ph-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 250, 0.55);
  white-space: nowrap;
  writing-mode: vertical-rl;
  transition: opacity 0.3s ease;
}
.pj-block:hover .ph-tag { writing-mode: horizontal-tb; }

.pj-suburb {
  position: absolute;
  left: 22px;
  bottom: 52px;
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 26px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--paper);
  white-space: nowrap;
  transform-origin: 0 100%;
  transform: rotate(-90deg) translateY(100%);
  transition: transform 0.55s var(--ease-win), bottom 0.55s var(--ease-win);
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.pj-block:hover .pj-suburb {
  transform: rotate(0deg) translateY(0);
  bottom: 44px;
}

.pj-meta {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: var(--paper);
  font-size: clamp(12px, 1.1vw, 15px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.45s ease 0.2s;
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.pj-meta em { font-style: italic; margin-right: 0.6em; }
.pj-meta span { font-style: normal; font-weight: 400; }
.pj-block:hover .pj-meta { opacity: 1; }

/* ----- gallery overlay ----- */
.pj-gallery[hidden] { display: none; }

.pj-gallery {
  position: absolute; inset: 0;
  z-index: 20;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pjg-frame {
  position: relative;
  width: min(1180px, 92%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pjg-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(68vh, calc(100vh - 230px));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pjg-main .ph-tag { writing-mode: horizontal-tb; font-size: 12px; }
.pjg-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pjg-caption {
  position: absolute;
  left: 20px; bottom: 16px;
  color: var(--paper);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.pjg-caption small {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.pjg-caption small em { font-style: italic; }

.pjg-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  color: var(--paper);
}
.pjg-info-suburb {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.05em;
}
.pjg-info small {
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.pjg-info small em { font-style: italic; }

.pjg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.12);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  z-index: 3;
}
.pjg-arrow:hover { background: rgba(250, 250, 250, 0.28); }
.pjg-arrow.prev { left: -60px; }
.pjg-arrow.next { right: -60px; }

.pjg-close {
  position: absolute;
  top: 12px; right: 18px;
  z-index: 5;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--paper);
  font-size: 34px;
  line-height: 1;
  padding: 4px 10px;
  transition: opacity 0.2s ease;
}
.pjg-close:hover { opacity: 0.6; }

.pjg-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 100%;
}
.pjg-thumb {
  appearance: none;
  border: 2px solid transparent;
  padding: 0;
  width: 78px; height: 52px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.pjg-thumb.active, .pjg-thumb:hover { opacity: 1; border-color: var(--paper); }

/* ================= LETS TALK ================= */
.win-talk { background: var(--bg-light); overflow: hidden; }

.talk-inner {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(24px, 4vh, 44px) clamp(24px, 4vw, 64px);
  overflow-y: auto;
}

.talk-left {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 30px);
  min-width: 0;
}

.talk-heading {
  font-weight: 800;
  font-size: clamp(48px, 6.2vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  z-index: 5;
  transition: color 0.7s ease, transform 0.95s var(--ease-win);
  will-change: transform;
}
.th-line { display: block; width: max-content; white-space: nowrap; }
.th-char { display: inline-block; will-change: transform; }

/* ----- entrance choreography (t-black → t-assemble → t-land → t-settle) ----- */
.win-talk.t-noanim, .win-talk.t-noanim * { transition: none !important; }

.win-talk.t-black .talk-heading { color: #FFFFFF; }
.win-talk.t-black.t-land .talk-heading { color: #121212; }

.win-talk.t-black .th-char { transform: translate(var(--sx, 0px), var(--sy, 0px)); }
.win-talk.t-black.t-assemble .th-char {
  transform: translate(0px, 0px);
  transition: transform 1.15s var(--ease-win) var(--sd, 0s);
}

.win-talk.t-black .talk-inner { overflow: hidden; }
.win-talk.t-black .talk-blurb,
.win-talk.t-black .talk-form { opacity: 0; }
.win-talk.t-black.t-settle .talk-blurb { opacity: 1; transition: opacity 0.9s ease 0.45s; }
.win-talk.t-black.t-settle .talk-form { opacity: 1; transition: opacity 0.9s ease 0.3s; }

.win-talk.t-black .talk-contact,
.win-talk.t-black .talk-logos,
.win-talk.t-black .talk-copyright { transform: translateY(85vh); }
.win-talk.t-black.t-settle .talk-contact { transform: translateY(0); transition: transform 0.95s var(--ease-win) 0.15s; }
.win-talk.t-black.t-settle .talk-logos { transform: translateY(0); transition: transform 0.95s var(--ease-win) 0.3s; }
.win-talk.t-black.t-settle .talk-copyright { transform: translateY(0); transition: transform 0.95s var(--ease-win) 0.4s; }

.talk-blurb {
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.65;
  font-weight: 500;
  max-width: 46ch;
  color: var(--ink);
}

.talk-contact { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.tc-line {
  font-size: clamp(13.5px, 1.15vw, 16px);
  font-weight: 600;
  color: var(--ink);
}
.tc-line a { color: var(--ink); text-decoration: none; }
.tc-line a:hover { text-decoration: underline; }

/* Instagram link (icon inherits the ink colour to match the site) */
.tc-ig { display: inline-flex; align-items: center; gap: 7px; }
.tc-ig:hover { text-decoration: none; opacity: 0.65; }
.ig-icon {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  flex: none;
}
.ig-icon .ig-dot { fill: currentColor; stroke: none; }
.tc-label {
  display: inline-block;
  min-width: 84px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.45);
}

.talk-logos { display: flex; gap: 12px; }
.talk-copyright {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 10px 16px;
}
.logo-chip img { height: clamp(26px, 3.4vh, 36px); width: auto; }

/* ----- form ----- */
.talk-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  align-self: center;
  width: 100%;
}

/* honeypot — visually + programmatically hidden, but still in the DOM for bots */
.tf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tf-field { display: flex; flex-direction: column; gap: 5px; }
.tf-field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.55);
}
.tf-field input, .tf-field textarea, .tf-field select {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(18, 18, 18, 0.05);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}
.tf-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.tf-field input:focus, .tf-field textarea:focus, .tf-field select:focus {
  border-color: var(--ink);
  background: rgba(18, 18, 18, 0.03);
}

.tf-drop {
  position: relative;
  border: 1.5px dashed rgba(18, 18, 18, 0.35);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.tf-drop.drag, .tf-drop:hover { background: rgba(18, 18, 18, 0.04); border-color: var(--ink); }
.tf-drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0;
  cursor: pointer;
}
.tf-drop-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(18, 18, 18, 0.6);
  letter-spacing: 0.04em;
}
.tf-drop-list {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.tf-send {
  appearance: none;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px;
  border-radius: 999px;
  transition: opacity 0.25s ease, transform 0.2s ease;
}
.tf-send:not(:disabled):hover { transform: translateY(-1px); }
.tf-send:disabled { opacity: 0.32; cursor: not-allowed; }

/* ----- confirmation ----- */
.talk-confirm[hidden] { display: none; }

.talk-confirm {
  position: absolute; inset: 0;
  z-index: 30;
  background: rgba(242, 240, 239, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.talk-confirm-card {
  max-width: 560px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.tcc-big {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}
.tcc-body { font-size: clamp(14px, 1.3vw, 18px); line-height: 1.6; font-weight: 500; color: var(--ink); }
.tcc-note { font-size: 13px; color: rgba(18, 18, 18, 0.6); font-weight: 600; }
.tcc-done {
  appearance: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 32px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.tcc-done:hover { background: var(--ink); color: var(--paper); }

/* ----- mobile ----- */
@media (max-width: 760px) {
  .pj-heading { font-size: clamp(40px, 12vw, 72px); }
  .pj-suburb { font-size: 15px; left: 14px; }
  .pj-meta { left: 14px; font-size: 11.5px; }
  .pjg-arrow.prev { left: 6px; }
  .pjg-arrow.next { right: 6px; }
  .pjg-close { right: 6px; }
  .pjg-thumb { width: 52px; height: 36px; }

  /* projects: stack as full-width cards (the hover-accordion doesn't work on touch) */
  .pj-inner { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 58px; }
  .pj-blocks { flex: 0 0 auto; flex-direction: column; gap: 12px; }
  .pj-block { flex: 0 0 auto; height: clamp(150px, 26vh, 220px); }
  .pj-blocks:has(.pj-block:hover) .pj-block:not(:hover) { flex: 0 0 auto; }
  .pj-block:hover { flex: 0 0 auto; }
  .pj-block:hover .pj-ph { transform: none; }
  /* labels always visible (no hover state on touch) */
  .pj-suburb { transform: rotate(0deg) translateY(0); bottom: 46px; }
  .pj-meta { opacity: 1; }
  .ph-tag { writing-mode: horizontal-tb; }

  .talk-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 60px; }
  .talk-contact { margin-top: 0; }
}
