/* DDChallenge R6 — 16 Oct 2026. One-viewport desktop shell; contextual offshore image;
   fixed landscape cards on desktop, portrait cards on mobile. Official branding files untouched. */
:root { --ink:#12263d; --gold:#bf8422; --navy:#091c2c; --line:rgba(29,62,93,.22); }
html { width:100%; height:100%; scroll-behavior:auto; }
* { box-sizing:border-box; }
body { width:100%; min-height:0; height:100dvh; margin:0; padding:0; overflow:hidden;
  display:block; font-family:'Montserrat',Arial,sans-serif; color:var(--ink); background:#f0f5f9; }
/* The offshore scene is a responsive background only: cover, crop overflow, never scroll. */
.site-background { position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:linear-gradient(90deg,rgba(246,249,252,.94),rgba(246,249,252,.76) 47%,rgba(242,248,252,.62)),url('drillship.jpg');
  background-size:cover,cover; background-position:center,61% 48%; background-repeat:no-repeat; }
.tabs-container { width:100%; max-width:none; height:100dvh; margin:0; padding:clamp(8px,1.25vh,15px) clamp(14px,2.5vw,42px);
  position:relative; z-index:1; display:grid; grid-template-rows:clamp(64px,11vh,110px) minmax(0,1fr) clamp(44px,8vh,66px);
  gap:clamp(5px,1vh,12px); background:transparent; overflow:hidden; }
.brand-navigation { width:100%; min-height:0; height:100%; padding:0; margin:0; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.site-brand { flex:0 0 auto; position:relative; overflow:hidden; display:block; margin:0;
  width:clamp(95px,9vw,119px); height:auto; aspect-ratio:1.45; background:transparent; }
.site-brand img { width:118.5%; max-width:none; height:auto; display:block; position:absolute;
  left:50%; top:50%; transform:translate(-50%,-50%); object-fit:contain; filter:none; }
.site-brand-caption { display:none; }
.brand-navigation .tabs-header { display:flex; gap:clamp(5px,1vw,14px); flex:0 1 560px; margin:0; }
.brand-navigation .tab-button { flex:1 1 0; padding:8px; min-width:0; height:clamp(36px,5vh,47px); border:1px solid rgba(75,110,145,.23);
  border-radius:9px; color:#22374d; background:rgba(238,245,250,.75); box-shadow:none; }
.brand-navigation .tab-button h3 { margin:0; font-size:clamp(.78rem,1vw,1rem); line-height:1.15; font-weight:700; }
.brand-navigation .tab-button.active { background:linear-gradient(135deg,#ffdf9d,#d9a34a); color:#13243a; border-color:#cba05b; }
.brand-navigation .tab-button:disabled { cursor:not-allowed; pointer-events:none; opacity:.46; }
.brand-navigation .tab-button:not(:disabled):not(.active):hover { animation:none; background:#e3ebf2; opacity:1; }
/* Every active desktop tab occupies only the cell between permanent header/footer. */
.tab-content { min-height:0; min-width:0; display:none; overflow:auto; margin:0; }
.tab-content.active { display:block; }
#about.tab-content { height:100%; padding:0; max-width:none; background:none; box-shadow:none; overflow:hidden;
  display:none; grid-template-rows:minmax(0,42fr) minmax(0,58fr); gap:clamp(8px,1.35vh,15px); }
#about.tab-content.active { display:grid; }
#about .about-introduction { min-height:0; padding:clamp(7px,1.4vh,20px) clamp(10px,1.5vw,26px); margin:0;
  display:flex; flex-direction:column; justify-content:center; border-radius:12px;
  background:linear-gradient(90deg,rgba(252,254,255,.76),rgba(253,254,255,.50) 68%,rgba(255,255,255,.02)); }
#about .about-introduction::before,#about .about-introduction::after { content:none; }
#about .about-introduction h1 { font-size:clamp(1.27rem,min(2.65vw,4.2vh),2.65rem); line-height:1.11;
  letter-spacing:-.032em; font-weight:700; color:#10253b; max-width:min(77%,950px); margin:0 0 clamp(3px,.7vh,10px); }
#about .about-tagline { font-size:clamp(.72rem,min(1.18vw,2vh),1.1rem); line-height:1.28; font-weight:600;
  max-width:85%; margin:0 0 clamp(4px,1.1vh,13px); color:#33546e; }
#about #article-about { padding:0; margin:0; width:auto; max-width:min(74%,880px);
  line-height:1.46; text-align:left; color:#294059; font-size:clamp(.69rem,min(1.05vw,1.85vh),1.04rem); }
#about #article-about strong:first-child { color:#986312; }
/* Each card uses the physical credit-card landscape ratio, regardless of viewport dimensions. */
#about .cards-container { min-width:0; min-height:0; margin:0; padding:0;
  display:flex; flex-wrap:nowrap; justify-content:space-evenly; align-items:center; gap:clamp(8px,1.4vw,24px); }
#about .flip-card { flex:0 1 auto; height:auto; width:min(calc((100% - clamp(8px,1.4vw,24px))/2),calc((100dvh - clamp(64px,11vh,110px) - clamp(44px,8vh,66px) - 2.5vh)*.545*1.586));
  aspect-ratio:1.586 / 1; min-width:0; max-height:100%; margin:0; padding:0; perspective:1200px; }
#about .flip-card-inner { height:100%; width:100%; transition:transform .55s; }
#about .flip-card-front,#about .flip-card-back { height:100%; width:100%; border:1px solid rgba(82,118,149,.28);
  border-radius:clamp(9px,1vw,17px); padding:clamp(9px,min(1.8vw,2.6vh),27px); box-shadow:0 9px 30px rgba(19,45,69,.13);
  color:#152c43; background:rgba(255,255,255,.91); }
#about .flip-card-front { display:flex; flex-direction:row; align-items:center; justify-content:flex-start;
  gap:clamp(8px,1.4vw,22px); text-align:left; }
#about .flip-card-front img { margin:0; flex:0 0 auto; display:block; width:min(30%,32vh); height:min(82%,27vw);
  max-width:30%; max-height:84%; object-fit:contain; object-position:center; border-radius:8px; }
#about .front-copy { min-width:0; height:auto; flex:1; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
#about .flip-card-front h4 { margin:0; color:#163149; font-size:clamp(.83rem,min(1.5vw,2.55vh),1.6rem); line-height:1.2; }
#about .card-role { font-size:clamp(.7rem,1vw,.99rem); color:#a27119; margin:clamp(2px,.5vh,6px) 0 0; }
#about .card-summary { color:#344e64; margin:clamp(4px,1.1vh,12px) 0 0;
  font-size:clamp(.68rem,min(1.04vw,1.9vh),1.04rem); line-height:1.45; }
#about .card-action { display:inline-flex; gap:7px; border:0; border-bottom:1px solid #6a879d; border-radius:0;
  margin:clamp(4px,1.3vh,13px) 0 0; padding:0 0 2px; color:#1b4261;
  font-weight:700; font-size:clamp(.67rem,.93vw,.94rem); }
#about .flip-card-back { align-items:flex-start; text-align:left; justify-content:center; gap:clamp(3px,.6vh,10px); overflow:hidden; }
#about .flip-card-back h4 { margin:0; color:#a17422; font-size:clamp(.82rem,min(1.35vw,2.2vh),1.25rem); }
#about .flip-card-back p { margin:0; color:#304b61; font-size:clamp(.65rem,min(.93vw,1.63vh),.94rem); line-height:1.45; text-align:left; }
/* The hint lives over background, not as another page row. */
#about .card-hint { display:none; }
.about-footer { display:flex; width:100%; height:100%; min-width:0; min-height:0; align-items:center; justify-content:space-between;
  border-top:1px solid rgba(62,101,139,.22); background:rgba(246,250,254,.55); border-radius:7px;
  gap:clamp(7px,2vw,35px); padding:0 clamp(9px,1vw,19px); margin:0; }
.about-footer .social-icons { display:flex; flex:none; align-items:center; gap:clamp(5px,.7vw,12px); }
.about-footer .social { display:inline-flex; margin:0; padding:0; width:clamp(26px,3.25vh,36px); height:clamp(26px,3.25vh,36px);
  justify-content:center; align-items:center; border-radius:50%; background:rgba(206,226,242,.75);
  border:1px solid rgba(58,95,126,.3); color:#193c56; line-height:1; text-decoration:none; font-family:Arial,sans-serif; font-weight:bold; }
.about-footer .social.facebook { font-size:20px; }
.about-footer .social.inactive { opacity:.6; cursor:not-allowed; }
.about-footer .copyright { margin:0; padding:0; color:#36536c; text-align:right; font-size:clamp(9px,min(1vw,1.65vh),13px);
  line-height:1; min-width:0; white-space:nowrap; }
.about-footer .legal-line { white-space:nowrap; display:inline-block; }
.about-footer .legal-mobile { display:none; }
.about-footer .copyright a { color:inherit; margin:0; padding:0; font-size:inherit; text-decoration:none; }
.about-footer .copyright a:hover { color:#936322; }
.about-footer .footer-divider { padding:0 3px; }
/* Policies are reachable without extending/scrolling the page itself. */
body.policy-open .tabs-container::after { content:''; position:fixed; inset:0; background:rgba(6,18,31,.67); z-index:10; }
#policies { position:fixed; z-index:21; top:10dvh; left:50%; transform:translateX(-50%);
  width:min(740px,calc(100vw - 35px)); max-width:none; max-height:80dvh; margin:0!important; padding:clamp(16px,2vw,32px);
  background:#fbfdff; border-radius:14px; overflow:auto; color:#172d45; pointer-events:auto; opacity:1;
  box-shadow:0 15px 70px rgba(0,0,0,.35); }
#policies article { padding:8px 0; font-size:.94rem; text-align:left; }
#policies h2 { font-size:1.25rem; margin:0 35px 12px 0; }
#policies h3 { font-size:1.03rem; margin:8px 0; }
#policies .policy-close { float:right; border:0; background:#e8eff5; color:#122b45; width:34px; height:34px;
  font-size:24px; line-height:1; border-radius:8px; cursor:pointer; }
#login.tab-content.active { width:100%; background:rgba(250,253,255,.9); border-radius:12px; max-width:none; }
#products.tab-content { display:none!important; } /* feature deliberately unavailable */
/* Tablet/narrow desktops maintain landscape cards and a fixed one-screen shell. */
@media (min-width:701px) and (max-width:1050px) {
 .tabs-container { padding:7px 12px; gap:6px; }
 .site-brand { width:clamp(90px,12vw,125px); }
 #about.tab-content { grid-template-rows:minmax(0,44fr) minmax(0,56fr); gap:6px; }
 #about .about-introduction h1 { max-width:82%; }
 #about #article-about { max-width:82%; }
 #about .about-tagline { max-width:86%; }
 #about .flip-card { width:min(calc((100% - 10px)/2),calc((100dvh - 114px)*.52*1.586)); }
 #about .flip-card-front img { max-width:28%; }
 #about .flip-card-front,#about .flip-card-back { padding:9px; }
}
@media (min-width:701px) and (max-height:630px) {
 .tabs-container { grid-template-rows:clamp(53px,10vh,63px) minmax(0,1fr) 42px; gap:5px; padding-top:5px; padding-bottom:5px; }
 .site-brand { width:83px; }
 #about.tab-content { grid-template-rows:minmax(0,45fr) minmax(0,55fr); gap:5px; }
 #about .about-introduction h1 { font-size:clamp(1.15rem,2.2vw,1.68rem); margin-bottom:3px; }
 #about .about-tagline { margin-bottom:5px; }
 #about .flip-card { width:min(calc((100% - 10px)/2),calc((100dvh - 112px)*.52*1.586)); }
}
/* Mobile: separate dark style, portrait playing-card proportions; only content area scrolls. */
@media (max-width:700px) {
 body { background:#061625; color:#eef5fb; }
 .site-background { background-image:linear-gradient(180deg,rgba(6,18,30,.54),rgba(6,19,32,.87) 46%,rgba(6,19,32,.98)),url('drillship.jpg');
   background-size:cover,cover; background-position:center,56% 45%; }
 .tabs-container { padding:6px 10px 5px; grid-template-rows:106px minmax(0,1fr) 45px; gap:5px; }
 .brand-navigation { flex-direction:column; align-items:stretch; gap:3px; }
 .site-brand { width:115px; flex:none; height:67px; margin:0 auto; }
 .site-brand img { filter:invert(1); }
 .brand-navigation .tabs-header { width:100%; flex:none; display:flex; gap:5px; }
 .brand-navigation .tab-button { height:34px; padding:5px 4px; background:rgba(17,43,63,.86); color:#edf5fc; border-color:#37546b; }
 .brand-navigation .tab-button h3 { font-size:.76rem; }
 .brand-navigation .tab-button.active { color:#112338; }
 #about.tab-content { overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; }
 #about.tab-content.active { display:block; }
 #about .about-introduction { border-radius:9px; margin:0; display:block; padding:12px 10px;
   background:rgba(7,25,43,.62); }
 #about .about-introduction h1 { max-width:none; font-size:clamp(1.25rem,5.4vw,1.85rem); color:#f7faff; line-height:1.12; margin-bottom:9px; }
 #about .about-tagline { max-width:none; color:#bdd4e7; font-size:clamp(.72rem,3.15vw,.87rem); line-height:1.43; margin-bottom:9px; }
 #about #article-about { color:#d5e4f2; max-width:none; font-size:clamp(.73rem,3vw,.88rem); line-height:1.52; }
 #about #article-about strong:first-child { color:#e5b360; }
 #about .cards-container { display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
   margin:12px 0; padding:0; gap:14px; }
 #about .flip-card { flex:none; margin:0; padding:0; width:min(78vw,305px); height:auto; max-height:none;
   aspect-ratio:5/7; }
 #about .flip-card-front,#about .flip-card-back { border:1px solid #36536b; padding:16px;
   border-radius:12px; background:rgba(9,30,49,.94); color:#e9f2fb; box-shadow:0 4px 20px rgba(0,0,0,.25); }
 #about .flip-card-front { flex-direction:column; align-items:center; justify-content:center; gap:11px; text-align:center; }
 #about .flip-card-front img { display:block; flex:none; width:min(70%,175px); max-width:70%; height:min(40%,165px);
   max-height:40%; margin:0; object-fit:contain; object-position:center; }
 #about .front-copy { flex:none; width:100%; text-align:center; align-items:center; justify-content:center; }
 #about .flip-card-front h4 { font-size:clamp(.99rem,4vw,1.16rem); line-height:1.26; color:#fff; }
 #about .card-role { color:#edbd6f; font-size:.81rem; margin-top:6px; }
 #about .card-summary { color:#d2e1ee; font-size:clamp(.72rem,3vw,.83rem); line-height:1.42; margin:9px 0 0; }
 #about .card-action { color:#f1f7fb; border-color:#8a9eac; font-size:.8rem; margin:12px 0 0; }
 #about .flip-card-back { padding:clamp(15px,4.2vw,24px); align-items:flex-start; justify-content:center; overflow:hidden; }
 #about .flip-card-back h4 { font-size:1.11rem; color:#e3b46a; }
 #about .flip-card-back p { color:#d8e8f4; font-size:clamp(.77rem,3.25vw,.9rem); line-height:1.5; }
 #about .card-hint { display:block; text-align:center; color:#bdcede; font-size:.69rem; margin:0 0 10px; }
 .about-footer { padding:0 5px; gap:4px; background:rgba(6,23,38,.82); border-color:#35506a; }
 .about-footer .social-icons { gap:3px; }
 .about-footer .social { color:#e8f5fe; background:#123149; border-color:#385a70; width:24px; height:24px; font-size:10px; }
 .about-footer .social.facebook { font-size:17px; }
 .about-footer .social svg { width:14px; height:14px; }
 .about-footer .legal-desktop { display:none; }
 .about-footer .legal-mobile { display:inline; }
 .about-footer .copyright { color:#cee1f0; font-size:clamp(8px,2.35vw,11px); letter-spacing:-.025em; }
 .about-footer .copyright a { color:#cee1f0; }
 #policies { background:#102a41; color:#e7f2fc; top:8dvh; max-height:84dvh; }
 #policies article { color:#dbe9f6; }
 #login.tab-content.active { overflow:auto; }
}
@media (max-width:355px) {
 .tabs-container { padding-left:5px; padding-right:5px; }
 .about-footer .social-icons { gap:2px; }
 .about-footer .social { width:21px; height:21px; }
 .about-footer .copyright { font-size:8px; }
 #about .flip-card { width:min(85vw,290px); }
}
@media (prefers-reduced-motion:reduce) { #about .flip-card-inner { transition:none; } }
/* Very wide, short desktop windows use the horizontal room instead of leaving
   a large empty card row; the same landscape card ratio is preserved. */
@media (min-width:1350px) and (max-height:540px) {
 #about.tab-content.active { display:grid; grid-template-columns:minmax(0,40%) minmax(0,60%); grid-template-rows:minmax(0,1fr); gap:8px; }
 #about .about-introduction { max-width:none; height:100%; }
 #about .about-introduction h1 { max-width:95%; }
 #about #article-about { max-width:98%; }
 #about .cards-container { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; justify-items:center; }
 #about .flip-card { width:min(100%,calc((100dvh - 110px)*.82*1.586)); }
}
