/* ═══════════════════════════════════════════════════════════
   CHINA IN LENS — Contact
   Shares main.css tokens. Adds:
     .ct-hero  — typographic opening: title left, standfirst right
     .ct-main  — enquiry sheet (underline fields, dial code)
                 with a sticky studio rail
     .ct-faq   — numbered <details> accordion
   ═══════════════════════════════════════════════════════════ */

/* ─────────── HERO ─────────── */
/* light opening: invert the shared header until it docks */
.page-contact .header:not(.is-stuck) .brand__logo--light{display:none;}
.page-contact .header:not(.is-stuck) .brand__logo--dark{display:block;}
.page-contact .header:not(.is-stuck) .nav a{color:var(--tx);}
/* closed bars read ink on the pale hero — once the ink overlay is up they
   must flip back to bone, so scope to the closed state */
.page-contact .header:not(.is-stuck) .burger:not(.is-open) span{background:var(--tx);}

.ct-hero{
  position:relative;overflow:hidden;background:var(--bone);
  padding-top:clamp(104px,13vh,150px);
  padding-bottom:clamp(40px,5.2vw,74px);
  isolation:isolate;
}
.ct-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(70% 80% at 92% 4%,rgba(251,91,50,.085) 0%,rgba(251,91,50,0) 62%),
    radial-gradient(56% 60% at 0% 100%,rgba(177,159,112,.13) 0%,rgba(177,159,112,0) 60%);
}
.ct-hero__grid{
  display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);
  gap:clamp(26px,4.6vw,76px);align-items:end;
}
.ct-hero__eyebrow{margin-bottom:clamp(18px,2.2vw,26px);}
.ct-hero__eyebrow .rule{display:block;width:34px;height:1px;background:var(--accent);flex:none;}
.ct-hero__title{
  font-family:var(--h1);font-weight:600;
  font-size:clamp(2.5rem,4.9vw,4.3rem);line-height:1.06;letter-spacing:-.015em;
  color:var(--tx);margin-bottom:0;
  opacity:0;transform:translateY(18px);
  transition:opacity .9s var(--ease-out) .06s,transform .9s var(--ease-out) .06s;
}
.is-ready .ct-hero__title{opacity:1;transform:none;}
.ct-hero__title .line{display:block;overflow:hidden;padding-bottom:.04em;}
.ct-hero__title .line>span{display:inline-block;transform:translateY(112%);transition:transform 1.15s var(--ease-out);}
.is-ready .ct-hero__title .line>span{transform:translateY(0);}
.is-ready .ct-hero__title .line:nth-child(2)>span{transition-delay:.1s;}
.ct-hero__title em{font-style:normal;color:var(--accent);}
/* the standfirst sits in the right column, baseline-aligned with the title,
   under a hairline — one quiet counterweight instead of a card */
.ct-hero__lede{
  border-top:1px solid var(--line);
  padding-top:clamp(14px,1.6vw,20px);
  font-size:clamp(.98rem,1.1vw,1.075rem);line-height:1.8;font-weight:300;
  color:var(--tx-2);max-width:48ch;text-wrap:pretty;
}

/* ─────────── FORM AREA ─────────── */
.ct-main{background:var(--bone-2);padding-block:clamp(36px,4.6vw,66px) clamp(48px,6vw,92px);}
.ct-main__grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);
  gap:clamp(28px,3.6vw,56px);align-items:start;
}

/* the sheet */
.ct-panel{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:5px;
  padding:clamp(22px,3.2vw,46px);
  box-shadow:0 46px 80px -70px rgba(18,18,18,.55),0 18px 36px -32px rgba(146,90,40,.3),0 1px 3px -2px rgba(18,18,18,.1);
}
/* a 2px accent rule across the top of the sheet — the one loud gesture */
.ct-panel::before{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;border-radius:5px 5px 0 0;
  background:linear-gradient(90deg,var(--accent),rgba(251,91,50,0));
}
.ct-form__head{
  display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding-bottom:clamp(16px,2vw,22px);border-bottom:1px solid var(--line-soft);
}
.ct-form__kicker{
  font-size:.625rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--tx-3);
}
.ct-form__meta{font-size:.75rem;color:var(--tx-3);font-weight:300;}

.ct-form__note{
  margin-top:1.1rem;padding:.85rem 1rem;border-left:2px solid var(--accent-lo);
  background:rgba(251,91,50,.05);border-radius:0 3px 3px 0;
  font-size:.8125rem;line-height:1.6;color:var(--accent-lo);
}
.ct-form__note:empty{display:none;}

/* fields */
.ct-fields{padding-top:clamp(22px,2.8vw,32px);}
.ct-row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2vw,26px);}
.ct-field{min-width:0;margin-bottom:clamp(18px,2.2vw,26px);}
/* only the last field of the whole form drops its foot margin — inside a
   row the last field still needs one, or the next row's label touches it */
.ct-fields > .ct-field:last-child{margin-bottom:0;}

.ct-label{
  display:block;font-size:.625rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  color:var(--tx-3);margin-bottom:.35rem;transition:color .35s var(--ease);
}
.ct-label i{font-style:normal;color:var(--accent);margin-left:.15em;}
.ct-field:focus-within .ct-label{color:var(--tx);}

.ct-control{position:relative;}
.ct-control::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--accent);
  transform:scaleX(0);transform-origin:left;
  transition:transform .55s var(--ease-out),height .25s;
}
.ct-field:focus-within .ct-control::after{transform:scaleX(1);}
.ct-field:focus-within .ct-control:has(.ct-input:focus-visible)::after{height:2px;}

/* phone + dial code: one line, one underline. The hairline moves onto the
   wrapper so the code and the number sit on the same rule instead of
   reading as two separate inputs. */
.ct-control--phone{border-bottom:1px solid rgba(18,18,18,.18);transition:border-color .4s var(--ease);}
.ct-control--phone:hover{border-bottom-color:rgba(18,18,18,.32);}
.ct-control--phone.has-code{
  display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;
}
.ct-control--phone .ct-input{border-bottom:0;}
.ct-control--phone.has-code .ct-input{padding-left:.62rem;}
.ct-code{
  display:none;
  font-family:var(--sans);font-size:1.0625rem;font-weight:500;line-height:1.45;
  color:var(--tx);white-space:nowrap;font-variant-numeric:tabular-nums;
  position:relative;
  padding:.5rem .62rem .6rem 0;
}
/* a short divider, not a full-height rule — the code is part of the number */
.ct-code::after{
  content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:1px;height:1.05em;background:rgba(18,18,18,.16);
}
.ct-control--phone.has-code .ct-code{display:block;animation:ctCodeIn .4s var(--ease-out) both;}
@keyframes ctCodeIn{from{opacity:0;transform:translateX(-5px);}to{opacity:1;transform:none;}}

.ct-input{
  width:100%;border:0;border-bottom:1px solid rgba(18,18,18,.18);border-radius:0;
  background:transparent;padding:.5rem 0 .6rem;
  font-family:var(--sans);font-size:1.0625rem;font-weight:500;line-height:1.45;
  color:var(--tx);appearance:none;transition:border-color .4s var(--ease);
}
.ct-input::placeholder{color:rgba(18,18,18,.26);font-weight:300;font-size:.9375rem;}
.ct-input:hover{border-bottom-color:rgba(18,18,18,.32);}
.ct-input:focus,.ct-input:focus-visible{outline:none;}

.ct-control--select{position:relative;}
.ct-select{
  padding-right:26px;cursor:pointer;background-image:none;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
}
.ct-select option{font-weight:400;color:var(--tx);}
.ct-chev{
  position:absolute;right:2px;top:50%;margin-top:-3px;
  width:12px;height:8px;color:var(--tx-2);pointer-events:none;
  transition:color .3s,transform .4s var(--ease);
}
.ct-field:focus-within .ct-chev{color:var(--accent);transform:translateY(2px);}
.ct-chev svg{width:100%;height:100%;}

/* textarea */
.ct-control--area{margin-top:.3rem;}
.ct-textarea{
  resize:none;overflow:hidden;min-height:88px;line-height:1.66;padding-top:.35rem;
  font-weight:400;font-size:1rem;
}
.ct-hint{
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  margin-top:.6rem;font-size:.71875rem;line-height:1.5;color:rgba(18,18,18,.45);
}
.ct-count{font-variant-numeric:tabular-nums;white-space:nowrap;}
.ct-count b{font-weight:500;color:var(--tx-3);}
.ct-count.is-near b{color:var(--accent-lo);}

/* errors */
.ct-err{display:none;margin-top:.5rem;font-size:.75rem;line-height:1.5;color:var(--accent-lo);}
.ct-field.has-error .ct-err{display:block;}
.ct-field.has-error .ct-label{color:var(--accent-lo);}
.ct-field.has-error .ct-input{border-bottom-color:rgba(221,81,45,.45);}
.ct-field.has-error .ct-control::after{background:var(--accent-lo);transform:scaleX(1);}

.ct-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

/* submit */
.ct-submit{
  display:flex;align-items:center;justify-content:space-between;gap:1.4rem;flex-wrap:wrap;
  margin-top:clamp(24px,3vw,36px);padding-top:clamp(20px,2.4vw,28px);
  border-top:1px solid var(--line-soft);
}
.ct-submit__btn{min-width:220px;justify-content:center;}
.ct-submit__note{font-size:.75rem;line-height:1.6;color:var(--tx-3);max-width:34ch;}

/* ─────────── ASIDE ─────────── */
.ct-aside{position:sticky;top:clamp(92px,12vh,124px);display:flex;flex-direction:column;gap:clamp(24px,2.6vw,34px);}
.ct-aside__block{padding-bottom:clamp(20px,2.4vw,30px);border-bottom:1px solid var(--line);}
.ct-aside__block .eyebrow{margin-bottom:1.2rem;}
.ct-aside__block:last-child{border-bottom:0;padding-bottom:0;}

/* the address, then the two lines that actually reach a person */
.ct-touch{
  display:flex;flex-direction:column;gap:.7rem;
  margin:1.15rem 0 1.2rem;padding-top:1.1rem;border-top:1px solid var(--line);
}
.ct-touch div{display:grid;grid-template-columns:4.4rem minmax(0,1fr);gap:.7rem;align-items:baseline;}
.ct-touch dt{
  font-size:.6rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--tx-3);
}
.ct-touch dd{margin:0;font-size:.9rem;line-height:1.5;color:var(--tx);min-width:0;}
.ct-touch a{
  color:var(--tx);text-decoration:none;border-bottom:1px solid transparent;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
  transition:color .35s var(--ease),border-color .35s var(--ease);
}
.ct-touch a:hover{color:var(--accent-lo);border-bottom-color:var(--accent);}

.ct-studio{
  font-size:.875rem;line-height:1.8;color:var(--tx-2);font-weight:300;
  margin-bottom:0;
}

/* local time — the one thing an overseas guest wants to know before writing */
.ct-live{
  display:flex;flex-direction:column;gap:.28rem;
  margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--line-soft);
  font-size:.6875rem;line-height:1.6;letter-spacing:.04em;color:var(--tx-2);
}
.ct-live__now{
  display:inline-flex;align-items:center;gap:.45rem;
  font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--tx-2);
}
.ct-live__now i{width:5px;height:5px;border-radius:50%;background:#4C9A6A;flex:none;}
.ct-live__now b{font-weight:500;color:var(--tx);letter-spacing:.06em;font-variant-numeric:tabular-nums;}

.ct-aside__quote{
  padding:clamp(18px,2.2vw,24px);
  background:#fff;border:1px solid var(--line);border-radius:4px;
}
.ct-aside__quote p{
  font-family:var(--serif);font-size:1.05rem;line-height:1.5;color:var(--tx);
  margin-bottom:.8rem;text-wrap:pretty;
}
.ct-aside__quote span{
  font-size:.625rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--tx-3);
}

/* ─────────── THANK YOU ─────────── */
.ct-sent{padding:clamp(10px,2vw,26px) 0;}
.ct-sent__mark{display:block;width:38px;height:38px;color:var(--accent);margin-bottom:1.4rem;}
.ct-sent .eyebrow{margin-bottom:1rem;}
.ct-sent__title{
  font-family:var(--serif);font-weight:400;font-size:clamp(1.7rem,2.8vw,2.4rem);
  line-height:1.14;letter-spacing:-.01em;color:var(--tx);margin-bottom:1rem;
}
/* focused programmatically for screen readers, not a control — no ring */
.ct-sent__title:focus{outline:none;}
.ct-sent__text{font-size:.97rem;line-height:1.85;font-weight:300;color:var(--tx-2);max-width:52ch;text-wrap:pretty;}
.ct-sent__actions{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;margin-top:2rem;}

/* hide the form once sent */
body.is-sent .ct-form{display:none;}
body.is-sent .ct-sent{display:flex;}
/* the panel would otherwise stop well above the aside and leave an L of
   dead space — stretch it to the row and centre the note inside */
body.is-sent .ct-main__grid{align-items:stretch;}
body.is-sent .ct-panel{display:flex;}
body.is-sent .ct-sent{
  flex-direction:column;justify-content:center;width:100%;
}

/* ─────────── FAQ ─────────── */
.ct-faq{background:var(--bone);}
.ct-faq__head{
  display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(24px,4vw,70px);
  align-items:end;margin-bottom:clamp(26px,3vw,44px);
}
.ct-faq__note{
  font-size:.875rem;line-height:1.8;font-weight:300;color:var(--tx-3);
  max-width:38ch;
}
.ct-faq__list{border-top:1px solid var(--line);}
.ct-q{border-bottom:1px solid var(--line);}
.ct-q summary{
  display:grid;grid-template-columns:clamp(44px,5vw,72px) minmax(0,1fr) 22px;
  align-items:center;gap:clamp(10px,2vw,28px);
  padding:clamp(18px,2.2vw,26px) 0;cursor:pointer;list-style:none;
  transition:padding-left .5s var(--ease);
}
.ct-q summary::-webkit-details-marker{display:none;}
.ct-q summary:hover{padding-left:8px;}
.ct-q__num{
  font-family:var(--sans);font-weight:500;
  font-size:.6875rem;color:rgba(18,18,18,.42);letter-spacing:.14em;
  font-variant-numeric:tabular-nums;
  transition:color .35s;
}
.ct-q summary:hover .ct-q__num{color:var(--accent);}
.ct-q__q{
  font-family:var(--sans);font-weight:500;font-size:clamp(1rem,1.35vw,1.2rem);
  line-height:1.4;letter-spacing:-.008em;color:var(--tx);transition:color .35s;
}
.ct-q summary:hover .ct-q__q{color:var(--accent);}
.ct-q__icon{position:relative;width:22px;height:22px;justify-self:end;}
.ct-q__icon::before,.ct-q__icon::after{
  content:"";position:absolute;left:50%;top:50%;background:var(--tx);
  transition:transform .45s var(--ease),background .3s;
}
.ct-q__icon::before{width:15px;height:1.5px;transform:translate(-50%,-50%);}
.ct-q__icon::after{width:1.5px;height:15px;transform:translate(-50%,-50%);}
.ct-q[open] .ct-q__icon::before{background:var(--accent);}
.ct-q[open] .ct-q__icon::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0;}
.ct-q[open] .ct-q__q{color:var(--accent);}
.ct-q__body{
  padding:0 clamp(20px,4vw,50px) clamp(20px,2.4vw,30px) calc(clamp(44px,5vw,72px) + clamp(10px,2vw,28px));
  animation:ctQIn .5s var(--ease-out) both;
}
.ct-q__body p{
  font-size:.95rem;line-height:1.86;font-weight:300;color:var(--tx-2);max-width:64ch;
  text-wrap:pretty;
}
@keyframes ctQIn{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width:1080px){
  .ct-main__grid{grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:clamp(22px,3vw,36px);}
  .ct-hero__grid{grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr);gap:clamp(24px,3.4vw,44px);}
}

@media (max-width:980px){
  .ct-hero__grid{grid-template-columns:1fr;gap:clamp(26px,4vw,36px);align-items:start;}
  .ct-hero__title{font-size:clamp(2.2rem,7vw,3.2rem);}
  .ct-hero__lede{max-width:54ch;}
  .ct-main__grid{grid-template-columns:1fr;}
  .ct-aside{position:static;display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,30px);align-items:start;}
  .ct-aside__block{padding-bottom:0;border-bottom:0;}
  .ct-faq__head{grid-template-columns:1fr;align-items:start;gap:1rem;}
}

@media (max-width:720px){
  .ct-hero{padding-top:100px;}
  .ct-hero__title{font-size:clamp(2rem,8.6vw,2.7rem);}
  .ct-hero__lede{font-size:.96rem;line-height:1.76;}
  .ct-panel{padding:20px 18px 24px;border-radius:4px;}
  .ct-row{grid-template-columns:1fr;gap:0;}
  /* stacked, the label must sit closer to its own input than to the rule
     above it, or the grouping inverts */
  .ct-field{margin-bottom:30px;}
  .ct-input{padding-top:.4rem;}
  .ct-submit{flex-direction:column;align-items:stretch;gap:1rem;}
  .ct-submit__btn{width:100%;}
  .ct-aside{grid-template-columns:1fr;gap:26px;}
  .ct-q summary{grid-template-columns:32px minmax(0,1fr) 18px;gap:.7rem;padding:16px 0;}
  .ct-q__body{padding:0 0 20px 39px;}
  .ct-q__q{font-size:.98rem;}
  .ct-sent__actions{flex-direction:column;align-items:flex-start;gap:1rem;}
}

@media (prefers-reduced-motion:reduce){
  .ct-q__body{animation:none;}
  .ct-hero__title .line>span{transform:none;}
}
